Skip to content

Commit

Permalink
Exclude docker-data from test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Feb 19, 2024
1 parent 89b7c88 commit 7c244e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ test_down:
docker-compose down

test_prepare:
mkdir -p data/postgres
docker-compose up -d minio db redis
docker-compose up -d cworker conductor
docker-compose up minio-prepare

test: test_prepare
go test -covermode=count -coverprofile=coverage.out ./...
go test -exclude="docker-data" -covermode=count -coverprofile=coverage.out ./...

towerz:
docker run --rm -v "$(PWD)":/usr/src/transcoder -w /usr/src/transcoder --platform linux/amd64 golang:1.16.10 make tower
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
ports:
- '6379:6379'
volumes:
- ./data/redis:/data
- ./docker-data/redis:/data
command: >
--requirepass odyredis --appendonly yes
labels:
Expand All @@ -66,7 +66,7 @@ services:
environment:
POSTGRES_PASSWORD: odyseeteam
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ./docker-data/postgres:/var/lib/postgresql/data
command:
- -clogging_collector=on
- -clog_statement=all
Expand All @@ -84,15 +84,15 @@ services:
- "38861:38861"
- "41949:41949"
volumes:
- ./data/minio:/data
- ./docker-data/minio:/data
environment:
MINIO_ROOT_USER: ody
MINIO_ROOT_PASSWORD: odyseetes3
command: server --address 0.0.0.0:9000 /data
minio-prepare:
image: minio/mc
volumes:
- ./data/minio:/data
- ./docker-data/minio:/data
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 ody odyseetes3;
Expand Down

0 comments on commit 7c244e3

Please sign in to comment.