]> git.openstreetmap.org Git - chef.git/commitdiff
Add basic Dockerfile for linting tests
authorGrant Slater <git@firefishy.com>
Wed, 29 May 2019 19:55:47 +0000 (20:55 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 29 May 2019 19:55:47 +0000 (20:55 +0100)
.dockerignore [new file with mode: 0644]
Dockerfile [new file with mode: 0644]

diff --git a/.dockerignore b/.dockerignore
new file mode 100644 (file)
index 0000000..6b8710a
--- /dev/null
@@ -0,0 +1 @@
+.git
diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..1dca543
--- /dev/null
@@ -0,0 +1,14 @@
+FROM ruby:2.4
+
+WORKDIR /app
+
+RUN apt-get update \
+       && apt-get install -y --no-install-recommends libssl1.0-dev
+
+ADD Gemfile* /app/
+RUN gem install bundler && bundle config build.nokogiri --use-system-libraries && bundle install --jobs 4 --retry 5
+
+ADD . /app/
+
+RUN bundle exec rubocop -f fuubar
+RUN bundle exec foodcritic -f any cookbooks