-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
47 lines (32 loc) · 1.51 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM centos:7
LABEL maintainer="[email protected]"
LABEL version="1.0.0"
ENV WSO2_VERSION 5.3.0
ENV WSO2_PRODUCT wso2is
ENV WSO2_PRODUCT_FOLDER ${WSO2_PRODUCT}-${WSO2_VERSION}
ENV WSO2_BUNDLE_NAME ${WSO2_PRODUCT}-km-${WSO2_VERSION}
ENV WSO2_PRODUCT_WUM_FOLDER ${WSO2_PRODUCT}-${WSO2_VERSION}
ENV JDK_VERSION 1.8.0_144
ENV JAVA_TOOL_OPTIONS -Duser.timezone=Europe/Madrid
ENV TZ CET-1CEST,M3.5.0,M10.5.0/3
COPY deps/packages/unzip-6.0-16.el7.x86_64.rpm /tmp/unzip-6.0-16.el7.x86_64.rpm
RUN rpm -i /tmp/unzip-6.0-16.el7.x86_64.rpm \
&& rm /tmp/unzip-6.0-16.el7.x86_64.rpm
COPY deps/packages/jdk-8u144-linux-x64.rpm /tmp/jdk-8u144-linux-x64.rpm
RUN rpm -i /tmp/jdk-8u144-linux-x64.rpm \
&& ln -s /usr/java/jdk${JDK_VERSION} /usr/java/jdk \
&& rm /tmp/jdk-8u144-linux-x64.rpm
ENV JAVA_HOME=/usr/java/jdk${JDK_VERSION}
RUN mkdir -p /tmp/${WSO2_PRODUCT_FOLDER}-stage
COPY deps/${WSO2_PRODUCT_FOLDER}.zip /tmp/${WSO2_PRODUCT_FOLDER}.zip
RUN chmod +rx /tmp/${WSO2_PRODUCT_FOLDER}.zip \
&& unzip /tmp/${WSO2_PRODUCT_FOLDER}.zip -d /tmp/${WSO2_PRODUCT_FOLDER}-stage/ \
&& mv /tmp/${WSO2_PRODUCT_FOLDER}-stage/${WSO2_BUNDLE_NAME} /opt/${WSO2_PRODUCT_FOLDER} \
&& rm /tmp/${WSO2_PRODUCT_FOLDER}.zip
COPY deps/config/ /opt/${WSO2_PRODUCT_FOLDER}/
RUN rm -rf /tmp/${WSO2_PRODUCT}-config-stage
# Create symlink
RUN ln -s /opt/${WSO2_PRODUCT_FOLDER}/repository/resources/security/ /etc/ssl
WORKDIR /opt/${WSO2_PRODUCT_FOLDER}/
EXPOSE 9443 9763 8243 8280
ENTRYPOINT /opt/${WSO2_PRODUCT_FOLDER}/bin/wso2server.sh