mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 10:48:47 +00:00
17 lines
1.3 KiB
Plaintext
Executable File
17 lines
1.3 KiB
Plaintext
Executable File
ARG SAPJVM_VERSION=8.1.103
|
|
FROM docker.sapsailing.com/sapjvm8:${SAPJVM_VERSION}
|
|
LABEL maintainer=axel.uhl@sap.com
|
|
# Download and extract the release
|
|
WORKDIR /home/sailing
|
|
RUN chmod 777 /home/sailing
|
|
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | apt-key add -
|
|
RUN echo "deb [arch=amd64,arm64] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" >/etc/apt/sources.list.d/mongodb-org-7.0.list
|
|
RUN apt-get update \
|
|
&& apt-get install -y vim mongodb-org-shell
|
|
COPY vimrc /root/.vimrc
|
|
RUN wget -O /tmp/rds.pem https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem \
|
|
&& /opt/sapjvm_8/bin/keytool -importcert -alias AWSRDS -file /tmp/rds.pem -keystore /opt/sapjvm_8/jre/lib/security/cacerts -noprompt -storepass changeit \
|
|
&& rm /tmp/rds.pem
|
|
RUN wget -O /home/sailing/WindEstimationModelsTraining.jar https://static.sapsailing.com/WindEstimationModelsTraining.jar
|
|
CMD exec java "${MEMORY}" -Dmongo.uri="${MONGODB_URI}" -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump/ -XX:+PrintAdaptiveSizePolicy -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:logs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -jar WindEstimationModelsTraining.jar "${BEARER_TOKEN}" ${TRAINING_DATA_PERCENT}
|