Skip to content

Commit

Permalink
fixed openliberty to be like the dev version... For some reason docke…
Browse files Browse the repository at this point in the history
…r-server was set there...
  • Loading branch information
FreifeldRoyi committed Jul 7, 2018
1 parent 7a6b9a3 commit 43f744e
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions openliberty-kernel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,14 @@ FROM airhacks/java
LABEL maintainer="Tobias N. Sasse, @tnsasse and Adam Bien, adam-bien.com" description="OpenLiberty Kernel"
ENV RELEASE 2018-06-19_0502
ENV VERSION 18.0.0.2
ENV INSTALL_DIR /opt/ibm
ENV INSTALL_DIR /opt/

# Download OpenLiberty
ENV OPENLIBERTY_HOME ${INSTALL_DIR}/openliberty-${VERSION}
ENV DEPLOYMENT_DIR ${OPENLIBERTY_HOME}/standalone/deployments/
RUN curl -O https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/release/${RELEASE}/openliberty-${VERSION}.zip \
&& unzip openliberty-${VERSION}.zip -d ${INSTALL_DIR} \
&& rm openliberty-${VERSION}.zip
ENV PATH=/opt/ibm/wlp/bin:$PATH

# Set Path Shortcuts
ENV LOG_DIR=/logs \
WLP_OUTPUT_DIR=/opt/ibm/wlp/output

RUN mkdir /logs \
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config

# Configure WebSphere Liberty
RUN /opt/ibm/wlp/bin/server create \
&& rm -rf $WLP_OUTPUT_DIR/.classCache /output/workarea
COPY docker-server /opt/ibm/docker/
RUN chmod a+x /opt/ibm/docker/docker-server

ENV CONFIG /opt/wlp/usr/servers/defaultServer/
EXPOSE 9080 9443

CMD ["/opt/ibm/docker/docker-server", "run", "defaultServer"]
ENTRYPOINT /opt/wlp/bin/server run defaultServer

0 comments on commit 43f744e

Please sign in to comment.