Skip to content

Commit

Permalink
Merge pull request #61 from theohbrothers/enhancement/test-openvpn-in…
Browse files Browse the repository at this point in the history
…-dockerfile

Enhancement: Test `openvpn` in Dockerfile
  • Loading branch information
leojonathanoh authored Sep 27, 2023
2 parents 11da117 + 4ab486e commit 77bae70
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 13 deletions.
4 changes: 3 additions & 1 deletion generate/templates/Dockerfile.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@"
FROM $( $VARIANT['_metadata']['distro'] ):$( $VARIANT['_metadata']['distro_version'] )
RUN apk add --no-cache $( $VARIANT['_metadata']['package'] )$( if ([version]$VARIANT['_metadata']['distro_version'] -le [version]'3.6') { '>=' } else { '~=' } )$( $VARIANT['_metadata']['package_version'] ) iptables
RUN set -eux; \
apk add --no-cache $( $VARIANT['_metadata']['package'] )$( if ([version]$VARIANT['_metadata']['distro_version'] -le [version]'3.6') { '>=' } else { '~=' } )$( $VARIANT['_metadata']['package_version'] ) iptables \
openvpn --version
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.3.18-alpine-3.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.3

RUN apk add --no-cache openvpn>=2.3.18 iptables
RUN set -eux; \
apk add --no-cache openvpn>=2.3.18 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.3.18-alpine-3.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.4

RUN apk add --no-cache openvpn>=2.3.18 iptables
RUN set -eux; \
apk add --no-cache openvpn>=2.3.18 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.3.18-alpine-3.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.5

RUN apk add --no-cache openvpn>=2.3.18 iptables
RUN set -eux; \
apk add --no-cache openvpn>=2.3.18 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.4.11-alpine-3.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.10

RUN apk add --no-cache openvpn~=2.4.11 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.4.11 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.4.11-alpine-3.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.11

RUN apk add --no-cache openvpn~=2.4.11 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.4.11 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.4.12-alpine-3.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.12

RUN apk add --no-cache openvpn~=2.4.12 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.4.12 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.4.4-alpine-3.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.6

RUN apk add --no-cache openvpn>=2.4.4 iptables
RUN set -eux; \
apk add --no-cache openvpn>=2.4.4 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.4.4-alpine-3.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.7

RUN apk add --no-cache openvpn~=2.4.4 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.4.4 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.4.6-alpine-3.8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.8

RUN apk add --no-cache openvpn~=2.4.6 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.4.6 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.4.6-alpine-3.9/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.9

RUN apk add --no-cache openvpn~=2.4.6 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.4.6 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.5.8-alpine-3.17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.17

RUN apk add --no-cache openvpn~=2.5.8 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.5.8 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
4 changes: 3 additions & 1 deletion variants/2.6.5-alpine-3.18/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.18

RUN apk add --no-cache openvpn~=2.6.5 iptables
RUN set -eux; \
apk add --no-cache openvpn~=2.6.5 iptables \
openvpn --version

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down

0 comments on commit 77bae70

Please sign in to comment.