-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose pull instead of up #44
Comments
Not at the moment, but we could support your workflow. How does pulling fit into your workflow? In the meantime what you can do is reduce your config to something like: config.vm.provision :docker
config.vm.provision :docker_compose If you don't specify the Then you can add a shell provisioner that does the pull. Example: Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :docker
config.vm.provision :docker_compose
config.vm.provision :shell, inline: "cd /vagrant && docker-compose pull"
end At the moment this plugin only runs Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :docker
config.vm.provision :docker_compose,
yml: "/vagrant/docker-compose.yml",
options: "--x-networking",
commands: { rm: true, build: true, pull: true, up: true },
command_options: { rm: "", up: "-d --timeout 20"},
run: "always"
end |
Sorry for the delayed response, tl;dr, just close this issue for now. We was looking into having two VMs (A/B) in parallel where we wanted to make sure that we could provision A before stopping B and then start the containers in A. The runtime environment where we will deploy our VMs will most likely have an unstable Internet connection so we wanted to make sure that all images was properly pulled. We have looked more into this and we should be able to solve this with proper tagging of the images instead |
I already have the images pre-built and pushed to a custom registry, and I don't want to rebuild the images again when up the vagrant, so a 'pull' command before the 'up' would be nice. |
I'm going to reopen because I think we can make this a feature too. |
Any update on this? Is there an alternative solution while waiting for this feature? EDIT: A combo of https://github.com/leighmcculloch/vagrant-docker-login and |
@gabz75 Would you (or anyone else) be up for taking a stab at this? |
Are there any way to configure this so it only pulls the images and not starting the containers?
The text was updated successfully, but these errors were encountered: