Run project commands unprivileged during provisioning

This commit is contained in:
Akis Kesoglou 2018-06-11 17:09:45 +03:00
parent b2e31e2372
commit 4805017688

8
Vagrantfile vendored
View File

@ -25,6 +25,10 @@ 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 #{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'
config.vm.provision :shell, privileged: false,
inline: "cd /home/vagrant/open-balena && ./scripts/start-project #{ENV.fetch('OPENBALENA_PROJECT_NAME', '')} #{ENV.fetch('OPENBALENA_HOST_NAME', '')}"
config.vm.provision :shell, privileged: false,
inline: 'cd /home/vagrant/open-balena && ./scripts/run-fig-command up -d',
run: 'always'
end