-
Notifications
You must be signed in to change notification settings - Fork 216
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 #182 from chirangaalwis/docker-apim-ubuntu-openjdk
Use AdoptOpenJDK 8 in WSO2 API Manager and related product Docker resources
- Loading branch information
Showing
36 changed files
with
110 additions
and
118 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 |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
# | ||
# ------------------------------------------------------------------------ | ||
|
||
# set to latest Alpine | ||
FROM openjdk:8u171-jdk-alpine3.8 | ||
# set base Docker image to AdoptOpenJDK Alpine Docker image | ||
FROM adoptopenjdk/openjdk8:jdk8u192-b12-alpine | ||
MAINTAINER WSO2 Docker Maintainers "[email protected]” | ||
# set user configurations | ||
|
@@ -44,9 +44,7 @@ ARG MOTD='printf "\n\ | |
Read more about EULA 2.0 here @ https://wso2.com/licenses/wso2-update/2.0 \n"' | ||
# install required packages | ||
RUN apk add --update --no-cache \ | ||
curl \ | ||
netcat-openbsd && \ | ||
RUN apk add --update --no-cache netcat-openbsd && \ | ||
rm -rf /var/cache/apk/* | ||
# create a user group and a user | ||
|
@@ -69,11 +67,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 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}/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}/lib/ | ||
# set environment variables | ||
ENV WSO2_SERVER_HOME=${USER_HOME}/${WSO2_SERVER_PACK} \ | ||
|
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 Alpine | ||
FROM openjdk:8u171-jdk-alpine3.8 | ||
# set base Docker image to AdoptOpenJDK Alpine Docker image | ||
FROM adoptopenjdk/openjdk8:jdk8u192-b12-alpine | ||
MAINTAINER WSO2 Docker Maintainers "[email protected]” | ||
# set user configurations | ||
|
@@ -63,7 +63,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 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/server/ ${USER_HOME}/wso2-tmp/server/ | ||
|
@@ -88,4 +88,4 @@ WORKDIR ${USER_HOME} | |
EXPOSE 8280 8243 9763 9443 9099 5672 9711 9611 7711 7611 10397 | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
# | ||
# ------------------------------------------------------------------------ | ||
|
||
# set to latest Alpine | ||
FROM openjdk:8u171-jdk-alpine3.8 | ||
# set base Docker image to AdoptOpenJDK Alpine Docker image | ||
FROM adoptopenjdk/openjdk8:jdk8u192-b12-alpine | ||
MAINTAINER WSO2 Docker Maintainers "[email protected]” | ||
# set user configurations | ||
|
@@ -56,7 +56,7 @@ RUN addgroup -g ${USER_GROUP_ID} ${USER_GROUP}; \ | |
# MOTD login message | ||
RUN echo $MOTD > "$ENV" | ||
# copy wso2 product distribution zip files to user's home directory and set ownership | ||
# copy wso2 product distribution 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/ | ||
|
@@ -88,4 +88,4 @@ WORKDIR ${USER_HOME} | |
EXPOSE 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
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.