File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,21 @@ pygeoapi openapi generate ${PYGEOAPI_CONFIG} --output-file ${PYGEOAPI_OPENAPI}
69
69
70
70
echo " openapi.yml generated continue to pygeoapi"
71
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
+
72
87
start_gunicorn () {
73
88
# SCRIPT_NAME should not have value '/'
74
89
[[ " ${SCRIPT_NAME} " = ' /' ]] && export SCRIPT_NAME=" " && echo " make SCRIPT_NAME empty from /"
You can’t perform that action at this time.
0 commit comments