forked from COATnor/coat2pycsw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from mjanez/latest
Fix permissions to mount volumes
- Loading branch information
Showing
6 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Base image | ||
FROM ghcr.io/mjanez/ckan-pycsw:main AS base | ||
FROM ghcr.io/mjanez/ckan-pycsw:latest AS base | ||
LABEL maintainer="[email protected]" | ||
|
||
# ckan-pycsw envvars | ||
|
@@ -17,19 +17,18 @@ ENV TIMEOUT=300 | |
WORKDIR ${APP_DIR} | ||
|
||
# Update files if needed | ||
COPY ckan-pycsw/docker-entrypoint.d/entrypoint_dev.sh /app/docker-entrypoint.d/ | ||
COPY ckan-pycsw/conf/pycsw.conf.template ckan-pycsw/docker-entrypoint.d/entrypoint_dev.sh ./ | ||
COPY ckan2pycsw / | ||
|
||
USER root | ||
|
||
# Install dependencies for development mode | ||
RUN apt-get -q -y update && apt-get install -y --no-install-recommends \ | ||
procps=2:3.3.17-5 && \ | ||
python3 -m pip install --no-cache-dir \ | ||
debugpy==1.8.0 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
USER $USERNAME | ||
# Switch to root user to change permissions of folders in entrypoint. Then switch back to non-root user. | ||
USER root | ||
|
||
ENTRYPOINT ["/bin/bash", "-c", "python3 -m debugpy --listen 0.0.0.0:${PYCSW_DEV_PORT} --wait-for-client ./docker-entrypoint.d/entrypoint_dev.sh"] | ||
CMD ["pdm", "run", "python3", "-m", "gunicorn", "pycsw.wsgi:application", "-b", "0.0.0.0:${PYCSW_PORT}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters