Add dockerised tests

This commit is contained in:
Derry Hamilton 2019-06-17 12:53:31 +01:00
parent 3badb97d49
commit 5571bd1b4d
14 changed files with 143 additions and 76 deletions

View file

@ -0,0 +1,23 @@
# This is a sample to help put the full application together
version: '3.3'
services:
testdb:
image: rasilon/ujetl_testdb:latest
build:
context: ../test_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
tests:
image: rasilon/ujetl_test:latest
build:
context: ../multistage
links:
- "testdb"
command: ["/wait_for_postgres", "/ujetl_entrypoint"]