-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-dev
59 lines (43 loc) · 1.2 KB
/
Dockerfile-dev
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
48
49
50
51
52
53
54
55
56
57
58
59
FROM statisticsnorway/alpine-jdk15-buildtools:latest as build
#
# Build DC Backend
#
#
# Build DC image
#
FROM alpine:latest
RUN apk add --no-cache bash su-exec curl openssl
ENV DC_HOME=/opt/dc
ENV JAVA_OPTS=
ENV PROXY_HTTP_HOST=
ENV PROXY_HTTP_PORT=
ENV PROXY_HTTPS_HOST=
ENV PROXY_HTTPS_PORT=
ENV ENABLE_JMX_REMOTE_DEBUGGING=true
#ENV UID=dc
#ENV GID=dc
#RUN useradd -r --create-home --home-dir $DC_HOME --groups $GID --shell /bin/bash $UID
#
# Resources from build image
#
COPY --from=build /opt/jdk /opt/jdk/
COPY target/dependency $DC_HOME/lib/
RUN mkdir -p /ld_lib \
&& LMDB_NATIVE_JAR=$(find $DC_HOME/lib -type f -iname 'jffi-*-native.jar') \
&& unzip "$LMDB_NATIVE_JAR" "jni/x86_64-Linux/*" -d /ld_lib \
&& rm -f "$LMDB_NATIVE_JAR"
COPY target/data-collector-*.jar $DC_HOME/lib/
COPY target/classes/logback-stash.xml $DC_HOME/
ADD docker/start-collector.sh /run.sh
RUN chmod +x /run.sh
#COPY docker/entrypoint.bash /entrypoint.sh
#RUN chmod +x /entrypoint.sh
ENV PATH=/opt/jdk/bin:$PATH
ENV JAVA_HOME=/opt/jdk
ENV LD_LIBRARY_PATH=/ld_lib/jni/x86_64-Linux/:$LD_LIBRARY_PATH
WORKDIR $DC_HOME
VOLUME ["/conf", "/certs"]
EXPOSE 9990
EXPOSE 9992
#ENTRYPOINT ["/entrypoint.sh"]
CMD ["/run.sh"]