Skip to content

Commit

Permalink
Merge pull request #901 from rodjek/gh-794
Browse files Browse the repository at this point in the history
(#794) Dockerfile for puppet-lint
  • Loading branch information
rodjek authored Nov 16, 2019
2 parents d2fb4b4 + 6217672 commit 5bc211f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*.pp
/*.gem
/.bundle
/.git
/.gitignore
/.rspec
/.rubocop_todo.yml
/.rubocop.yml
/.ruby-version
/.travis.yml
/appveyor.yml
/CHANGELOG.md
/coverage
/Gemfile
/Gemfile.lock
/Rakefile
/README.md
/spec
/tmp
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM alpine:3.10

RUN apk add --no-cache ruby=2.5.7-r0 ruby-json=2.5.7-r0 && \
mkdir /puppet-lint /puppet

VOLUME /puppet
WORKDIR /puppet
ENTRYPOINT ["/puppet-lint/bin/puppet-lint"]
CMD ["--help"]

COPY . /puppet-lint/
6 changes: 3 additions & 3 deletions puppet-lint.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Gem::Specification.new do |s|
s.description = 'Checks your Puppet manifests against the Puppetlabs
style guide and alerts you to any discrepancies.'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.files = Dir['CHANGELOG.md', 'README.md', 'LICENSE', 'lib/**/*', 'bin/**/*', 'spec/**/*']
s.test_files = s.files.grep(%r{\Aspec/})
s.executables = s.files.grep(%r{\Abin/}) { |f| File.basename(f) }
s.require_paths = ['lib']

s.authors = ['Tim Sharpe']
Expand Down

0 comments on commit 5bc211f

Please sign in to comment.