forked from ScorpioBroker/ScorpioBroker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile4maven
46 lines (32 loc) · 1.17 KB
/
dockerfile4maven
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
FROM openjdk:8-jre
WORKDIR /usr/src/scorpio
ARG BUILD_DIR_SCS
ARG BUILD_DIR_SES
ARG BUILD_DIR_SGW
ARG BUILD_DIR_SCR
ARG JAR_FILE_BUILD_SCS
ARG JAR_FILE_BUILD_SES
ARG JAR_FILE_BUILD_SGW
ARG JAR_FILE_BUILD_SCR
ARG JAR_FILE_RUN_SCS
ARG JAR_FILE_RUN_SES
ARG JAR_FILE_RUN_SGW
ARG JAR_FILE_RUN_SCR
COPY ${BUILD_DIR_SCS}/target/${JAR_FILE_BUILD_SCS} ./scs/${JAR_FILE_RUN_SCS}
COPY ${BUILD_DIR_SES}/target/${JAR_FILE_BUILD_SES} ./ses/${JAR_FILE_RUN_SES}
COPY ${BUILD_DIR_SGW}/target/${JAR_FILE_BUILD_SGW} ./sgw/${JAR_FILE_RUN_SGW}
COPY ${BUILD_DIR_SCR}/target/${JAR_FILE_BUILD_SCR} ./scr/${JAR_FILE_RUN_SCR}
COPY ${BUILD_DIR_SES}/src/main/resources/application-aaio.yml ./ses/config/application.yml
COPY ${BUILD_DIR_SCS}/src/main/resources/application-aaio.yml ./scs/config/application.yml
COPY ${BUILD_DIR_SGW}/src/main/resources/application-aaio.yml ./sgw/config/application.yml
#COPY ${BUILD_DIR_SCR}/src/main/resources/application-aaio.yml ./scr/config/application.yml
ENV sesdir ses
ENV sesjar ${JAR_FILE_RUN_SES}
ENV scsdir scs
ENV scsjar ${JAR_FILE_RUN_SCS}
ENV sgwdir sgw
ENV sgwjar ${JAR_FILE_RUN_SGW}
ENV scrdir scr
ENV scrjar ${JAR_FILE_RUN_SCR}
COPY run.sh ./
CMD bash ./run.sh