Skip to content

Commit

Permalink
test parametrage datahub
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebarros committed Sep 5, 2024
1 parent 3ea6f59 commit 08731e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 3 additions & 5 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ ENV CUSTOM_SCRIPTS_DIRECTORY ""

COPY dist/apps/${APP_NAME} /opt/catalogue/
RUN chmod +x /opt/docker-entrypoint-ign.sh
# RUN chown -R www-data:www-data /opt/catalogue/assets/configuration
RUN chown -R www-data:www-data /opt/catalogue/assets/configuration

# USER www-data
USER www-data

EXPOSE 8080

ENTRYPOINT ["sh", "/opt/docker-entrypoint-ign.sh"]

USER www-data
ENTRYPOINT ["sh", "/opt/docker-entrypoint-ign.sh"]
2 changes: 0 additions & 2 deletions tools/docker/docker-entrypoint-ign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ then
echo "[INFO] Replacing GN4 url in conf with: ${GN4_API_URL}..."
chmod 775 ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME}
sed "s%geonetwork4_api_url = \".*\"%geonetwork4_api_url = \"${GN4_API_URL}\"%" ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME} > /tmp/${CONFIG_FILE_NAME}
# && cat /tmp/${CONFIG_FILE_NAME} > ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME}
# rm /tmp/${CONFIG_FILE_NAME}
rm -f ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME}
cp /tmp/${CONFIG_FILE_NAME} ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME}
chmod 444 ${APP_FILES_PATH}${CONFIG_FILE_PATH}${CONFIG_FILE_NAME}
Expand Down

0 comments on commit 08731e7

Please sign in to comment.