Skip to content

Commit

Permalink
updating for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtallcampbell committed Jul 23, 2024
1 parent 253ba3c commit 5636fac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ terminate_processes() {
trap terminate_processes SIGTERM SIGINT

if [[ "${REGISTRY_ENABLED}" == "true" ]]; then
echo "REGISTRY_ENABLED='true'. Starting the OCI Registry..."
# Run the OCI_Registry in the background
registry serve /etc/docker/registry/config.yml &
REGISTRY_PID=$!
echo "...OCI Registry successfully started."
fi

if [[ "${PYPISERVER_ENABLED}" == "true" ]]; then
echo "PYPISERVER_ENABLED='true'. Starting the PyPiServer..."
# Run the pypi server in the background
mkdir -p /data/packages
/pypi-server/bin/pypi-server run -p ${PYPISERVER_PORT:-$PORT} --server gunicorn --backend cached-dir /data/packages --verbose --log-file /var/log/pypiserver.log &
PYPI_PID=$!
echo "...PyPiServer started."
fi


Expand Down

0 comments on commit 5636fac

Please sign in to comment.