Skip to content

Instantly share code, notes, and snippets.

@malev
Last active September 9, 2020 21:37
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save malev/2d2d76b1662e13acbbca to your computer and use it in GitHub Desktop.
Save malev/2d2d76b1662e13acbbca 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