Skip to content

Commit

Permalink
Merge pull request #1 from patst/feature/healthcheck
Browse files Browse the repository at this point in the history
Added health check to image
  • Loading branch information
patst authored Dec 9, 2019
2 parents bdcaf8f + 027d925 commit 5cc58ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.ovpn
*.ovpn
.DS_Store
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ ENV REGISTER_NON_INTERACTIVE=true
ENV VPN_CONFIG=/config/vpn_config.ovpn
ENV AUTH_FILE=/config/pass.txt

HEALTHCHECK --interval=60s --timeout=5s --start-period=60s --retries=3 CMD curl $GITLAB_URL

ENTRYPOINT ["/usr/bin/dumb-init", "--"]

CMD ["bash", "-c", "sh /vpn-init.sh && ./register.sh"]

0 comments on commit 5cc58ca

Please sign in to comment.