Skip to content

Commit

Permalink
Merge pull request #801 from versity/ben/docker_cleanup
Browse files Browse the repository at this point in the history
chore: move test docker files to tests dir
  • Loading branch information
benmcclelland authored Sep 12, 2024
2 parents cf6c1b9 + 2208194 commit 080fd01
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-bats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
run: |
mv tests/.env.docker.default tests/.env.docker
mv tests/.secrets.default tests/.secrets
docker build --build-arg="GO_LIBRARY=go1.21.7.linux-amd64.tar.gz" \
docker build --build-arg="GO_LIBRARY=go1.23.1.linux-amd64.tar.gz" \
--build-arg="AWS_CLI=awscli-exe-linux-x86_64.zip" --build-arg="MC_FOLDER=linux-amd64" \
--progress=plain -f Dockerfile_test_bats -t bats_test .
--progress=plain -f tests/Dockerfile_test_bats -t bats_test .
- name: Set up Docker Compose
run: sudo apt-get install -y docker-compose

- name: Run Docker Container
run: docker-compose -f docker-compose-bats.yml up --exit-code-from posix_backend posix_backend
run: docker-compose -f tests/docker-compose-bats.yml up --exit-code-from posix_backend posix_backend
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ RUN mkdir -p $SETUP_DIR

COPY --from=0 /app/cmd/versitygw/versitygw /app/versitygw

ENTRYPOINT [ "/app/versitygw" ]
ENTRYPOINT [ "/app/versitygw" ]
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Dockerfile_test_bats → tests/Dockerfile_test_bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
ARG SECRETS_FILE=tests/.secrets
ARG CONFIG_FILE=tests/.env.docker
ARG GO_LIBRARY=go1.21.7.linux-arm64.tar.gz
ARG GO_LIBRARY=go1.23.1.linux-arm64.tar.gz
ARG AWS_CLI=awscli-exe-linux-aarch64.zip
ARG MC_FOLDER=linux-arm64

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 080fd01

Please sign in to comment.