Commit Graph

8 Commits

Author SHA1 Message Date
Chad Metcalf
d8a95fadd8
Don't parse empty strings.
Signed-off-by: Chad Metcalf <chad@docker.com>
2020-08-09 15:09:03 -07:00
Chad Metcalf
c600fc36ca
Use assert_success from the bats-assert library.
[ "$status" -eq 0 ] just bails out and its up to you to figure out why.
$output has the stdout/stderr so we could just print that. I think its
worth vendoring the libraries and just using those functions.

Signed-off-by: Chad Metcalf <chad@docker.com>
2020-08-08 14:27:20 -07:00
Chad Metcalf
5185cedf4e
Fixing Mac vs Linux bash shell'ism.
Signed-off-by: Chad Metcalf <chad@docker.com>
2020-08-08 14:27:04 -07:00
Chad Metcalf
702ec96821
Adding a Makefile and basic tests.
This approach uses bats to create a generic docker-compose test. It
checks that images are pullable, projects are buildable, up works, and
if ports are exposed that something is listening.

The tests can be tailored for each example. As long as they are the same
though, you can edit lib/test.bats.example and then `make update-tests`
and all the tests will be synced.

Signed-off-by: Chad Metcalf <chad@docker.com>
2020-08-08 14:26:52 -07:00
Hans(Akhil) Maulloo
d3c5f28243
fixed title in flask readme file (#51)
Signed-off-by: kouul <maulloohans@gmail.com>
2020-04-08 16:39:04 +02:00
Damanpreet Singh
b3db208944 Updated Dockerfile for flask app
Signed-off-by: Damanpreet Singh <daman.4880@gmail.com>
2020-03-26 18:51:43 +05:30
kouul
5feddf0854 resolved newline changes
Signed-off-by: kouul <maulloohans@gmail.com>
2020-03-26 14:24:47 +04:00
kouul
83a24f681f add flask sample
Signed-off-by: kouul <maulloohans@gmail.com>
2020-03-26 08:44:07 +04:00