Skip to content

Commit 019f21d

Browse files
author
Olesia Solonko
committed
pygeoapi: used fixed version of base image, edit init.sh as execution path changed in new version
1 parent 6048211 commit 019f21d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pygeoapi/docker/Dockerfile.pygeoapi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM geopython/pygeoapi:latest
1+
FROM geopython/pygeoapi:0.21.0
22

33
# Copy configuration
44
COPY pygeoapi/pygeoapi-config.yml /pygeoapi/local.config.yml

pygeoapi/docker/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ else
1717
fi
1818

1919
# Get pygeoapi version
20-
PYGEOAPI_VERSION=$(pygeoapi --version 2>&1)
20+
PYGEOAPI_VERSION=$(python3 -c "import pygeoapi; print('pygeoapi, version', pygeoapi.__version__)" 2>/dev/null || echo "unknown")
2121
echo "$(get_timestamp) [init] PyGeoAPI version: $PYGEOAPI_VERSION"
2222

2323
# Remove any existing readiness indicator

0 commit comments

Comments
 (0)