Skip to content

Commit

Permalink
Merge pull request #39 from theohbrothers/enhancement/run-version-dur…
Browse files Browse the repository at this point in the history
…ing-build

Enhancement: Run `--version` during build
  • Loading branch information
leojonathanoh authored Jun 30, 2023
2 parents f7af095 + 2138b7d commit ccb93df
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 21 deletions.
5 changes: 4 additions & 1 deletion generate/templates/Dockerfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on `$BUILDPLATFORM, building for `$TARGETPLATFORM"
RUN apk add --no-cache $( $VARIANT['_metadata']['package'] )=$( $VARIANT['_metadata']['package_version'] )
# Install ansible
RUN set -eux; \
apk add --no-cache $( $VARIANT['_metadata']['package'] )=$( $VARIANT['_metadata']['package_version'] ); \
ansible --version
RUN apk add --no-cache ca-certificates
Expand Down
5 changes: 4 additions & 1 deletion variants/v2.10.7-alpine-3.13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.10.7-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.10.7-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.10.7-sops-ssh-alpine-3.13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.10.7-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.10.7-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.11.6-alpine-3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible-core=2.11.6-r1
# Install ansible
RUN set -eux; \
apk add --no-cache ansible-core=2.11.6-r1; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.11.6-sops-ssh-alpine-3.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible-core=2.11.6-r1
# Install ansible
RUN set -eux; \
apk add --no-cache ansible-core=2.11.6-r1; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.13.6-alpine-3.17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible-core=2.13.6-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible-core=2.13.6-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.13.6-sops-ssh-alpine-3.17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible-core=2.13.6-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible-core=2.13.6-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.14.5-alpine-3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible-core=2.14.5-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible-core=2.14.5-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.14.5-sops-ssh-alpine-3.18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible-core=2.14.5-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible-core=2.14.5-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.3.0.0-alpine-3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.3.0.0-r1
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.3.0.0-r1; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.3.0.0-sops-ssh-alpine-3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.3.0.0-r1
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.3.0.0-r1; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.4.6.0-alpine-3.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.4.6.0-r1
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.4.6.0-r1; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.4.6.0-sops-ssh-alpine-3.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.4.6.0-r1
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.4.6.0-r1; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.6.20-alpine-3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.6.20-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.6.20-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.6.20-sops-ssh-alpine-3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.6.20-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.6.20-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.7.17-alpine-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.7.17-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.7.17-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.7.17-sops-ssh-alpine-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.7.17-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.7.17-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.8.19-alpine-3.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.8.19-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.8.19-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.8.19-sops-ssh-alpine-3.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.8.19-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.8.19-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.9.18-alpine-3.11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.9.18-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.9.18-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down
5 changes: 4 additions & 1 deletion variants/v2.9.18-sops-ssh-alpine-3.11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

RUN apk add --no-cache ansible=2.9.18-r0
# Install ansible
RUN set -eux; \
apk add --no-cache ansible=2.9.18-r0; \
ansible --version

RUN apk add --no-cache ca-certificates

Expand Down

0 comments on commit ccb93df

Please sign in to comment.