From 545cb9d296d968de3e9167abc2adbfa20573d7e5 Mon Sep 17 00:00:00 2001 From: Oleg Balunenko Date: Sun, 18 Dec 2022 13:58:30 +0400 Subject: [PATCH] chore: Use workdir --- .../go-tools-docker-compose.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/deployments/docker-compose/go-tools-docker-compose.yml b/deployments/docker-compose/go-tools-docker-compose.yml index 2e9099f6..5ffa9e63 100755 --- a/deployments/docker-compose/go-tools-docker-compose.yml +++ b/deployments/docker-compose/go-tools-docker-compose.yml @@ -3,49 +3,50 @@ version: '3' services: tools: image: ghcr.io/obalunenko/go-tools:${GOTOOLS_IMAGE_TAG:-latest} + working_dir: /app/ volumes: - ../../:/app/ fix-imports: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/style/fix-imports.sh' + entrypoint: /bin/sh -c './scripts/style/fix-imports.sh' fix-fmt: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ &&/app/scripts/style/fmt.sh' + entrypoint: /bin/sh -c './scripts/style/fmt.sh' run-tests: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ &&/app/scripts/tests/run.sh' + entrypoint: /bin/sh -c './scripts/tests/run.sh' run-tests-coverage: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/tests/coverage.sh' + entrypoint: /bin/sh -c './scripts/tests/coverage.sh' update-readme-coverage: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/update-readme-coverage.sh' + entrypoint: /bin/sh -c './scripts/update-readme-coverage.sh' lint-full: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/linting/run-linters.sh' + entrypoint: /bin/sh -c './scripts/linting/run-linters.sh' lint-pipeline: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/linting/golangci-pipeline.sh' + entrypoint: /bin/sh -c './scripts/linting/golangci-pipeline.sh' lint-sonar: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/linting/golangci-sonar.sh' + entrypoint: /bin/sh -c './scripts/linting/golangci-sonar.sh' go-generate: extends: service: tools - entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/codegen/go-generate.sh' + entrypoint: /bin/sh -c './scripts/codegen/go-generate.sh'