From f0dcdf811d543cf3f7a1946fe690363269fc7a8c Mon Sep 17 00:00:00 2001 From: Cameron Garnham Date: Thu, 3 Aug 2023 18:09:31 +0100 Subject: [PATCH] dev: more work with docker workflow --- .github/workflows/container.yml | 25 +++++++++++++++++++++---- project-words.txt | 1 + 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index d37058bd..6b3c090b 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -14,11 +14,11 @@ jobs: uses: actions/checkout@v3 - id: setup - name: Setup Toolchain + name: Setup Docker Toolchain uses: docker/setup-buildx-action@v2 - id: build - name: Build + name: Build Image uses: docker/build-push-action@v4 with: context: . @@ -29,8 +29,25 @@ jobs: cache-to: type=gha,mode=max - id: inspect - name: Inspect + name: Inspect Inspect run: docker image inspect index-backend:local - - name: Build docker-compose images + - id: config + name: Load Configuration + run: | + export TORRUST_IDX_BACK_CONFIG=$(cat config-idx-back.local.toml) + export TORRUST_TRACKER_CONFIG=$(cat config-tracker.local.toml) + + - id: compose + name: Compose Applications run: docker compose build + --build-arg UID="$TORRUST_IDX_BACK_USER_UID" + --build-arg RUN_AS_USER="$TORRUST_IDX_BACK_RUN_AS_USER" + + - id: run + name: Run Applications + run: docker compose up --detach + + - id: check + name: Check Applications + run: docker ps diff --git a/project-words.txt b/project-words.txt index 01a90aef..ea42d8de 100644 --- a/project-words.txt +++ b/project-words.txt @@ -1,6 +1,7 @@ actix addrs alekitto +appuser AUTOINCREMENT bencode bencoded