Skip to content

Commit

Permalink
Merge pull request #182 from chirangaalwis/docker-apim-ubuntu-openjdk
Browse files Browse the repository at this point in the history
Use AdoptOpenJDK 8 in WSO2 API Manager and related product Docker resources
  • Loading branch information
DilanUA authored Jan 11, 2019
2 parents 86bf053 + bd22b50 commit 50d7427
Show file tree
Hide file tree
Showing 36 changed files with 110 additions and 118 deletions.
6 changes: 3 additions & 3 deletions dockerfiles/alpine/apim-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ git clone https://github.com/wso2/docker-apim.git

>The local copy of the `dockerfile/alpine/apim-analytics` directory will be referred to as `ANALYTICS_DOCKERFILE_HOME` from this point onwards.
##### 2. Add WSO2 API Manager Analytics distributions and MySQL Connector to `<ANALYTICS_DOCKERFILE_HOME>`.
##### 2. Add WSO2 API Manager Analytics distribution and MySQL Connector to `<ANALYTICS_DOCKERFILE_HOME>`.

- Download the [WSO2 API Manager Analytics 2.6.0](https://wso2.com/api-management/install/analytics/)
and extract it to `<ANALYTICS_DOCKERFILE_HOME>/base/files`.
- Download [MySQL Connector/J](https://dev.mysql.com/downloads/connector/j/) v5.1.45 and then copy that to `<ANALYTICS_DOCKERFILE_HOME>/base/files` folder <br>
- Download [MySQL Connector/J](https://downloads.mysql.com/archives/c-j) and then copy that to `<ANALYTICS_DOCKERFILE_HOME>/base/files` folder <br>
- Once all of these are in place, it should look as follows:

```bash
<ANALYTICS_DOCKERFILE_HOME>/base/files/mysql-connector-java-5.1.45-bin.jar
<ANALYTICS_DOCKERFILE_HOME>/base/files/mysql-connector-java-<version>-bin.jar
<ANALYTICS_DOCKERFILE_HOME>/base/files/wso2am-analytics-2.6.0/
```

Expand Down
11 changes: 4 additions & 7 deletions dockerfiles/alpine/apim-analytics/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "dev@wso2.org”
# set user configurations
Expand All @@ -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
Expand All @@ -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} \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/alpine/apim-analytics/dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY --chown=wso2carbon:wso2 init.sh ${WORKING_DIRECTORY}/
EXPOSE 9713 9643 9613 7713 7613

# start WSO2 Carbon server
ENTRYPOINT ${WORKING_DIRECTORY}/init.sh
ENTRYPOINT ["/home/wso2carbon/init.sh"]
2 changes: 1 addition & 1 deletion dockerfiles/alpine/apim-analytics/dashboard/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ test -d ${config_volume}/ && cp -RL ${config_volume}/* ${WSO2_SERVER_HOME}/
test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/dashboard.sh
sh ${WSO2_SERVER_HOME}/bin/dashboard.sh "$@"
2 changes: 1 addition & 1 deletion dockerfiles/alpine/apim-analytics/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY --chown=wso2carbon:wso2 init.sh ${WORKING_DIRECTORY}/
EXPOSE 9091 9444 7712 7612 9613 9713 7444 7071

# start WSO2 Carbon server
ENTRYPOINT ${WORKING_DIRECTORY}/init.sh
ENTRYPOINT ["/home/wso2carbon/init.sh"]
2 changes: 1 addition & 1 deletion dockerfiles/alpine/apim-analytics/worker/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ test -d ${config_volume}/ && cp -RL ${config_volume}/* ${WSO2_SERVER_HOME}/
test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/worker.sh
sh ${WSO2_SERVER_HOME}/bin/worker.sh "$@"
8 changes: 4 additions & 4 deletions dockerfiles/alpine/apim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "dev@wso2.org”
# set user configurations
Expand Down Expand Up @@ -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/
Expand All @@ -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"]
6 changes: 3 additions & 3 deletions dockerfiles/alpine/apim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ git clone https://github.com/wso2/docker-apim.git

>The local copy of the `dockerfiles/alpine/apim` directory will be referred to as `AM_DOCKERFILE_HOME` from this point onwards.
##### 2. Add WSO2 API Manager distributions and MySQL connector to `<AM_DOCKERFILE_HOME>/files`.
##### 2. Add WSO2 API Manager distribution and MySQL connector to `<AM_DOCKERFILE_HOME>/files`.

- Download [WSO2 API Manager v2.6.0](https://wso2.com/api-management/)
distribution and extract it to `<AM_DOCKERFILE_HOME>/files`.
- Download [MySQL Connector JAR v5.1.45](https://downloads.mysql.com/archives/c-j)
- Download [MySQL Connector/J](https://downloads.mysql.com/archives/c-j)
and copy that to `<AM_DOCKERFILE_HOME>/files`.
- Once all of these are in place, it should look as follows:

```bash
<AM_DOCKERFILE_HOME>/files/jdk<version>/
<AM_DOCKERFILE_HOME>/files/mysql-connector-java-<version>-bin.jar
<AM_DOCKERFILE_HOME>/files/wso2am-2.6.0/
```

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/alpine/apim/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/
sed -i "s#<parameter\ name=\"localMemberHost\".*<\/parameter>#<parameter\ name=\"localMemberHost\">${docker_container_ip}<\/parameter>#" ${WSO2_SERVER_HOME}/repository/conf/axis2/axis2.xml

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh "$@"
8 changes: 4 additions & 4 deletions dockerfiles/alpine/is-as-km/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "dev@wso2.org”
# set user configurations
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -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"]
6 changes: 3 additions & 3 deletions dockerfiles/alpine/is-as-km/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ git clone https://github.com/wso2/docker-apim.git
>The local copy of the `dockerfiles/alpine/is-as-km` directory will be referred to as `IS_KM_DOCKERFILE_HOME` from this point onwards.

##### 2. Add WSO2 Identity Server as Key Manager distributions and MySQL connector to `<IS_KM_DOCKERFILE_HOME>/files`.
##### 2. Add WSO2 Identity Server as Key Manager distribution and MySQL connector to `<IS_KM_DOCKERFILE_HOME>/files`.

- Download [WSO2 Identity Server as Key Manager v5.7.0](https://wso2.com/api-management/install/key-manager/)
distribution and extract it to `<IS_KM_DOCKERFILE_HOME>/files`.
- Download [MySQL Connector JAR v5.1.45](https://downloads.mysql.com/archives/c-j)
- Download [MySQL Connector/J](https://downloads.mysql.com/archives/c-j)
and copy that to `<IS_KM_DOCKERFILE_HOME>/files`.
- Once all of these are in place, it should look as follows:

```bash
<IS_KM_DOCKERFILE_HOME>/files/jdk<version>/
<IS_KM_DOCKERFILE_HOME>/files/mysql-connector-java-<version>-bin.jar
<IS_KM_DOCKERFILE_HOME>/files/wso2is-km-5.7.0/
```

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/alpine/is-as-km/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/
sed -i "s#<parameter\ name=\"localMemberHost\".*<\/parameter>#<parameter\ name=\"localMemberHost\">${docker_container_ip}<\/parameter>#" ${WSO2_SERVER_HOME}/repository/conf/axis2/axis2.xml

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh "$@"
9 changes: 4 additions & 5 deletions dockerfiles/centos/apim-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ git clone https://github.com/wso2/docker-apim.git
##### 2. Add JDK, WSO2 API Manager Analytics distributions and MySQL Connector to `<ANALYTICS_DOCKERFILE_HOME>`.

- Download [JDK v1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
and extract it to `<ANALYTICS_DOCKERFILE_HOME>/base/files`.
- Download [AdoptOpenJDK 8](https://adoptopenjdk.net/) and extract it to `<ANALYTICS_DOCKERFILE_HOME>/files`.
- Download the [WSO2 API Manager Analytics 2.6.0](https://wso2.com/api-management/install/analytics/)
and extract it to `<ANALYTICS_DOCKERFILE_HOME>/base/files`.
- Download [MySQL Connector/J](https://dev.mysql.com/downloads/connector/j/) v5.1.45 and then copy that to `<ANALYTICS_DOCKERFILE_HOME>/base/files` folder <br>
- Download [MySQL Connector/J](https://downloads.mysql.com/archives/c-j) and then copy that to `<ANALYTICS_DOCKERFILE_HOME>/base/files` folder <br>
- Once all of these are in place, it should look as follows:

```bash
<ANALYTICS_DOCKERFILE_HOME>/base/files/jdk<version>/
<ANALYTICS_DOCKERFILE_HOME>/base/files/mysql-connector-java-5.1.45-bin.jar
<ANALYTICS_DOCKERFILE_HOME>/base/files/jdk8u<version>/
<ANALYTICS_DOCKERFILE_HOME>/base/files/mysql-connector-java-<version>-bin.jar
<ANALYTICS_DOCKERFILE_HOME>/base/files/wso2am-analytics-2.6.0/
```

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/centos/apim-analytics/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG USER_HOME=/home/${USER}
# set dependant files directory
ARG FILES=./files
# set jdk configurations
ARG JDK=jdk1.8.0*
ARG JDK=jdk8u*
ARG JAVA_HOME=${USER_HOME}/java
# set wso2 product configurations
ARG WSO2_SERVER=wso2am-analytics
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/centos/apim-analytics/dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY --chown=wso2carbon:wso2 init.sh ${WORKING_DIRECTORY}/
EXPOSE 9713 9643 9613 7713 7613

# start WSO2 Carbon server
ENTRYPOINT ${WORKING_DIRECTORY}/init.sh
ENTRYPOINT ["/home/wso2carbon/init.sh"]
2 changes: 1 addition & 1 deletion dockerfiles/centos/apim-analytics/dashboard/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ test -d ${config_volume}/ && cp -RL ${config_volume}/* ${WSO2_SERVER_HOME}/
test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/dashboard.sh
sh ${WSO2_SERVER_HOME}/bin/dashboard.sh "$@"
2 changes: 1 addition & 1 deletion dockerfiles/centos/apim-analytics/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY --chown=wso2carbon:wso2 init.sh ${WORKING_DIRECTORY}/
EXPOSE 9091 9444 7712 7612 9613 9713 7444 7071

# start WSO2 Carbon server
ENTRYPOINT ${WORKING_DIRECTORY}/init.sh
ENTRYPOINT ["/home/wso2carbon/init.sh"]
2 changes: 1 addition & 1 deletion dockerfiles/centos/apim-analytics/worker/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ test -d ${config_volume}/ && cp -RL ${config_volume}/* ${WSO2_SERVER_HOME}/
test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/worker.sh
sh ${WSO2_SERVER_HOME}/bin/worker.sh "$@"
5 changes: 3 additions & 2 deletions dockerfiles/centos/apim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG USER_HOME=/home/${USER}
# set dependant files directory
ARG FILES=./files
# set jdk configurations
ARG JDK=jdk1.8.0*
ARG JDK=jdk8u*
ARG JAVA_HOME=${USER_HOME}/java
# set wso2 product configurations
ARG WSO2_SERVER=wso2am
Expand All @@ -43,6 +43,7 @@ ARG MOTD='printf "\n\
This Docker container comprises of a WSO2 product, running with its latest updates \n\
which are under the End User License Agreement (EULA) 2.0. \n\
Read more about EULA 2.0 here @ https://wso2.com/licenses/wso2-update/2.0 \n"'

# install required packages
RUN yum -y update && \
yum install -y nc && \
Expand Down Expand Up @@ -80,4 +81,4 @@ ENV JAVA_HOME=${JAVA_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"]
12 changes: 5 additions & 7 deletions dockerfiles/centos/apim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ git clone https://github.com/wso2/docker-apim.git
##### 2. Add JDK, WSO2 API Manager distributions and MySQL connector to `<AM_DOCKERFILE_HOME>/files`.

- Download [JDK v1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
and extract it to `<AM_DOCKERFILE_HOME>/files`.
- Download [WSO2 API Manager v2.6.0](https://wso2.com/api-management/)
distribution and extract it to `<AM_DOCKERFILE_HOME>/files`.
- Download [MySQL Connector JAR v5.1.45](https://downloads.mysql.com/archives/c-j)
and copy that to `<AM_DOCKERFILE_HOME>/files`.
- Download [AdoptOpenJDK 8](https://adoptopenjdk.net/) and extract it to `<AM_DOCKERFILE_HOME>/files`.
- Download [WSO2 API Manager v2.6.0](https://wso2.com/api-management/) distribution and extract it to `<AM_DOCKERFILE_HOME>/files`.
- Download [MySQL Connector/J](https://downloads.mysql.com/archives/c-j) and copy that to `<AM_DOCKERFILE_HOME>/files`.
- Once all of these are in place, it should look as follows:

```bash
<AM_DOCKERFILE_HOME>/files/jdk<version>/
<AM_DOCKERFILE_HOME>/files/jdk8u<version>/
<AM_DOCKERFILE_HOME>/files/mysql-connector-java-<version>-bin.jar
<AM_DOCKERFILE_HOME>/files/wso2am-2.6.0/
```

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/centos/apim/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/
sed -i "s#<parameter\ name=\"localMemberHost\".*<\/parameter>#<parameter\ name=\"localMemberHost\">${docker_container_ip}<\/parameter>#" ${WSO2_SERVER_HOME}/repository/conf/axis2/axis2.xml

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh "$@"
4 changes: 2 additions & 2 deletions dockerfiles/centos/is-as-km/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ARG USER_HOME=/home/${USER}
# set dependant files directory
ARG FILES=./files
# set jdk configurations
ARG JDK=jdk1.8.0*
ARG JDK=jdk8u*
ARG JAVA_HOME=${USER_HOME}/java
# set wso2 product configurations
ARG WSO2_SERVER=wso2is-km
Expand Down Expand Up @@ -80,4 +80,4 @@ ENV JAVA_HOME=${JAVA_HOME} \
EXPOSE 9763 9443

# initiate container and start WSO2 Carbon server
ENTRYPOINT ${WORKING_DIRECTORY}/init.sh
ENTRYPOINT ["/home/wso2carbon/init.sh"]
8 changes: 4 additions & 4 deletions dockerfiles/centos/is-as-km/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ git clone https://github.com/wso2/docker-apim.git

##### 2. Add JDK, WSO2 Identity Server as Key Manager distributions and MySQL connector to `<IS_KM_DOCKERFILE_HOME>/files`.

- Download [JDK v1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
and extract it to `<IS_KM_DOCKERFILE_HOME>/files`.
- Download [AdoptOpenJDK 8](https://adoptopenjdk.net/) and extract it to `<IS_KM_DOCKERFILE_HOME>/files`.
- Download [WSO2 Identity Server as Key Manager v5.7.0](https://wso2.com/api-management/install/key-manager/)
distribution and extract it to `<IS_KM_DOCKERFILE_HOME>/files`.
- Download [MySQL Connector JAR v5.1.45](https://downloads.mysql.com/archives/c-j)
- Download [MySQL Connector/J](https://downloads.mysql.com/archives/c-j)
and copy that to `<IS_KM_DOCKERFILE_HOME>/files`.
- Once all of these are in place, it should look as follows:

```bash
<IS_KM_DOCKERFILE_HOME>/files/jdk<version>/
<IS_KM_DOCKERFILE_HOME>/files/jdk8u<version>/
<IS_KM_DOCKERFILE_HOME>/files/mysql-connector-java-<version>-bin.jar
<IS_KM_DOCKERFILE_HOME>/files/wso2is-km-5.7.0/
```

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/centos/is-as-km/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ test -d ${artifact_volume}/ && cp -RL ${artifact_volume}/* ${WSO2_SERVER_HOME}/
sed -i "s#<parameter\ name=\"localMemberHost\".*<\/parameter>#<parameter\ name=\"localMemberHost\">${docker_container_ip}<\/parameter>#" ${WSO2_SERVER_HOME}/repository/conf/axis2/axis2.xml

# start WSO2 Carbon server
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh
sh ${WSO2_SERVER_HOME}/bin/wso2server.sh "$@"
9 changes: 3 additions & 6 deletions dockerfiles/ubuntu/apim-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@ git clone https://github.com/wso2/docker-apim.git

>The local copy of the `dockerfile/ubuntu/apim-analytics` directory will be referred to as `ANALYTICS_DOCKERFILE_HOME` from this point onwards.
##### 2. Add JDK, WSO2 API Manager Analytics distributions and MySQL Connector to `<ANALYTICS_DOCKERFILE_HOME>`.
##### 2. Add WSO2 API Manager Analytics distribution and MySQL Connector to `<ANALYTICS_DOCKERFILE_HOME>`.

- Download [JDK v1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
and extract it to `<ANALYTICS_DOCKERFILE_HOME>/base/files`.
- Download the [WSO2 API Manager Analytics 2.6.0](https://wso2.com/api-management/install/analytics/)
and extract it to `<ANALYTICS_DOCKERFILE_HOME>/base/files`.
- Download [MySQL Connector/J](https://dev.mysql.com/downloads/connector/j/) v5.1.45 and then copy that to `<ANALYTICS_DOCKERFILE_HOME>/base/files` folder <br>
- Download [MySQL Connector/J](https://downloads.mysql.com/archives/c-j) and then copy that to `<ANALYTICS_DOCKERFILE_HOME>/base/files` folder <br>
- Once all of these are in place, it should look as follows:

```bash
<ANALYTICS_DOCKERFILE_HOME>/base/files/jdk<version>/
<ANALYTICS_DOCKERFILE_HOME>/base/files/mysql-connector-java-5.1.45-bin.jar
<ANALYTICS_DOCKERFILE_HOME>/base/files/wso2am-analytics-2.6.0/
<ANALYTICS_DOCKERFILE_HOME>/base/files/mysql-connector-java-<version>-bin.jar
```

>Please refer to [WSO2 Update Manager documentation](https://docs.wso2.com/display/WUM300/WSO2+Update+Manager)
Expand Down
Loading

0 comments on commit 50d7427

Please sign in to comment.