From b2e31e2372008f564d048629563fac4c73f35d81 Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Mon, 11 Jun 2018 16:57:14 +0300 Subject: [PATCH] Allo project name and host name to be customised at VM provisioning --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 587e8bf..ee3151f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -25,6 +25,6 @@ Vagrant.configure('2') do |config| # FIXME: remove `docker login` config.vm.provision :shell, inline: "docker login --username resindev --password #{ENV.fetch('DOCKERHUB_PASSWORD')}" - config.vm.provision :shell, inline: 'cd /home/vagrant/open-balena && ./scripts/start-project' + config.vm.provision :shell, inline: "cd /home/vagrant/open-balena && ./scripts/start-project #{ENV.fetch('OPENBALENA_PROJECT_NAME', '')} #{ENV.fetch('OPENBALENA_HOST_NAME', '')}" config.vm.provision :shell, inline: 'cd /home/vagrant/open-balena && ./scripts/run-fig-command up -d', run: 'always' end