Change compose file handling to require valid service specifications

Added the checks and some tests
One of the tests wasn't valid docker-compose.yml, that's been changed.
Bad config throws an error and has a test

Signed-off-by: Jack Laxson <jackjrabbit@gmail.com>
This commit is contained in:
Jack Laxson
2019-05-18 05:53:44 -04:00
committed by Tibor Vass
parent 61a6fdd767
commit 4b2666b9d6
3 changed files with 49 additions and 1 deletions

View File

@ -7,6 +7,7 @@ services:
image: docker.io/tonistiigi/db
webapp:
build:
context: .
dockerfile: Dockerfile.webapp
args:
buildno: 1