-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from chirangaalwis/docker-is-v5.7.x-adoptopenjdk
Use AdoptOpenJDK 8 in WSO2 Identity Server and related product Docker resources
- Loading branch information
Showing
27 changed files
with
103 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
# ------------------------------------------------------------------------ | ||
|
||
# set to latest Alpine | ||
FROM openjdk:8u171-jdk-alpine3.8 | ||
FROM adoptopenjdk/openjdk8:jdk8u192-b12-alpine | ||
MAINTAINER WSO2 Docker Maintainers "[email protected]” | ||
# set user configurations | ||
|
@@ -61,11 +61,10 @@ RUN mkdir -p ${USER_HOME}/.java/.systemPrefs && \ | |
chmod -R 755 ${USER_HOME}/.java && \ | ||
chown -R ${USER}:${USER_GROUP} ${USER_HOME}/.java | ||
# copy wso2 product distribution zip files to user's home directory and set ownership | ||
# copy wso2 product distribution zip file to user's home directory and set ownership | ||
COPY --chown=wso2carbon:wso2 ${FILES}/${WSO2_SERVER_PACK}/ ${WSO2_SERVER_HOME}/ | ||
# copy mysql connector jar to the server as a third party library | ||
COPY --chown=wso2carbon:wso2 ${FILES}/mysql-connector-java-*-bin.jar ${WSO2_SERVER_HOME}/repository/components/lib/ | ||
ADD --chown=wso2carbon:wso2 https://repo1.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.1.7/snappy-java-1.1.1.7.jar ${WSO2_SERVER_HOME}/repository/components/lib/ | ||
COPY --chown=wso2carbon:wso2 ${FILES}/mysql-connector-java-*-bin.jar ${WSO2_SERVER_HOME}/lib/ | ||
# set the user and work directory | ||
USER ${USER_ID} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
# ------------------------------------------------------------------------ | ||
|
||
# set to latest Alpine | ||
FROM openjdk:8u171-jdk-alpine3.8 | ||
FROM adoptopenjdk/openjdk8:jdk8u192-b12-alpine | ||
MAINTAINER WSO2 Docker Maintainers "[email protected]” | ||
# set user configurations | ||
|
@@ -61,7 +61,7 @@ RUN mkdir -p ${USER_HOME}/.java/.systemPrefs && \ | |
chmod -R 755 ${USER_HOME}/.java && \ | ||
chown -R ${USER}:${USER_GROUP} ${USER_HOME}/.java | ||
# copy wso2 product distribution zip files to user's home directory and set ownership | ||
# copy wso2 product distribution zip file to user's home directory and set ownership | ||
COPY --chown=wso2carbon:wso2 ${FILES}/${WSO2_SERVER_PACK}/ ${WSO2_SERVER_HOME}/ | ||
# copy shared artifacts to a temporary location | ||
COPY --chown=wso2carbon:wso2 ${FILES}/${WSO2_SERVER_PACK}/repository/deployment/ ${USER_HOME}/wso2-tmp/deployment/ | ||
|
@@ -86,4 +86,4 @@ WORKDIR ${USER_HOME} | |
EXPOSE 4000 9763 9443 | ||
# initiate container and start WSO2 Carbon server | ||
ENTRYPOINT ${WORKING_DIRECTORY}/init.sh | ||
ENTRYPOINT ["/home/wso2carbon/init.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
# | ||
# ------------------------------------------------------------------------ | ||
|
||
# set to latest Ubuntu LTS | ||
FROM ubuntu:18.04 | ||
# set base Docker image to AdoptOpenJDK Ubuntu Docker image | ||
FROM adoptopenjdk/openjdk8:jdk8u192-b12 | ||
MAINTAINER WSO2 Docker Maintainers "[email protected]" | ||
|
||
# set user configurations | ||
|
@@ -28,9 +28,6 @@ ARG USER_GROUP_ID=802 | |
ARG USER_HOME=/home/${USER} | ||
# set dependant files directory | ||
ARG FILES=./files | ||
# set jdk configurations | ||
ARG JDK=jdk1.8.0* | ||
ARG JAVA_HOME=${USER_HOME}/java | ||
# set wso2 product configurations | ||
ARG WSO2_SERVER=wso2is-analytics | ||
ARG WSO2_SERVER_VERSION=5.7.0 | ||
|
@@ -45,20 +42,17 @@ The Docker container contains the WSO2 product with its latest updates, which ar | |
Read more about EULA 2.0 (https://wso2.com/licenses/wso2-update/2.0).\n" | ||
# install required packages | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
curl \ | ||
netcat && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends netcat && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \ | ||
>> /etc/bash.bashrc \ | ||
; echo "$MOTD" > /etc/motd | ||
; echo "$MOTD" > /etc/motd | ||
|
||
# create a user group and a user | ||
RUN groupadd --system -g ${USER_GROUP_ID} ${USER_GROUP} && \ | ||
useradd --system --create-home --home-dir ${USER_HOME} --no-log-init -g ${USER_GROUP_ID} -u ${USER_ID} ${USER} | ||
|
||
# copy the jdk and wso2 product distributions to user's home directory | ||
COPY --chown=wso2carbon:wso2 ${FILES}/${JDK} ${USER_HOME}/java/ | ||
# copy the wso2 product distribution to user's home directory | ||
COPY --chown=wso2carbon:wso2 ${FILES}/${WSO2_SERVER_PACK}/ ${WSO2_SERVER_HOME}/ | ||
# copy mysql connector jar to the server as a third party library | ||
COPY --chown=wso2carbon:wso2 ${FILES}/mysql-connector-java-*-bin.jar ${WSO2_SERVER_HOME}/lib/ | ||
|
@@ -68,7 +62,5 @@ USER ${USER_ID} | |
WORKDIR ${USER_HOME} | ||
|
||
# set environment variables | ||
ENV JAVA_HOME=${JAVA_HOME} \ | ||
PATH=$JAVA_HOME/bin:$PATH \ | ||
WSO2_SERVER_HOME=${WSO2_SERVER_HOME} \ | ||
ENV WSO2_SERVER_HOME=${WSO2_SERVER_HOME} \ | ||
WORKING_DIRECTORY=${USER_HOME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.