Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
trolologuy committed Mar 26, 2020
1 parent 5cbc7c8 commit e545b69
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Vagrantfile
@@ -0,0 +1,15 @@
Vagrant.configure(2) do |config|
config.vm.box = "hashicorp/bionic64"
config.vm.provider "virtualbox" do |vb|
vb.cpus = 4
vb.memory = 4096
end
config.vm.hostname = "test"
config.vm.network "forwarded_port", guest: 80, host: 8081
config.vm.network "forwarded_port", guest: 443, host: 8082
config.vm.synced_folder ".", "/vagrant"
config.ssh.extra_args = ["-t", "cd /vagrant; bash --login"]
config.ssh.forward_agent = true
config.vm.provision "shell", path: "script.sh"
end

23 changes: 23 additions & 0 deletions script.sh
@@ -0,0 +1,23 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive

sudo apt-get update -y
# sudo apt-get upgrade -y
# Workaround for the grub-config-prompt issue :
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
# As taken from here :
# https://askubuntu.com/questions/146921/how-do-i-apt-get-y-dist-upgrade-without-a-grub-config-prompt

sudo apt-get install qpdf -y
sudo apt-get install unrar -y
sudo apt-get install python3.7 -y
sudo apt-get install python3-pip -y
pip3 --version

pip3 install zipfile
pip3 install rarfile
pip3 install pyfiglet
pip3 install py-term
pip3 install termcolor

cd /vagrant/

0 comments on commit e545b69

Please sign in to comment.