Commit 09f51a72 authored by BRUVRY-LAGADEC's avatar BRUVRY-LAGADEC 💻
Browse files

Merge branch 'feature/isival' into 'feature/imagine'

use generic names for user managment

See merge request sih-public/sumaris/sumaris-pod!52
parents cc2f3410 5013117b
......@@ -3,21 +3,20 @@ ARG ENTRYPOINT=app.sh
ARG WAR_FILE=app.war
ARG CONFIG_FILES=config/*.properties
RUN apt update && apt -y install libsodium-dev
# container user managment
COPY ${ENTRYPOINT} /app/app.sh
RUN chmod +x /app/app.sh
COPY ${WAR_FILE} /app/app.war
COPY ${CONFIG_FILES} /app/config/
ENV USERNAME="sih_web" \
GROUPNAME="ditiisi" \
GROUPID="10004"
# TODO : remove when logfile will be overwrite
# container user managment
ENV USERNAME="sumaris_user" \
GROUPNAME="sumaris"
# TODO : remove touch when logfile location will be overwrite
RUN touch sumaris.log.file_IS_UNDEFINED
RUN groupadd -g $GROUPID $GROUPNAME \
RUN groupadd $GROUPNAME \
&& useradd -g $GROUPNAME $USERNAME \
&& chown -R $USERNAME:$GROUPNAME /app \
&& chown -R $USERNAME:$GROUPNAME sumaris.log.file_IS_UNDEFINED
USER $USERNAME
# TODO : do we have to force user ?? (USER $USERNAME)
ENV PORT=8080 \
TZ=UTC \
PROFILES=default
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment