| 1 |
FROM ruby:2.5.3 |
| 2 |
|
| 3 |
WORKDIR /opt/puppet |
| 4 |
|
| 5 |
# https://github.com/puppetlabs/puppet/blob/06ad255754a38f22fb3a22c7c4f1e2ce453d01cb/lib/puppet/provider/service/runit.rb#L39 |
| 6 |
RUN mkdir -p /etc/sv |
| 7 |
|
| 8 |
ARG PUPPET_VERSION="~> 6.0" |
| 9 |
ARG PARALLEL_TEST_PROCESSORS=4 |
| 10 |
|
| 11 |
# Cache gems |
| 12 |
COPY Gemfile . |
| 13 |
RUN bundle install --without system_tests development release --path=${BUNDLE_PATH:-vendor/bundle} |
| 14 |
|
| 15 |
COPY . . |
| 16 |
|
| 17 |
RUN bundle install |
| 18 |
RUN bundle exec rake release_checks |
| 19 |
|
| 20 |
# Container should not saved |
| 21 |
RUN exit 1 |