Adding ability to run all tests inside docker containers (#973)

* Adding ability to run all tests inside docker containers

* Adding test dockerfile

* Small changes to the testing sections
This commit is contained in:
Aaron Schlesinger
2019-02-15 10:16:02 -08:00
committed by Michal Pristas
parent c3d1d14d23
commit c2647da423
5 changed files with 84 additions and 6 deletions
+19
View File
@@ -1,5 +1,24 @@
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: