Skip to content

Instantly share code, notes, and snippets.

@lohithn4
Created July 7, 2020 12:34
Show Gist options
  • Save lohithn4/4d8e2fff1bc3e5322845c0007295bcb2 to your computer and use it in GitHub Desktop.
Save lohithn4/4d8e2fff1bc3e5322845c0007295bcb2 to your computer and use it in GitHub Desktop.
Vagrantfile for ubuntu/bionic64 version 20200701.0.0
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "ubuntu/bionic64"
config.vm.box_version = "~> 20200701.0.0"
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.provision "shell", inline: <<-SHELL
systemctl disable apt-daily.service
systemctl disable apt-daily.timer
sudo apt-get update
sudo apt-get install -y python3-venv zip
touch /home/vagrant/.bash_aliases
if ! grep -q PYTHON_ALIAS_ADDED /home/vagrant/.bash_aliases; then
echo "# PYTHON_ALIAS_ADDED" >> /home/vagrant/.bash_aliases
echo "alias python='python3'" >> /home/vagrant/.bash_aliases
fi
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment