forked from dperson/openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile.aarch64/Dockerfile.armhf fix dperson#66 derp that emptied …
…the file
- Loading branch information
David Personette
committed
May 30, 2017
1 parent
967b267
commit 32f4f3a
Showing
2 changed files
with
50 additions
and
2 deletions.
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 |
---|---|---|
@@ -1 +1,25 @@ | ||
FROM aarch64/debian:stretch | ||
FROM aarch64/debian:stretch | ||
MAINTAINER David Personette <[email protected]> | ||
|
||
# Install openvpn | ||
RUN export DEBIAN_FRONTEND='noninteractive' && \ | ||
apt-get update -qq && \ | ||
apt-get install -qqy --no-install-recommends iptables openvpn procps \ | ||
$(apt-get -s dist-upgrade|awk '/^Inst.*ecurity/ {print $2}') &&\ | ||
echo '#!/usr/bin/env bash' >/sbin/resolvconf && \ | ||
echo 'conf=/etc/resolv.conf' >>/sbin/resolvconf && \ | ||
echo '[[ -e $conf.orig ]] || cp -p $conf $conf.orig' >>/sbin/resolvconf && \ | ||
echo 'if [[ "${1:-""}" == "-a" ]]; then' >>/sbin/resolvconf && \ | ||
echo ' cat >${conf}' >>/sbin/resolvconf && \ | ||
echo 'elif [[ "${1:-""}" == "-d" ]]; then' >>/sbin/resolvconf && \ | ||
echo ' cat $conf.orig >$conf' >>/sbin/resolvconf && \ | ||
echo 'fi' >>/sbin/resolvconf && \ | ||
chmod +x /sbin/resolvconf && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* && \ | ||
addgroup --system vpn | ||
COPY openvpn.sh /usr/bin/ | ||
|
||
VOLUME ["/vpn"] | ||
|
||
ENTRYPOINT ["openvpn.sh"] |
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 |
---|---|---|
@@ -1 +1,25 @@ | ||
FROM armhf/debian:stretch | ||
FROM armhf/debian:stretch | ||
MAINTAINER David Personette <[email protected]> | ||
|
||
# Install openvpn | ||
RUN export DEBIAN_FRONTEND='noninteractive' && \ | ||
apt-get update -qq && \ | ||
apt-get install -qqy --no-install-recommends iptables openvpn procps \ | ||
$(apt-get -s dist-upgrade|awk '/^Inst.*ecurity/ {print $2}') &&\ | ||
echo '#!/usr/bin/env bash' >/sbin/resolvconf && \ | ||
echo 'conf=/etc/resolv.conf' >>/sbin/resolvconf && \ | ||
echo '[[ -e $conf.orig ]] || cp -p $conf $conf.orig' >>/sbin/resolvconf && \ | ||
echo 'if [[ "${1:-""}" == "-a" ]]; then' >>/sbin/resolvconf && \ | ||
echo ' cat >${conf}' >>/sbin/resolvconf && \ | ||
echo 'elif [[ "${1:-""}" == "-d" ]]; then' >>/sbin/resolvconf && \ | ||
echo ' cat $conf.orig >$conf' >>/sbin/resolvconf && \ | ||
echo 'fi' >>/sbin/resolvconf && \ | ||
chmod +x /sbin/resolvconf && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* && \ | ||
addgroup --system vpn | ||
COPY openvpn.sh /usr/bin/ | ||
|
||
VOLUME ["/vpn"] | ||
|
||
ENTRYPOINT ["openvpn.sh"] |