-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.fibonacci
39 lines (28 loc) · 1.54 KB
/
Dockerfile.fibonacci
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
ARG PARENT_IMAGE
FROM $PARENT_IMAGE
MAINTAINER [email protected]
ARG SAG_HOME
ARG MSC_INSTANCE_NAME
USER root
ENV PACKAGES_HOME=$SAG_HOME/IntegrationServer/instances/${MSC_INSTANCE_NAME}/packages
COPY target/sag-microservices-demo/build/IS/WxAPIClientUtils.zip $PACKAGES_HOME/
COPY target/sag-microservices-demo/build/IS/WxFibonacci.zip $PACKAGES_HOME/
RUN yum install -y unzip && \
unzip $PACKAGES_HOME/WxAPIClientUtils.zip -d $PACKAGES_HOME/WxAPIClientUtils/ && \
rm -f $PACKAGES_HOME/WxAPIClientUtils.zip && \
chown -R sagadmin:sagadmin $PACKAGES_HOME/WxAPIClientUtils/ && \
\
unzip $PACKAGES_HOME/WxFibonacci.zip -d $PACKAGES_HOME/WxFibonacci/ && \
rm -f $PACKAGES_HOME/WxFibonacci.zip && \
chown -R sagadmin:sagadmin $PACKAGES_HOME/WxFibonacci/ && \
\
yum remove -y unzip
# copy the consul config
COPY --chown=sagadmin:sagadmin assets/IS/Configs/Global/registry.xml $SAG_HOME/IntegrationServer/instances/${MSC_INSTANCE_NAME}/config/microservices/registry.cnf
# copy the package specific settings
COPY --chown=sagadmin:sagadmin assets/IS/Configs/Packages/WxFibonacci/application.properties $SAG_HOME/IntegrationServer/instances/${MSC_INSTANCE_NAME}/
COPY --chown=sagadmin:sagadmin assets/IS/Configs/Packages/WxFibonacci/globalVariables.xml $SAG_HOME/IntegrationServer/instances/${MSC_INSTANCE_NAME}/config/globalVariables.cnf
### ADD license key -- use embedded trial
##COPY --chown=sagadmin:sagadmin licenseKey.xml $SAG_HOME/IntegrationServer/instances/${MSC_INSTANCE_NAME}/config/licenseKey.xml
# Set it for subsequent commands
USER sagadmin