Skip to content

Instantly share code, notes, and snippets.

@Eng-Fouad
Created February 16, 2019 11:40
Show Gist options
  • Save Eng-Fouad/c33ef02bbf877be7cadbf67329ee49a7 to your computer and use it in GitHub Desktop.
Save Eng-Fouad/c33ef02bbf877be7cadbf67329ee49a7 to your computer and use it in GitHub Desktop.
Dockerfile Example
FROM ubuntu:18.10
# install latest updates
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoremove -y && apt-get autoclean -y
# install unzip & wget
RUN apt-get install -y unzip wget
# install OpenJDK JRE
RUN apt-get install -y openjdk-11-jre
# install webshpere liberty
RUN wget -O /opt/wlp-javaee8-19.0.0.1.zip https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/19.0.0.1/wlp-javaee8-19.0.0.1.zip
RUN unzip /opt/wlp-javaee8-19.0.0.1.zip -d /opt
RUN rm /opt/wlp-javaee8-19.0.0.1.zip
# setup websphere liberty servers
RUN /opt/wlp/bin/server create test-server
RUN echo "WLP_SKIP_MAXPERMSIZE=true\nJAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64" > /opt/wlp/usr/servers/test-server/server.env
COPY server.xml /opt/wlp/usr/servers/test-server/server.xml
# install Nginx
RUN apt-get install -y nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment