diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-10-16 12:51:42 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-10-16 12:51:42 +0300 |
commit | 18578b98aa1f9de2b7d4e42ae3b54d1bc9426623 (patch) | |
tree | 737487a40de3810ae941e4a91c936bdbe9508a09 /dockerfiles | |
parent | 543408414b6acd5b00fbb0ed72c584f8f9c519c2 (diff) |
Add Ruby to the versioned Docker lint images
Diffstat (limited to 'dockerfiles')
-rw-r--r-- | dockerfiles/Dockerfile.gitlab-docs-lint | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/dockerfiles/Dockerfile.gitlab-docs-lint b/dockerfiles/Dockerfile.gitlab-docs-lint index 252d28bd..d3b3ee59 100644 --- a/dockerfiles/Dockerfile.gitlab-docs-lint +++ b/dockerfiles/Dockerfile.gitlab-docs-lint @@ -7,7 +7,11 @@ # ############################ -FROM registry.gitlab.com/gitlab-org/gitlab-docs:base +# RUBY_VERSION and ALPINE_VERSION are defined in .gitlab-ci.yml +ARG RUBY_VERSION +ARG ALPINE_VERSION + +FROM ruby:${RUBY_VERSION}-alpine${ALPINE_VERSION} MAINTAINER GitLab Technical Writing team # VALE_VERSION and MARKDOWNLINT_VERSION are defined in .gitlab-ci.yml @@ -15,6 +19,34 @@ ARG VALE_VERSION ARG MARKDOWNLINT_VERSION ENV GOBIN=/usr/local/bin +# Install dependencies +RUN apk add --no-cache -U \ + bash \ + build-base \ + curl \ + git \ + gnupg \ + gzip \ + grep \ + libcurl \ + libxslt \ + libxslt-dev \ + nodejs \ + openssl \ + pngquant \ + ruby-dev \ + tar \ + xz \ + xz-dev \ + go \ + yarn + +# Do not install rdoc to save some space +RUN echo 'gem: --no-document' >> /etc/gemrc + +# Update bundler +RUN gem install bundler -v "1.17.3" + # Install vale RUN curl -L https://github.com/errata-ai/vale/archive/v${VALE_VERSION}.tar.gz -o v${VALE_VERSION}.tar.gz && \ tar -xvzf v${VALE_VERSION}.tar.gz && \ |