Skip to content

Instantly share code, notes, and snippets.

@kelapure
Last active August 16, 2017 17:41

Revisions

  1. Rohit Kelapure revised this gist Aug 16, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    FROM websphere-liberty:kernel

    ARG REPOSITORIES_PROPERTIES=""
    @@ -9,6 +8,6 @@ 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 \
    && 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
  2. Rohit Kelapure created this gist Aug 15, 2017.
    14 changes: 14 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@

    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 \
    && if [ ! -z $REPOSITORIES_PROPERTIES ]; then rm /opt/ibm/wlp/etc/repositories.properties; fi \
    && rm -rf /output/workarea /output/logs