diff --git a/Vagrantfile b/Vagrantfile index 84682c0..7a15b88 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -7,16 +7,16 @@ Vagrant.configure(2) do |config| config.vm.network "private_network", type: "dhcp" config.vm.synced_folder projectPath, "/vagrant" - # Rename ubuntu-xenial-16.04-cloudimg-console.log to console.log. + # Get rid of ubuntu-xenial-16.04-cloudimg-console.log config.vm.provider "virtualbox" do |vb| - vb.customize ["modifyvm", :id, "--uartmode1", "file", "console.log"] + vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"] end config.vm.provision :shell, path: File.join(localPath, 'scripts/vagrant/provision.sh') config.vm.provision :shell, - path: File.join(localPath, 'scripts/vagrant/up.sh'), + path: File.join(localPath, 'scripts/vagrant/up.sh'), run: "always" end diff --git a/scripts/vagrant/provision.sh b/scripts/vagrant/provision.sh index 8a8ba62..6ec8add 100644 --- a/scripts/vagrant/provision.sh +++ b/scripts/vagrant/provision.sh @@ -4,7 +4,7 @@ set -e # Map binary name to source URL. REPOS=( - "docker-compose,https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m`" + "docker-compose,https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m`" ) # Add the Docker repo. diff --git a/scripts/vagrant/up.sh b/scripts/vagrant/up.sh index 4d4a8b3..7aa39e7 100644 --- a/scripts/vagrant/up.sh +++ b/scripts/vagrant/up.sh @@ -4,4 +4,5 @@ cd /vagrant docker-compose up --detach --remove-orphans -echo "Done! Please wait a few seconds before the containers are up." \ No newline at end of file +echo "Done! Please wait a few seconds before the containers are up." +echo "Hostname: $HOSTNAME" \ No newline at end of file