-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
27 lines (19 loc) · 915 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
FROM alpine:3.3
MAINTAINER info.inspectit@novatec-gmbh.de
ENV INSPECTIT_VERSION 1.9.3.107
COPY dumb-init /dumb-init
RUN apk --no-cache add ca-certificates wget \
&& wget https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.22-r5/glibc-2.22-r5.apk \
&& apk --allow-untrusted add glibc-2.22-r5.apk \
&& wget --no-check-certificate -O /inspectit-cmr.linux.x64.zip https://github.com/inspectIT/inspectIT/releases/download/${INSPECTIT_VERSION}/inspectit-cmr.linux.x64-${INSPECTIT_VERSION}.zip \
&& unzip /inspectit-cmr.linux.x64.zip -d . \
&& rm *.apk \
&& rm /inspectit-cmr.linux.x64.zip \
&& cp -ar /CMR/config /CMR/config.orig \
&& cp -ar /CMR/ci /CMR/ci.orig
WORKDIR /CMR
VOLUME ["/CMR/config", "/CMR/db", "/CMR/storage", "/CMR/ci"]
EXPOSE 8182 9070
COPY run.sh run.sh
CMD /bin/sh run.sh
HEALTHCHECK --interval=15s CMD wget http://localhost:8182/rest/cmr/version -qO /dev/null || exit 1