Skip to content

Commit

Permalink
Link geonode and celery logfiles to stdout (#17)
Browse files Browse the repository at this point in the history
Closes #16
  • Loading branch information
ridoo authored Nov 6, 2024
1 parent c0b9161 commit 4edc086
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/.env.local
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Docker sets placeholders using a pre-context (e.g. shell or the .env-file).
# However, placeholders in this file will be used when variables are missing.

DEBUG=True
CELERY__LOG_LEVEL=INFO

# only use http in dev mode
HTTP_HOST=${SITE_HOST_NAME}
Expand Down
5 changes: 5 additions & 0 deletions docker/geonode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ FROM geonode/geonode:${BASE_IMAGE_VERSION}
COPY ./requirements.txt /usr/src/more_requirements.txt
RUN yes w | pip install --src /usr/src -r /usr/src/more_requirements.txt

# forward application logs to docker log collector
RUN true \
&& ln -sf /dev/stdout /var/log/geonode.log \
&& ln -sf /dev/stderr ${CELERY__LOG_FILE:-/var/log/celery.log}

#RUN rm .env*

0 comments on commit 4edc086

Please sign in to comment.