Skip to content

Commit

Permalink
Merge pull request #1 from voxpupuli/extend
Browse files Browse the repository at this point in the history
Add r10k and demo minimal Rakefile
  • Loading branch information
rwaffen authored Mar 27, 2024
2 parents a0ed8b7 + 5e12693 commit d6d16ad
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
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

0 comments on commit d6d16ad

Please sign in to comment.