Skip to content

Commit

Permalink
Dockerfile.aarch64/Dockerfile.armhf fix dperson#66 derp that emptied …
Browse files Browse the repository at this point in the history
…the file
  • Loading branch information
David Personette committed May 30, 2017
1 parent 967b267 commit 32f4f3a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
26 changes: 25 additions & 1 deletion Dockerfile.aarch64
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"]
26 changes: 25 additions & 1 deletion Dockerfile.armhf
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"]

0 comments on commit 32f4f3a

Please sign in to comment.