Skip to content

Commit

Permalink
Hopefully fix log file path
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Feb 13, 2024
1 parent dfb854e commit 483f5ce
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,13 @@ provision-client:
script:
- ./scripts/generate_datafed.sh
- ./scripts/install_client_dependencies.sh

rules:
- changes:
- scripts/generate_datafed.sh
- scripts/install_client_dependencies.sh
- scripts/dependency_install_functions.sh
- scripts/dependency_versions.sh

################################################################################
# STAGE: build
################################################################################
Expand Down
5 changes: 5 additions & 0 deletions core/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ ${PROJECT_ROOT}/scripts/install_core.sh

log_path="$DATAFED_DEFAULT_LOG_PATH"

if [ ! -d "${log_path}" ]
then
mkdir -p "${log_path}"
fi

if [ "$#" -eq 0 ]; then
echo "No arguments were passed, running bash"
exec "bash"
Expand Down
7 changes: 7 additions & 0 deletions repository/docker/entrypoint_authz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ GLOBUS_CLIENT_ID="$DATAFED_GLOBUS_APP_ID"
${PROJECT_ROOT}/scripts/generate_datafed.sh
${BUILD_DIR}/scripts/globus/setup_globus.sh

log_path="$DATAFED_DEFAULT_LOG_PATH"

if [ ! -d "${log_path}" ]
then
mkdir -p "${log_path}"
fi

exec "$@"
7 changes: 7 additions & 0 deletions repository/docker/entrypoint_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ ${PROJECT_ROOT}/scripts/generate_datafed.sh
${PROJECT_ROOT}/scripts/generate_repo_config.sh
${PROJECT_ROOT}/scripts/install_repo.sh

log_path="$DATAFED_DEFAULT_LOG_PATH"

if [ ! -d "${log_path}" ]
then
mkdir -p "${log_path}"
fi

exec "$@"
5 changes: 5 additions & 0 deletions web/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export NODE_VERSION="$DATAFED_NODE_VERSION"
# Send output to file as well as print to terminal
log_path=$(grep "log-path" /datafed/install/web/datafed-ws.cfg | cut -d "=" -f 2 | tr -d ' ')

if [ ! -d "${log_path}" ]
then
mkdir -p "${log_path}"
fi

if [ "$#" -eq 0 ]; then
echo "No arguments were passed, running bash"
exec "bash"
Expand Down

0 comments on commit 483f5ce

Please sign in to comment.