mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-12-12 09:54:37 +08:00
Added automated smoketest
This commit is contained in:
parent
6084df92ac
commit
775a6295aa
11
docker-compose.test.yml
Normal file
11
docker-compose.test.yml
Normal file
@ -0,0 +1,11 @@
|
||||
version: '3.5'
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
sut:
|
||||
image: alpine:3.10
|
||||
depends_on:
|
||||
- app
|
||||
command: /tmp/run_tests.sh
|
||||
volumes:
|
||||
- "./run_tests.sh:/tmp/run_tests.sh:ro"
|
3
run_tests.sh
Executable file
3
run_tests.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
apk --no-cache add curl
|
||||
curl --silent --fail http://app:8080 | grep 'PHP 7.3'
|
Loading…
Reference in New Issue
Block a user