Skip to content

Commit

Permalink
Merge torrust#666: Update tracker database driver config
Browse files Browse the repository at this point in the history
e2a42ed fix: [torrust#665] update tracker database driver config (Jose Celano)

Pull request description:

  Options for drivers use lowervcase now.

ACKs for top commit:
  josecelano:
    ACK e2a42ed

Tree-SHA512: 9d007669335673b9ceb8bd6548c7fefdb4ea210116382c94720496902e0f4798fc4bcbe5c586ff702da314bf56d37d63b0835e7bbd416be41552ca5481652bf3
  • Loading branch information
josecelano committed Jul 5, 2024
2 parents 2a3bd23 + e2a42ed commit 304221e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ RUN ["/busybox/cp", "-sp", "/busybox/sh","/busybox/cat","/busybox/ls","/busybox/
COPY --from=gcc --chmod=0555 /usr/local/bin/su-exec /bin/su-exec

ARG TORRUST_INDEX_CONFIG_TOML_PATH="/etc/torrust/index/index.toml"
ARG TORRUST_INDEX_DATABASE_DRIVER="Sqlite3"
ARG TORRUST_INDEX_DATABASE_DRIVER="sqlite3"
ARG USER_ID=1000
ARG API_PORT=3001
ARG IMPORTER_API_PORT=3002
Expand Down
2 changes: 1 addition & 1 deletion contrib/dev-tools/container/e2e/mysql/e2e-env-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ USER_ID=${USER_ID:-1000} \
TORRUST_INDEX_MYSQL_DATABASE="torrust_index_e2e_testing" \
TORRUST_TRACKER_CONFIG_TOML=$(cat ./share/default/config/tracker.public.e2e.container.sqlite3.toml) \
TORRUST_TRACKER_DATABASE="e2e_testing_sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER="Sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER="sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN="MyAccessToken" \
docker compose up --detach --pull always --remove-orphans
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ USER_ID=${USER_ID:-1000} \
TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY="MaxVerstappenWC2021" \
TORRUST_TRACKER_CONFIG_TOML=$(cat ./share/default/config/tracker.private.e2e.container.sqlite3.toml) \
TORRUST_TRACKER_DATABASE="e2e_testing_sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER="Sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER="sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN="MyAccessToken" \
docker compose up --detach --pull always --remove-orphans
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ USER_ID=${USER_ID:-1000} \
TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY="MaxVerstappenWC2021" \
TORRUST_TRACKER_CONFIG_TOML=$(cat ./share/default/config/tracker.public.e2e.container.sqlite3.toml) \
TORRUST_TRACKER_DATABASE="e2e_testing_sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER="Sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER="sqlite3" \
TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN="MyAccessToken" \
docker compose up --detach --pull always --remove-orphans
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "2"
private = true

[core.database]
driver = "Sqlite3"
driver = "sqlite3"
path = "/var/lib/torrust/tracker/database/e2e_testing_sqlite3.db"

[[udp_trackers]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "2"
private = true

[core.database]
driver = "Sqlite3"
driver = "sqlite3"
path = "/var/lib/torrust/tracker/database/e2e_testing_sqlite3.db"

[[http_trackers]]
Expand Down

0 comments on commit 304221e

Please sign in to comment.