Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add r10k and demo minimal Rakefile #1

Merged
merged 4 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,28 @@ ENV RUBYGEM_PUPPET_METADATA=${RUBYGEM_PUPPET_METADATA:-3.6.0}
ARG RUBYGEM_MODULESYNC
ENV RUBYGEM_MODULESYNC=${RUBYGEM_MODULESYNC:-3.2.0}

ARG RUBYGEM_R10K
ENV RUBYGEM_R10K=${RUBYGEM_R10K:-4.0.2}

ARG RUBYGEM_RA10KE
ENV RUBYGEM_RA10KE=${RUBYGEM_RA10KE:-3.0.0}

COPY voxbox/Gemfile /
COPY voxbox/Rakefile /
COPY Dockerfile /

RUN apt-get update && apt-get upgrade -y \
&& bundle config set path.system true \
&& bundle config set jobs $(nproc) \
&& bundle install --gemfile=/Gemfile \
&& apt-get purge -y "libaom*" \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& bundle config set path.system true \
&& bundle config set jobs $(nproc) \
&& bundle install --gemfile=/Gemfile \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/local/lib/ruby/gems/*/cache/* \
&& rm -rf /usr/local/lib/ruby/gems/2.7.0/specifications/default/cgi-0.1.0.2.gemspec

WORKDIR /repo

ENTRYPOINT [ "rake" ]
CMD [ "-T" ]
CMD [ "-f", "/Rakefile", "-T" ]
8 changes: 6 additions & 2 deletions build_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"rubygem_voxpupuli_release": "3.0.1",
"rubygem_puppet_metadata": "3.6.0",
"rubygem_overcommit": "0.63.0",
"rubygem_modulesync": "3.2.0"
"rubygem_modulesync": "3.2.0",
"rubygem_r10k": "4.0.2",
"rubygem_ra10ke": "3.0.0"
},
{
"puppet_release": 8,
Expand All @@ -22,7 +24,9 @@
"rubygem_voxpupuli_release": "3.0.1",
"rubygem_puppet_metadata": "3.6.0",
"rubygem_overcommit": "0.63.0",
"rubygem_modulesync": "3.2.0"
"rubygem_modulesync": "3.2.0",
"rubygem_r10k": "4.0.2",
"rubygem_ra10ke": "3.0.0"
}
]
}
2 changes: 2 additions & 0 deletions voxbox/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ gem 'facter', ENV['RUBYGEM_FACTER']
gem 'modulesync', ENV['RUBYGEM_MODULESYNC']
gem 'puppet', ENV['RUBYGEM_PUPPET']
gem 'puppet_metadata', ENV['RUBYGEM_PUPPET_METADATA']
gem 'r10k', ENV['RUBYGEM_R10K']
gem 'ra10ke', ENV['RUBYGEM_RA10KE']
gem 'voxpupuli-acceptance', ENV['RUBYGEM_VOXPUPULI_ACCEPTANCE']
gem 'voxpupuli-release', ENV['RUBYGEM_VOXPUPULI_RELEASE']
gem 'voxpupuli-test', ENV['RUBYGEM_VOXPUPULI_TEST']
Expand Down
6 changes: 6 additions & 0 deletions voxbox/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'voxpupuli/test/rake'
require 'voxpupuli/acceptance/rake'
require 'voxpupuli/release/rake_tasks'
require 'ra10ke'

Ra10ke::RakeTask.new