mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-15 10:18:45 +00:00
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
FROM sapmachine:17.0.11
|
|
# This Dockerfile assumes that the release to use is provided as
|
|
# ${RELEASE}.tar.gz in the current Docker workspace. Use, e.g.,
|
|
# the configuration/github-download-release-assets.sh script to
|
|
# obtain the tar.gz file for a specific or the latest "main" release.
|
|
ARG RELEASE
|
|
LABEL maintainer=axel.uhl@sap.com
|
|
LABEL org.opencontainers.image.description="Sailing Analytics with Java 17"
|
|
# Download and extract the release
|
|
WORKDIR /home/sailing/servers/server
|
|
RUN apt-get update \
|
|
&& apt-get install -y wget apt-utils vim telnet dnsutils net-tools jq
|
|
COPY vimrc /root/.vimrc
|
|
RUN wget -O /tmp/rds.pem https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem \
|
|
&& ${JAVA_HOME}/bin/keytool -importcert -alias AWSRDS -file /tmp/rds.pem -keystore ${JAVA_HOME}/lib/security/cacerts -noprompt -storepass changeit \
|
|
&& rm /tmp/rds.pem
|
|
COPY ${RELEASE}.tar.gz /tmp
|
|
RUN tar xzvpf /tmp/${RELEASE}.tar.gz \
|
|
&& rm /tmp/${RELEASE}.tar.gz
|
|
COPY env.sh .
|
|
RUN cat env-default-rules.sh >>env.sh
|
|
COPY start .
|
|
COPY JavaSE-11.profile .
|
|
EXPOSE 8888 14888 8000 7091 6666
|
|
CMD [ "/home/sailing/servers/server/start", "docker" ]
|