-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Robert Waffen <[email protected]>
- Loading branch information
Showing
4 changed files
with
44 additions
and
17 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
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
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,18 +1,9 @@ | ||
ARG BASE_IMAGE=docker.io/ruby:3.2.5-alpine3.20 | ||
|
||
FROM $BASE_IMAGE | ||
|
||
LABEL org.label-schema.maintainer="Voxpupuli Team <[email protected]>" \ | ||
org.label-schema.vendor="Voxpupuli" \ | ||
org.label-schema.url="https://github.com/voxpupuli/container-voxbox" \ | ||
org.label-schema.name="Vox Pupuli Test Box" \ | ||
org.label-schema.license="AGPL-3.0-or-later" \ | ||
org.label-schema.vcs-url="https://github.com/voxpupuli/container-voxbox" \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.dockerfile="/Dockerfile" | ||
FROM $BASE_IMAGE AS builder | ||
|
||
ARG RUBYGEM_PUPPET | ||
ENV RUBYGEM_PUPPET=${RUBYGEM_PUPPET:-8.8.1} | ||
ENV RUBYGEM_PUPPET ${RUBYGEM_PUPPET:-8.8.1} | ||
|
||
ARG RUBYGEM_FACTER | ||
ENV RUBYGEM_FACTER=${RUBYGEM_FACTER:-4.8.0} | ||
|
@@ -45,14 +36,10 @@ ARG RUBYGEM_BUNDLER | |
ENV RUBYGEM_BUNDLER=${RUBYGEM_BUNDLER:-2.5.18} | ||
|
||
COPY voxbox/Gemfile / | ||
COPY voxbox/Rakefile / | ||
COPY Dockerfile / | ||
|
||
RUN apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache --update alpine-sdk \ | ||
&& apk add --no-cache --update yamllint \ | ||
&& apk add --no-cache --update jq \ | ||
&& rm -rf /usr/local/lib/ruby/gems/*/gems/bundler-* \ | ||
&& rm -rf /usr/local/lib/ruby/gems/*/specifications/default/bundler-*.gemspec \ | ||
&& gem install bundler -v ${RUBYGEM_BUNDLER} \ | ||
|
@@ -71,6 +58,34 @@ RUN apk update \ | |
&& rm -rf /usr/local/lib/ruby/gems/*/gems/rexml-* \ | ||
&& rm -rf /usr/local/lib/ruby/gems/*/specifications/rexml-*.gemspec | ||
|
||
############################################################################### | ||
|
||
FROM $BASE_IMAGE AS final | ||
|
||
LABEL org.label-schema.maintainer="Voxpupuli Team <[email protected]>" \ | ||
org.label-schema.vendor="Voxpupuli" \ | ||
org.label-schema.url="https://github.com/voxpupuli/container-voxbox" \ | ||
org.label-schema.name="Vox Pupuli Test Box" \ | ||
org.label-schema.license="AGPL-3.0-or-later" \ | ||
org.label-schema.vcs-url="https://github.com/voxpupuli/container-voxbox" \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.dockerfile="/Dockerfile" | ||
|
||
ARG APK_JQ=1.7.1-r0 | ||
ARG APK_YAMLLINT=1.35.1-r1 | ||
ARG APK_GIT=2.45.2-r0 | ||
|
||
RUN apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache --update jq=${APK_JQ} \ | ||
&& apk add --no-cache --update yamllint=${APK_YAMLLINT} \ | ||
&& apk add --no-cache --update git=${APK_GIT} \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
COPY --from=builder /usr/local/bundle /usr/local/bundle | ||
COPY Dockerfile / | ||
COPY voxbox/Rakefile / | ||
|
||
WORKDIR /repo | ||
|
||
ENTRYPOINT [ "rake" ] | ||
|
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