From 3f6734989ff6b4c69179196a78ec838e1ac33f18 Mon Sep 17 00:00:00 2001 From: tom twinkle Date: Thu, 18 Jan 2024 19:44:47 +0900 Subject: [PATCH] change docker compose --- .github/workflows/test-aws.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-aws.yaml b/.github/workflows/test-aws.yaml index 160d1a3..6b90f8c 100644 --- a/.github/workflows/test-aws.yaml +++ b/.github/workflows/test-aws.yaml @@ -51,16 +51,15 @@ jobs: if: ${{ steps.cache-go.outputs.cache-hit != 'true' }} run: go mod download - name: Setup Docker - uses: isbang/compose-action@v1.5.1 - with: - compose-file: ${{ env.testdir }}/docker-compose.yaml - up-flags: "-d" - services: | - elasticmq - minio - miniocreatebuckets - dynamodb - dynamodbcreatetable + working-directory: ${{ env.testdir }} + env: + DOCKER_BUILDKIT: 1 + run: | + # Create the directory for the volume of dynamodb in advance, otherwise permission error will occur. + # https://stackoverflow.com/questions/45850688/unable-to-open-local-dynamodb-database-file-after-power-outage + mkdir -p ./docker/dynamodb/data + sudo chmod 777 ./docker/dynamodb/data + docker compose up -d - name: Test working-directory: ${{ env.testdir }} run: |