Could you justify "doesn't work", for example what's the output of "docker inspect <sha of the resulting image>"?
On 20 October 2017 at 16:10, Raghava Karthik <[email protected]> wrote: > I was trying to run a command using CMD along with ENTRYPOINT (entrypoint > works perfectly). > All i want to do is load environment variables "source /etc/environment". > Below packer conf with CMD isn't working. Am i missing something here? > > "builders":[{ > "type": "docker", > "name": "image_with_tomcat", > "image": "{{user `base_image`}}", > "commit": true, > "pull": true, > "changes": [ > "CMD source /etc/environment", > "ENTRYPOINT /usr/local/tomcat/bin/catalina.sh start && > /bin/bash" > ], > "run_command": ["-d", "-i", "-t", "{{.Image}}", "/bin/bash"] > }], > > > -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/a784d882-ebee-40b8-a306-868e161c709b%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/a784d882-ebee-40b8-a306-868e161c709b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-z%2BOwxZEtp1ZNAOzy9XL%2B5EyeH02pi%3DkEa%3DUmZg6Cj7g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
