Skip to content

Commit

Permalink
Disable console output, bump Docker Compose version (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd authored Apr 9, 2019
1 parent 07f6d2d commit 8553e75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion scripts/vagrant/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ cd /vagrant

docker-compose up --detach --remove-orphans

echo "Done! Please wait a few seconds before the containers are up."
echo "Done! Please wait a few seconds before the containers are up."
echo "Hostname: $HOSTNAME"

0 comments on commit 8553e75

Please sign in to comment.