Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Commit 92133ba

Browse files
authored
Merge pull request #1 from NewStore/adding-travis
Checking running containers on travis
2 parents e17b765 + 0fcdc49 commit 92133ba

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ install:
77
- docker build -t nginx .
88

99
script:
10-
- docker run -d -p 8080:8080 -p 8081:8081 -v $(pwd)/test:/mnt/test nginx nginx -c /mnt/test/nginx.conf
11-
- curl -f --retry 10 --retry-delay 3 localhost:8080/healthcheck
12-
- curl -f --retry 10 --retry-delay 3 localhost:8081/healthcheck
10+
- docker run --name nginx -d -p 127.0.0.1:8080:8080 -p 127.0.0.1:8081:8081 -v $(pwd)/test:/mnt/test nginx nginx -c /mnt/test/nginx.conf
11+
- docker ps -a
12+
- docker logs nginx
13+
- timeout 22 sh -c 'until curl $0:$1; do sleep 3; done' 127.0.0.1 8080
14+
- curl -f --retry 10 --retry-delay 3 127.0.0.1:8080/healthcheck
15+
- curl -f --retry 10 --retry-delay 3 127.0.0.1:8081/healthcheck

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nginx
1+
# nginx [![Build Status](https://travis-ci.org/NewStore/nginx.svg?branch=master)](https://travis-ci.org/NewStore/nginx)
22
Nginx with lua, opentracing, jaeger and lightstep
33

44

0 commit comments

Comments
 (0)