With this image all you need is to copy the war file into the webapps folder. you can pass env params directly to your app by using: IPG_ENV_PARAMS and concat the params with #. the script inside will run the resin will take care of the rest.
FROM aharonamir/base-resin ADD [your war file] /opt/resin/webapps/ ENTRYPOINT ["/opt/resin/bin/resin.sh", "console"]
my-webapp:
environment:
IPG_ENV_PARAMS: "-DLogic.IpAddress=192.168.1.2:9009#
-Dmongodb.port=27017#
-Dredis.port=6379"
image: mycompany/my-webapp
ports:
- "8010:8080"
- "8443:8443"
- "9080:9080"
Content type
Image
Digest
Size
93.7 MB
Last updated
about 10 years ago
docker pull aharonamir/base-resin