forked from sip3io/sip3-salto-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 961 Bytes
/
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
FROM java:alpine
MAINTAINER @agafox <[email protected]>
MAINTAINER @windsent <[email protected]>
RUN apk update && \
apk add openssl
ENV SERVICE_NAME sip3-salto
ENV HOME /opt/$SERVICE_NAME
ENV EXECUTABLE_FILE $HOME/$SERVICE_NAME.jar
ADD target/$SERVICE_NAME*.jar $EXECUTABLE_FILE
ENV VERTX_OPTIONS_FILE $HOME/vertx-options.json
ADD src/main/resources/vertx-options.json $VERTX_OPTIONS_FILE
ENV CONFIG_FILE $HOME/application.yml
ADD src/main/resources/application.yml $CONFIG_FILE
ENV CODECS_FILE $HOME/codecs.yml
ADD src/main/resources/codecs.yml $CODECS_FILE
ENV UDF_FOLDER $HOME/udf
ADD src/main/resources/udf $UDF_FOLDER
ENV LOGBACK_FILE $HOME/logback.xml
ADD src/main/resources/logback.xml $LOGBACK_FILE
ENV JAVA_OPTS "-Xms256m -Xmx512m"
ENTRYPOINT java $JAVA_OPTS -jar $EXECUTABLE_FILE --options=$VERTX_OPTIONS_FILE -Dconfig.location=$CONFIG_FILE -Dcodecs.location=$CODECS_FILE -Dudf.location=$UDF_FOLDER -Dlogback.configurationFile=$LOGBACK_FILE