Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from postfinance/bugfix/entrypoing-context-dir…
Browse files Browse the repository at this point in the history
…ectory

fix entrypoint context directory
  • Loading branch information
bbortt authored Sep 27, 2022
2 parents fc667be + 997ad49 commit 24911d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
${{ steps.meta.outputs.tags }} & \
(
sleep 10 && \
if [[ $(curl -o /dev/null -s -w "%{http_code}\n" http://localhost:8080) -ne 200 ]]; then
if [[ $(curl -o /dev/null -s -w "%{http_code}\n" http://localhost:8080/apis/pet-api.json) -ne 200 ]]; then
exit 1;
fi && \
if [[ $(curl -o /dev/null -s -w "%{http_code}\n" http://localhost:8080/apis/store-api.json) -ne 200 ]]; then
exit 1;
fi && \
docker container stop swagger-ui-test
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ docker run \
-p 80:8080 \
-e POLL_INTERVAL_SECONDS=60 \
-e POLL_URL=https://raw.githubusercontent.com/bbortt/swagger-ui-demo/master/swagger-config.json \
postfinance/polling-swagger-ui:1.0.0
postfinance/polling-swagger-ui:$RELEASE_VERSION
```

# Contributing
Expand Down
4 changes: 2 additions & 2 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
#
# Docker entrypoint starting nginx as well as the polling process.
# Original CMD ["sh", "/usr/share/nginx/run.sh"]: https://github.com/swagger-api/swagger-ui/blob/master/Dockerfile.
# Original CMD ["nginx", "-g", "daemon off;"]: https://github.com/swagger-api/swagger-ui/blob/master/Dockerfile.

/appl/polling-swagger-ui/poll-monitor.sh & /docker-entrypoint.sh sh -c "nginx -g \"daemon off;\""
/appl/polling-swagger-ui/poll-monitor.sh & /docker-entrypoint.sh nginx -g "daemon off;"

0 comments on commit 24911d9

Please sign in to comment.