We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fba2a4 commit 45ab451Copy full SHA for 45ab451
1 file changed
docker/entrypoint.sh
@@ -69,6 +69,21 @@ pygeoapi openapi generate ${PYGEOAPI_CONFIG} --output-file ${PYGEOAPI_OPENAPI}
69
70
echo "openapi.yml generated continue to pygeoapi"
71
72
+apt-get update
73
+apt-get install wget -y && \
74
+wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq &&\
75
+ chmod +x /usr/local/bin/yq
76
+
77
+echo "Evaluating gunicorn port from configuration"
78
79
+PORT="$(yq eval '.server.bind.port' ${PYGEOAPI_CONFIG})"
80
81
+if [ -n "$PORT" ]; then
82
+ CONTAINER_PORT=$PORT
83
+fi
84
85
+echo "Guincorn port set to ${CONTAINER_PORT}"
86
87
start_gunicorn() {
88
# SCRIPT_NAME should not have value '/'
89
[[ "${SCRIPT_NAME}" = '/' ]] && export SCRIPT_NAME="" && echo "make SCRIPT_NAME empty from /"
0 commit comments