From 18578b98aa1f9de2b7d4e42ae3b54d1bc9426623 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Fri, 16 Oct 2020 09:51:42 +0000 Subject: Add Ruby to the versioned Docker lint images --- dockerfiles/Dockerfile.gitlab-docs-lint | 34 ++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'dockerfiles') 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 && \ -- cgit v1.2.3