Skip to content

Commit

Permalink
add support for WEBUI_PORTS var
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Feb 1, 2024
1 parent 84cb1a9 commit b683240
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion linux-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG UPSTREAM_DIGEST_AMD64

FROM ${UPSTREAM_IMAGE}@${UPSTREAM_DIGEST_AMD64}
EXPOSE 8181
ENV TAUTULLI_DOCKER="True"
ENV TAUTULLI_DOCKER="True" WEBUI_PORTS="8181/tcp,8181/udp"

RUN apk add --no-cache python3 py3-lxml py3-openssl py3-setuptools && \
apk add --no-cache --virtual=build-dependencies py3-pip make gcc g++ python3-dev && \
Expand Down
2 changes: 1 addition & 1 deletion linux-arm64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG UPSTREAM_DIGEST_ARM64

FROM ${UPSTREAM_IMAGE}@${UPSTREAM_DIGEST_ARM64}
EXPOSE 8181
ENV TAUTULLI_DOCKER="True"
ENV TAUTULLI_DOCKER="True" WEBUI_PORTS="8181/tcp,8181/udp"

RUN apk add --no-cache python3 py3-lxml py3-openssl py3-setuptools && \
apk add --no-cache --virtual=build-dependencies py3-pip make gcc g++ python3-dev && \
Expand Down
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/init-setup-app/run
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ echo "
----------------------------------------------------------------------
ENVIRONMENT APP
----------------------------------------------------------------------

WEBUI_PORTS=${WEBUI_PORTS}
----------------------------------------------------------------------
"
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/service-tautulli/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

umask "${UMASK}"

exec s6-setuidgid hotio python3 "${APP_DIR}/Tautulli.py" --nolaunch --config "${CONFIG_DIR}/config.ini" --datadir "${CONFIG_DIR}"
exec s6-setuidgid hotio python3 "${APP_DIR}/Tautulli.py" --nolaunch --config "${CONFIG_DIR}/config.ini" --datadir "${CONFIG_DIR}" --port "${WEBUI_PORTS%%/*}"

0 comments on commit b683240

Please sign in to comment.