I am using below packer.json file to put war file into tomcat container &
build it
{
"builders": [{
"type": "docker",
"image": "tomcat:8.0",
"commit": "true"
}],
"provisioners": [
{
"type": "file",
"source": "sample.war",
"destination": "/usr/local/tomcat/webapps/"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "satwikmukherjee/runner-poc",
"tag": "{{timestamp}}"
},
{
"type": "docker-push",
"login": "true",
"login_username": "####",
"login_password": "####"
}
]
]
}
After building while I am running the image committed , within container I
am seeing tomcat is not running ,
But while I am doing the same stuff through Dockerfile , no issue found ,
Dockerfile used as below with the same logic .
FROM tomcat:8.0
COPY sample.war /usr/local/tomcat/webapps/
Please let me know if I am doing anything wrong ..
Regards,
Satwik
--
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/15c136ed-5d87-40d3-9109-9ec1291da722%40googlegroups.com.