Fix LOGNAME env variable to properly call gcore-stop-container

This commit is contained in:
Antonio Calanducci 2023-12-06 10:34:59 +01:00
parent 3dacb211ad
commit 42ca067991
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ ENV PATH=$GLOBUS_LOCATION/bin:$PATH
#ENV EXIST_HOME=
#ENV GLOBUS_OPTIONS="-Dexist.home=$EXIST_HOME"
ENV GLOBUS_OPTIONS=""
ENV USER=$LOGNAME
ENV LOGNAME=$USER
ENV GCORE_START_OPTIONS="-DX509_USER_PROXY=$X509_USER_PROXY -Xms2800M -Xmx4800M"
RUN addgroup --system --gid 333 gcube
@ -71,8 +71,8 @@ RUN mkdir /gcube-data && chown gcube.nogroup /gcube-data
USER gcube
EXPOSE 8080
RUN /home/gcube/gCore/bin/gcore-start-container &
CMD /home/gcube/gCore/bin/gcore-start-container
# ENTRYPOINT exec /home/gcube/gCore/bin/gcore-start-container
ENTRYPOINT ["tail", "-f", "/dev/null"]
# ENTRYPOINT ["tail", "-f", "/dev/null"]
# 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