2021-08-09 18:04:31 +02:00
|
|
|
# The latest is 7u221. An exact build can be specified
|
2023-09-19 17:44:06 +02:00
|
|
|
FROM azul/zulu-openjdk:7u352
|
2021-08-09 18:04:31 +02:00
|
|
|
ARG JAVA_OPTS="-Xms2000M -Xmx2800M"
|
|
|
|
ENV JAVA_OPTS=$JAVA_OPTS
|
2023-09-19 17:44:06 +02:00
|
|
|
ENV J2SDKDIR=/usr/lib/jvm/zulu7
|
|
|
|
ENV J2REDIR=/usr/lib/jvm/zulu7/jre
|
|
|
|
ENV JAVA_HOME=/usr/lib/jvm/zulu7
|
|
|
|
ENV PATH=$JAVA_HOME/bin:$JAVA_HOME/db/bin:$JAVA_HOME/jre/bin:$PATH
|
|
|
|
|
|
|
|
# ENV DERBY_HOME=/docker-java-home/db
|
2021-08-09 18:04:31 +02:00
|
|
|
ENV USER=gcube
|
|
|
|
ENV GLOBUS_LOCATION=/home/gcube/gCore
|
|
|
|
ENV ANT_HOME=$GLOBUS_LOCATION
|
|
|
|
ENV PATH=$GLOBUS_LOCATION/bin:$PATH
|
|
|
|
#ENV EXIST_HOME=
|
|
|
|
#ENV GLOBUS_OPTIONS="-Dexist.home=$EXIST_HOME"
|
|
|
|
ENV GLOBUS_OPTIONS=""
|
|
|
|
|
2023-09-18 16:41:58 +02:00
|
|
|
RUN adduser --system --gecos "Gcube service user" --disabled-password --disabled-login --uid 333 --shell /usr/sbin/nologin gcube
|
2023-09-19 17:44:06 +02:00
|
|
|
RUN apt-get update
|
2023-09-22 14:16:38 +02:00
|
|
|
RUN apt-get install -y wget gettext-base
|
2021-08-09 18:04:31 +02:00
|
|
|
WORKDIR /home/gcube
|
2023-09-19 17:44:06 +02:00
|
|
|
RUN cd /home/gcube && wget https://nexus.d4science.org/nexus/content/repositories/gcube-staging-gcore/org/gcube/distribution/ghn-distribution/7.0.1-4.16.0-144317/ghn-distribution-7.0.1-4.16.0-144317.tar.gz && tar zxf ghn-distribution-7.0.1-4.16.0-144317.tar.gz && rm -f ghn-distribution-7.0.1-4.16.0-144317.tar.gz && mkdir -p /home/gcube/gCore/logs /home/gcube/gCore/tmp /home/gcube/gCore/config /home/gcube/gCore/etc && chown gcube /home/gcube/gCore/logs /home/gcube/gCore/tmp /home/gcube/gCore/config /home/gcube/gCore/etc
|
2021-08-09 18:04:31 +02:00
|
|
|
COPY src/gcube-start-container.sh /home/gcube/gCore/bin/gcore-start-container
|
2023-09-22 14:16:38 +02:00
|
|
|
COPY src/GHNConfig.xml.template /home/gcube/gCore/config/GHNConfig.xml.template
|
|
|
|
ENV INFRASTRUCTURE=gcube
|
|
|
|
ENV START_SCOPE=devNext
|
|
|
|
RUN envsubst < /home/gcube/gCore/config/GHNConfig.xml.template > /home/gcube/gCore/config/GHNConfig.xml
|
2021-08-09 18:04:31 +02:00
|
|
|
RUN chmod 755 /home/gcube/gCore/bin/gcore-start-container
|
|
|
|
EXPOSE 8080
|
2023-09-18 16:41:58 +02:00
|
|
|
USER gcube
|
2021-08-09 18:04:31 +02:00
|
|
|
ENTRYPOINT exec /home/gcube/gCore/bin/gcore-start-container
|
|
|
|
# For Spring-Boot project, use the entrypoint below to reduce Tomcat startup time.
|
|
|
|
#ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar ansibleplaybookisregistryservice.jar
|