Created
February 27, 2017 16:10
-
-
Save rhemz/06c91d4ecf787e88421a80bae1343135 to your computer and use it in GitHub Desktop.
python 2.7 dev vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# base config | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.box_check_update = false | |
# network interfaces | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.network "private_network", ip: "192.168.33.11" | |
# port forwarding | |
config.vm.network "forwarded_port", guest: 22, host: 2221 | |
# shared directories | |
config.vm.synced_folder "/host/os/path", "/vm/os/path", create: true, group: "vagrant", owner: "vagrant" | |
config.vm.provider "virtualbox" do |vb| | |
# vb.gui = true | |
vb.memory = "1536" | |
end | |
# additional provisioning shell commands | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y git build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libffi-dev libsqlite3-dev | |
sudo apt-get install -y python-pip | |
sudo pip install pyopenssl ndg-httpsclient pyasn1 | |
sudo pip install --upgrade pip | |
sudo apt-get install -y python-dev | |
sudo pip install virtualenv | |
sudo pip install virtualenvwrapper | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment