-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (26 loc) · 1.09 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
FROM openjdk:8-jre-slim
RUN useradd -ms /bin/bash rce-run
RUN apt-get update && apt-get install -y wget sudo unzip && rm -rf /var/lib/apt/lists/*
ARG RCE_BASE_URL=https://software.dlr.de/updates/rce/10.x/products/standard/releases/latest
RUN wget -nv -O /VERSION ${RCE_BASE_URL}/zip/VERSION \
&& VERSION=$(cat /VERSION) \
&& RCE_ZIP_URL=${RCE_BASE_URL}/zip/rce-${VERSION}-standard-linux.x86_64.zip \
&& echo Downloading $RCE_ZIP_URL ... \
&& wget -nv -O /tmp/rce.zip ${RCE_ZIP_URL} \
&& unzip /tmp/rce.zip -d / \
&& rm /tmp/rce.zip \
&& chmod +x /rce/rce
COPY entrypoint.sh /entrypoint.sh
# patch log configuration
COPY logging.conf /rce/configuration/services/org.ops4j.pax.logging.properties
# copy configuration templates
COPY configuration*.json /presets/
# adjust permissions
RUN chmod a+rx /entrypoint.sh \
&& mkdir -p /profile/internal \
&& echo 2 > /profile/internal/profile.version \
&& chown rce-run: -R /presets /profile
# expose default ports for standard connections and SSH; may or may not be actually used
EXPOSE 20001 30001
USER rce-run
ENTRYPOINT ["/entrypoint.sh"]