mirror of
https://github.com/balena-io/open-balena.git
synced 2024-12-19 05:37:52 +00:00
docker: Update docker-compose version to latest
Connects-to: #50 Change-type: patch Signed-off-by: Heds Simons <heds@balena.io>
This commit is contained in:
parent
c1ee146f0d
commit
e068f8058f
8
Vagrantfile
vendored
8
Vagrantfile
vendored
@ -20,15 +20,21 @@ Vagrant.configure('2') do |config|
|
|||||||
config.ssh.forward_agent = true
|
config.ssh.forward_agent = true
|
||||||
|
|
||||||
config.vm.provision :docker
|
config.vm.provision :docker
|
||||||
config.vm.provision :docker_compose
|
|
||||||
|
|
||||||
$provision = <<-SCRIPT
|
$provision = <<-SCRIPT
|
||||||
|
DOCKER_COMPOSE_VERSION=1.24.0
|
||||||
|
|
||||||
touch /home/vagrant/.bashrc
|
touch /home/vagrant/.bashrc
|
||||||
grep -Fxq 'source /home/vagrant/openbalena/.openbalenarc' /home/vagrant/.bashrc || echo 'source /home/vagrant/openbalena/.openbalenarc' >> /home/vagrant/.bashrc
|
grep -Fxq 'source /home/vagrant/openbalena/.openbalenarc' /home/vagrant/.bashrc || echo 'source /home/vagrant/openbalena/.openbalenarc' >> /home/vagrant/.bashrc
|
||||||
|
|
||||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
|
||||||
source "/home/vagrant/.nvm/nvm.sh" # This loads nvm
|
source "/home/vagrant/.nvm/nvm.sh" # This loads nvm
|
||||||
nvm install 10.15.0 && nvm use 10.15.0
|
nvm install 10.15.0 && nvm use 10.15.0
|
||||||
|
|
||||||
|
# Install a newer version of docker-compose
|
||||||
|
(cd /usr/local/bin; \
|
||||||
|
sudo curl -o docker-compose --silent --location https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-Linux-x86_64; \
|
||||||
|
sudo chmod a+x docker-compose)
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
||||||
config.vm.provision :shell, privileged: false, inline: $provision
|
config.vm.provision :shell, privileged: false, inline: $provision
|
||||||
|
Loading…
Reference in New Issue
Block a user