forked from kylemanna/docker-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include httpd server to test health check
- Loading branch information
1 parent
1227abd
commit 8749c2a
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ LABEL maintainer="Kyle Manna <[email protected]>" | |
|
||
# Testing: pamtester | ||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \ | ||
apk add --update openvpn iptables bash easy-rsa=3.0.5-r0 openvpn-auth-pam google-authenticator pamtester && \ | ||
apk add --update openvpn iptables bash easy-rsa=3.0.5-r0 openvpn-auth-pam google-authenticator pamtester python3 && \ | ||
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \ | ||
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* | ||
|
||
|
@@ -32,6 +32,7 @@ VOLUME ["/etc/openvpn"] | |
|
||
# Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp` | ||
EXPOSE 1194/udp | ||
EXPOSE 8080/tcp | ||
|
||
CMD ["ovpn_run"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import http.server | ||
import socketserver | ||
|
||
PORT = 8080 | ||
|
||
Handler = http.server.SimpleHTTPRequestHandler | ||
|
||
with socketserver.TCPServer(("", PORT), Handler) as httpd: | ||
print("serving at port", PORT) | ||
httpd.serve_forever() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters