Skip to content

Commit 022b74e

Browse files
committed
chore: [#386] remove deprecated container varaibles
1 parent 5b73255 commit 022b74e

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

Containerfile

+1-7
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,14 @@ COPY --from=gcc --chmod=0555 /usr/local/bin/su-exec /bin/su-exec
9898
ARG TORRUST_INDEX_PATH_CONFIG="/etc/torrust/index/index.toml"
9999
ARG TORRUST_INDEX_DATABASE_DRIVER="sqlite3"
100100
ARG USER_ID=1000
101-
ARG UDP_PORT=6969
102-
ARG HTTP_PORT=7070
103-
ARG API_PORT=1212
101+
ARG API_PORT=3001
104102

105103
ENV TORRUST_INDEX_PATH_CONFIG=${TORRUST_INDEX_PATH_CONFIG}
106104
ENV TORRUST_INDEX_DATABASE_DRIVER=${TORRUST_INDEX_DATABASE_DRIVER}
107105
ENV USER_ID=${USER_ID}
108-
ENV UDP_PORT=${UDP_PORT}
109-
ENV HTTP_PORT=${HTTP_PORT}
110106
ENV API_PORT=${API_PORT}
111107
ENV TZ=Etc/UTC
112108

113-
EXPOSE ${UDP_PORT}/udp
114-
EXPOSE ${HTTP_PORT}/tcp
115109
EXPOSE ${API_PORT}/tcp
116110

117111
RUN mkdir -p /var/lib/torrust/index /var/log/torrust/index /etc/torrust/index

contrib/dev-tools/container/build.sh

-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/bin/bash
22

33
USER_ID=${USER_ID:-1000}
4-
TORRUST_INDEX_RUN_AS_USER=${TORRUST_INDEX_RUN_AS_USER:-appuser}
54

65
echo "Building docker image ..."
76
echo "USER_ID: $USER_ID"
8-
echo "TORRUST_INDEX_RUN_AS_USER: $TORRUST_INDEX_RUN_AS_USER"
97

108
docker build \
119
--build-arg UID="$USER_ID" \
12-
--build-arg RUN_AS_USER="$TORRUST_INDEX_RUN_AS_USER" \
1310
-t torrust-index .

contrib/dev-tools/container/e2e/sqlite/e2e-env-up.sh

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ USER_ID=${USER_ID:-1000} \
1111
TORRUST_TRACKER_DATABASE_DRIVER="sqlite3" \
1212
TORRUST_TRACKER_API_ADMIN_TOKEN="MyAccessToken" \
1313
docker compose up -d
14+

0 commit comments

Comments
 (0)