-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (30 loc) · 1.27 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
FROM maven:3-jdk-8 AS build
RUN apt-get update && apt-get -y install net-tools
WORKDIR /src
COPY . /src/
RUN mvn clean package -Dmaven.test.skip=true
FROM openjdk:8-jre-alpine
ENV DATAWOLF_ADMINS=admin@example.com \
DB_CLASS_NAME="org.postgresql.ds.PGSimpleDataSource" \
DB_DIALECT="org.hibernate.dialect.PostgreSQL9Dialect" \
DB_SOURCE_URL="jdbc:postgresql://postgres/datawolf" \
DB_MAX_POOLSIZE=100 \
DB_IDLE_TIMEOUT=30000 \
DB_USER=datawolf \
DB_PASSWORD=datawolf \
KUBERNETES_NAMESPACE="datawolf" \
KUBERNETES_PVC="datawolf" \
KUBERNETES_DATA="/data" \
KUBERNETES_CPU=2 \
KUBERNETES_MEMORY=4 \
DATASET_PERMISSIONS=private
EXPOSE 8888
VOLUME /home/datawolf/data
WORKDIR /home/datawolf
COPY --from=build /src/datawolf-editor/target/datawolf-editor-*.war /home/datawolf/lib/
COPY --from=build /src/datawolf-webapp-all/target/datawolf-webapp-all-*.war /home/datawolf/lib/
COPY --from=build /src/datawolf-webapp-all/target/dependency/jetty-runner.jar /home/datawolf/lib/
COPY --from=build /src/datawolf-webapp-all/src/assembly/bin/datawolf-service /home/datawolf/bin/
COPY --from=build /src/datawolf-webapp-all/src/assembly/conf/* /home/datawolf/conf/
COPY docker/custom.properties /home/datawolf/conf
CMD /home/datawolf/bin/datawolf-service