Skip to content

Instantly share code, notes, and snippets.

@seralf
Forked from malev/Vagrantfile
Last active February 23, 2020 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seralf/704315b820835a126d13d3e64cc30900 to your computer and use it in GitHub Desktop.
Save seralf/704315b820835a126d13d3e64cc30900 to your computer and use it in GitHub Desktop.
Vagrantfile: Ubuntu with miniconda 2 installed and working
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", inline: <<-SHELL
apt-get update -q
su - vagrant
wget -q https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b -p /home/vagrant/miniconda
echo 'export PATH="/home/vagrant/miniconda/bin:$PATH"' >> /home/vagrant/.bashrc
source /home/vagrant/.bashrc
chown -R vagrant:vagrant /home/vagrant/miniconda
/home/vagrant/miniconda/bin/conda install conda-build anaconda-client anaconda-build -y -q
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment