- name: Copy files to the release path copy: src: ../app dest: "{{ deploy_path }}"
docker: TASK [Copy files to the release path] ******************************************
docker: fatal: [default]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to find '../app' in expected paths."}
- name: Ensure the nginx configuration is installed template: src: ../nginx/nginx.conf dest: /etc/nginx/nginx.conf "builders": [{ "type": "docker", "image": "nginx:1.11.10-alpine", "commit": true, "run_command": [ "-d", "-i", "-t", "--name", "{{user `ansible_host`}}", "{{.Image}}", "/bin/sh" ] }], "provisioners": [ { "type": "shell", "inline": [ "apk --update --no-cache add python" ] }, { "type": "ansible", "ansible_env_vars": [ "ANSIBLE_ROLES_PATH={{user `ansible_roles_path` }}" ], "user": "root", "playbook_file": "./provision/packer/nginx.yml", "extra_arguments": [ "-e", "ansible_host={{user `ansible_host`}}", "-e", "ansible_connection={{user `ansible_connection`}}" ] } ],--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/e38f8861-5f85-4ca0-b0f1-7b530fdd42b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/e38f8861-5f85-4ca0-b0f1-7b530fdd42b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/480ee4dc-0b01-451b-bcd9-292d9fd3c9a4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0eze_A5p-%2B3J0jA87n75xWpfDjT1b%2BMiXkm%2BgdWfYWra6w%40mail.gmail.com.
"CMD [\"nginx\", \"-g\", \"daemon off;\"]",I was expecting the existing CMD from the Dockerfile to remain and the "run_command" only control the container during the build step.