mirror of
https://github.com/gomods/athens
synced 2026-02-10 13:28:11 +00:00
* Adding ability to run all tests inside docker containers * Adding test dockerfile * Small changes to the testing sections
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
version: '3'
|
|
services:
|
|
testunit:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.test
|
|
command: ["./scripts/test_unit.sh"]
|
|
environment:
|
|
- GO_ENV=test
|
|
- ATHENS_MINIO_ENDPOINT=minio:9000
|
|
- ATHENS_MONGO_STORAGE_URL=mongodb://mongo:27017
|
|
- TIMEOUT=20 # in case the mongo dependency takes longer to start up
|
|
- ATHENS_STORAGE_TYPE=mongo
|
|
depends_on:
|
|
- mongo
|
|
- minio
|
|
teste2e:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.test
|
|
command: ["./scripts/test_e2e.sh"]
|
|
mongo:
|
|
image: mongo:3.7.9-jessie
|
|
ports:
|
|
- 27017:27017
|
|
minio:
|
|
image: minio/minio:latest
|
|
command: server /data
|
|
ports:
|
|
- "9001:9000"
|
|
environment:
|
|
MINIO_ACCESS_KEY: minio
|
|
MINIO_SECRET_KEY: minio123
|
|
datadog:
|
|
environment:
|
|
- DD_API_KEY=
|
|
- DD_LOG_LEVEL=trace
|
|
- DD_APM_ENABLED=true
|
|
image:
|
|
datadog/agent:latest
|
|
ports:
|
|
- 8126:8126
|
|
jaeger:
|
|
environment:
|
|
- COLLECTOR_ZIPKIN_HTTP_PORT=9441
|
|
image: jaegertracing/all-in-one:latest
|
|
ports:
|
|
- 14268:14268
|
|
- 9411:9411
|
|
- 5775:5775/udp
|
|
- 6831:6831/udp
|
|
- 6832:6832/udp
|
|
- 5778:5778
|
|
- 16686:16686
|