Added internal port functionality #68

This commit is contained in:
Bocki 2021-03-29 10:58:34 +02:00 committed by Henning Bocklage
parent d146329bda
commit d56d2eb961
3 changed files with 12 additions and 4 deletions

View File

@ -34,4 +34,4 @@ build:
# Push manifest to official registry # Push manifest to official registry
- docker manifest push "$IMAGE:${IMAGE_TAG}" - docker manifest push "$IMAGE:${IMAGE_TAG}"
# Validate multi-arch manifest # Validate multi-arch manifest
- docker run --rm mplatform/mquery:v0.2 $IMAGE:${IMAGE_TAG} - docker run --rm mplatform/mquery $IMAGE:${IMAGE_TAG}

View File

@ -1,4 +1,6 @@
# Changelog # Changelog
## 2021-03-29
- Added internal port functionality, see #68
## 2021-03-03 ## 2021-03-03
- Fixed #58 - Fixed #58
- Upgraded Alpine version from 3.12 to 3.13 - Upgraded Alpine version from 3.12 to 3.13

View File

@ -7,12 +7,18 @@ cd /deemix
HOME=/deem HOME=/deem
if [ ! -z ${INTPORT} ]; then
port=$INTPORT
else
port=6595
fi
if [ -f "/config/.arl" ]; then if [ -f "/config/.arl" ]; then
echo "[services.d] Starting with ARL" echo "[services.d] Starting with ARL"
exec \ exec \
s6-setuidgid abc python3 /deemix/server.py 6595 --serverwide-arl --host 0.0.0.0 s6-setuidgid abc python3 /deemix/server.py $port --serverwide-arl --host 0.0.0.0
else else
echo "[services.d] Starting without ARL" echo "[services.d] Starting without ARL"
exec \ exec \
s6-setuidgid abc python3 /deemix/server.py 6595 --host 0.0.0.0 s6-setuidgid abc python3 /deemix/server.py $port --host 0.0.0.0
fi fi