Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #10963 #10964

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker-compose-geoserver-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
org.geonode.instance.name: geonode
command: /bin/true
volumes:
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}

geoserver:
image: geonode/geoserver:2.23.0
Expand All @@ -24,7 +24,7 @@ services:
depends_on:
- data-dir-conf
volumes:
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}
env_file:
- .env
ports:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ x-common-django:
volumes:
# - '.:/usr/src/geonode'
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}
- backup-restore:/backup_restore
- data:/data
- tmp:/tmp
Expand Down Expand Up @@ -101,7 +101,7 @@ services:
- .env_test
volumes:
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}
- backup-restore:/backup_restore
- data:/data
- tmp:/tmp
Expand All @@ -117,10 +117,10 @@ services:
container_name: gsconf4${COMPOSE_PROJECT_NAME}
entrypoint: sleep infinity
volumes:
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image geonode/geoserver_data:${VERSION} will need to be adjusted if we intend it to be generic as per the env variable ${GEOSERVER_DATA_DIR}, Currently it also hard codes the path /geoserver_data/data so that's why I was reluctant to change it here unless we fix the upstream image. In my case, I am downloading the data directory as part of the GeoServer entrypoint.sh using download.sh and then mounting it to a specific path defined by ${GEOSERVER_DATA_DIR}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will take a look and manage to see if the upstream image is customizable too

restart: on-failure
healthcheck:
test: "ls -A '/geoserver_data/data' | wc -l"
test: "ls -A '${GEOSERVER_DATA_DIR}' | wc -l"

# PostGIS database.
db:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ x-common-django:
volumes:
# - '.:/usr/src/geonode'
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}
- backup-restore:/backup_restore
- data:/data
- tmp:/tmp
Expand Down Expand Up @@ -101,7 +101,7 @@ services:
- .env
volumes:
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}
- backup-restore:/backup_restore
- data:/data
- tmp:/tmp
Expand All @@ -117,10 +117,10 @@ services:
container_name: gsconf4${COMPOSE_PROJECT_NAME}
entrypoint: sleep infinity
volumes:
- geoserver-data-dir:/geoserver_data/data
- geoserver-data-dir:${GEOSERVER_DATA_DIR}
restart: on-failure
healthcheck:
test: "ls -A '/geoserver_data/data' | wc -l"
test: "ls -A '${GEOSERVER_DATA_DIR}' | wc -l"

# PostGIS database.
db:
Expand Down