Vagrant.configure("2") do |config| config.vm.box = "gusztavvargadr/docker-linux" config.vm.network "forwarded_port", guest: 80, host: 80 config.vm.provision "shell", inline: <<-SHELL # Update and upgrade the server packages. sudo apt-get update sudo apt-get -y upgrade # Set Ubuntu Language sudo locale-gen en_GB.UTF-8 # Install Python, SQLite and pip # sudo apt-get install -y python3-dev sqlite python3-pip # Upgrade pip to the latest version. #sudo pip install --upgrade pip # Install and configure python virtualenvwrapper. #sudo pip install virtualenvwrapper #if ! grep -q VIRTUALENV_ALREADY_ADDED /home/vagrant/.bashrc; then # echo "# VIRTUALENV_ALREADY_ADDED" >> /home/vagrant/.bashrc # echo "WORKON_HOME=~/.virtualenvs" >> /home/vagrant/.bashrc # echo "PROJECT_HOME=/vagrant" >> /home/vagrant/.bashrc # echo "export VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'" >> /home/vagrant/.bashrc # echo "source /usr/local/bin/virtualenvwrapper.sh" >> /home/vagrant/.bashrc #fi cd /vagrant SHELL end