Skip to content

Instantly share code, notes, and snippets.

@kelapure
Last active August 16, 2017 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelapure/ef3f75c57500805436258db4e10be060 to your computer and use it in GitHub Desktop.
Save kelapure/ef3f75c57500805436258db4e10be060 to your computer and use it in GitHub Desktop.
Dockerfile for JSR352 Batch app
FROM websphere-liberty:kernel
ARG REPOSITORIES_PROPERTIES=""
ADD SleepyBatchletSample-1.0.war /config/dropins/
COPY server.xml /config/
RUN if [ ! -z $REPOSITORIES_PROPERTIES ]; then mkdir /opt/ibm/wlp/etc/ \
&& echo $REPOSITORIES_PROPERTIES > /opt/ibm/wlp/etc/repositories.properties; fi \
&& installUtility install --acceptLicense batch-1.0 ssl-1.0 transportSecurity-1.0 \
&& if [ ! -z $REPOSITORIES_PROPERTIES ]; then rm /opt/ibm/wlp/etc/repositories.properties; fi \
&& rm -rf /output/workarea /output/logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment