Last active
December 20, 2015 19:59
-
-
Save rvause/6187404 to your computer and use it in GitHub Desktop.
just a small Vagrantfile for myself to setup a decent Python environment if I am ever found stuck on Windows
This file contains hidden or 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 : | |
| $script = <<SCRIPT | |
| apt-get -y update | |
| apt-get -y install htop vim git-core bzr mercurial sqlite3 build-essential python-dev libjpeg62 libjpeg62-dev zlib1g zlib1g-dev curl python-setuptools postgresql postgresql-client postgresql-server-dev-all libpq-dev | |
| easy_install pip | |
| pip install virtualenv | |
| wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh | |
| useradd -g users -d /home/USERNAME -m -s /bin/bash -p $(echo PASSWORD | openssl passwd -1 -stdin) USERNAME | |
| usermod -a -G admin USERNAME | |
| SCRIPT | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # Every Vagrant virtual environment requires a box to build off of. | |
| config.vm.box = "precise32" | |
| # The url from where the 'config.vm.box' box will be fetched if it | |
| # doesn't already exist on the user's system. | |
| config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
| # Create a public network, which generally matched to bridged network. | |
| # Bridged networks make the machine appear as another physical device on | |
| # your network. | |
| config.vm.network :public_network | |
| # If true, then any SSH connections made will enable agent forwarding. | |
| # Default value: false | |
| config.ssh.forward_agent = true | |
| # Shell provisioner | |
| config.vm.provision :shell, :inline => $script | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment