You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1 KiB

  1. Vagrant.configure("2") do |config|
  2. config.vm.box = "gusztavvargadr/docker-linux"
  3. config.vm.network "forwarded_port", guest: 80, host: 80
  4. config.vm.provision "shell", inline: <<-SHELL
  5. # Update and upgrade the server packages.
  6. sudo apt-get update
  7. sudo apt-get -y upgrade
  8. # Set Ubuntu Language
  9. sudo locale-gen en_GB.UTF-8
  10. # Install Python, SQLite and pip
  11. # sudo apt-get install -y python3-dev sqlite python3-pip
  12. # Upgrade pip to the latest version.
  13. #sudo pip install --upgrade pip
  14. # Install and configure python virtualenvwrapper.
  15. #sudo pip install virtualenvwrapper
  16. #if ! grep -q VIRTUALENV_ALREADY_ADDED /home/vagrant/.bashrc; then
  17. # echo "# VIRTUALENV_ALREADY_ADDED" >> /home/vagrant/.bashrc
  18. # echo "WORKON_HOME=~/.virtualenvs" >> /home/vagrant/.bashrc
  19. # echo "PROJECT_HOME=/vagrant" >> /home/vagrant/.bashrc
  20. # echo "export VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'" >> /home/vagrant/.bashrc
  21. # echo "source /usr/local/bin/virtualenvwrapper.sh" >> /home/vagrant/.bashrc
  22. #fi
  23. cd /vagrant
  24. SHELL
  25. end

Powered by TurnKey Linux.