Skip to content

Commit

Permalink
chore: [#386] remove deprecated container varaibles
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Nov 15, 2023
1 parent 5b73255 commit 022b74e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 1 addition & 7 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,14 @@ COPY --from=gcc --chmod=0555 /usr/local/bin/su-exec /bin/su-exec
ARG TORRUST_INDEX_PATH_CONFIG="/etc/torrust/index/index.toml"
ARG TORRUST_INDEX_DATABASE_DRIVER="sqlite3"
ARG USER_ID=1000
ARG UDP_PORT=6969
ARG HTTP_PORT=7070
ARG API_PORT=1212
ARG API_PORT=3001

ENV TORRUST_INDEX_PATH_CONFIG=${TORRUST_INDEX_PATH_CONFIG}
ENV TORRUST_INDEX_DATABASE_DRIVER=${TORRUST_INDEX_DATABASE_DRIVER}
ENV USER_ID=${USER_ID}
ENV UDP_PORT=${UDP_PORT}
ENV HTTP_PORT=${HTTP_PORT}
ENV API_PORT=${API_PORT}
ENV TZ=Etc/UTC

EXPOSE ${UDP_PORT}/udp
EXPOSE ${HTTP_PORT}/tcp
EXPOSE ${API_PORT}/tcp

RUN mkdir -p /var/lib/torrust/index /var/log/torrust/index /etc/torrust/index
Expand Down
3 changes: 0 additions & 3 deletions contrib/dev-tools/container/build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
#!/bin/bash

USER_ID=${USER_ID:-1000}
TORRUST_INDEX_RUN_AS_USER=${TORRUST_INDEX_RUN_AS_USER:-appuser}

echo "Building docker image ..."
echo "USER_ID: $USER_ID"
echo "TORRUST_INDEX_RUN_AS_USER: $TORRUST_INDEX_RUN_AS_USER"

docker build \
--build-arg UID="$USER_ID" \
--build-arg RUN_AS_USER="$TORRUST_INDEX_RUN_AS_USER" \
-t torrust-index .
1 change: 1 addition & 0 deletions contrib/dev-tools/container/e2e/sqlite/e2e-env-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ USER_ID=${USER_ID:-1000} \
TORRUST_TRACKER_DATABASE_DRIVER="sqlite3" \
TORRUST_TRACKER_API_ADMIN_TOKEN="MyAccessToken" \
docker compose up -d

0 comments on commit 022b74e

Please sign in to comment.