Skip to content

Commit

Permalink
Merge pull request #43 from theohbrothers/fix/do-not-include-etc-open…
Browse files Browse the repository at this point in the history
…vpn-x.conf-and-etc-openvpn-firewall.sh-in-docker-images

Fix: Do not include `/etc/openvpn/*.conf` and `/etc/openvpn/firewall.sh` in docker images
  • Loading branch information
leojonathanoh authored Dec 23, 2022
2 parents 2b5b9bf + a01b940 commit d4dec02
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 37 deletions.
3 changes: 0 additions & 3 deletions generate/templates/Dockerfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ RUN apk add --no-cache $( $VARIANT['_metadata']['package'] )=$( $VARIANT['_metad
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
"@
3 changes: 0 additions & 3 deletions variants/v2.3.18-alpine-3.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.3.18-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.3.18-alpine-3.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.3.18-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.3.18-alpine-3.5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.3.18-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.4.11-alpine-3.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.4.11-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.4.11-alpine-3.11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.4.11-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.4.12-alpine-3.12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.4.12-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.4.4-alpine-3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.4.4-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.4.4-alpine-3.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.4.4-r1 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.4.6-alpine-3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.4.6-r3 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.4.6-alpine-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.4.6-r4 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
3 changes: 0 additions & 3 deletions variants/v2.5.6-alpine-3.13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ RUN apk add --no-cache openvpn=2.5.6-r0 iptables
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY openvpn /etc/openvpn
RUN chown -R root:root /etc/openvpn && chmod 750 /etc/openvpn && chmod 750 /etc/openvpn/*.sh

ENTRYPOINT ["/docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion variants/v2.5.6-alpine-3.13/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ services:
# - net.ipv6.conf.all.disable_ipv6=0
# - net.ipv6.conf.default.forwarding=1
# - net.ipv6.conf.all.forwarding=1
restart: unless-stopped
restart: unless-stopped

0 comments on commit d4dec02

Please sign in to comment.