diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2021-04-28 16:20:51 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2021-04-28 16:20:51 +0300 |
commit | 224759b7e8572a625515ef8091cf4262f4c587ca (patch) | |
tree | 0bbd05904b5a71873b8765857355959849aa34a0 | |
parent | 2cd2d8da29bc0419804694e03ff5f6ce48952bb0 (diff) | |
parent | f3ae39869c49877ee4936d61e60d64bba7d73e3a (diff) |
Merge branch '1002' into 'master'
Remove unused Dockerfile (gitlab-docs-lint)
Closes #1002
See merge request gitlab-org/gitlab-docs!1737
-rw-r--r-- | dockerfiles/Dockerfile.gitlab-docs-lint | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/dockerfiles/Dockerfile.gitlab-docs-lint b/dockerfiles/Dockerfile.gitlab-docs-lint deleted file mode 100644 index 71bf8b76..00000000 --- a/dockerfiles/Dockerfile.gitlab-docs-lint +++ /dev/null @@ -1,76 +0,0 @@ -############################ -# -# Image the contains the dependencies to run the lints. -# It downloads the gitlab-docs repository based on the -# branch the Docker image is invoked from. -# Based on Alpine. -# -############################ - -# 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 -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 - -# 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 && \ - cd vale-${VALE_VERSION} && \ - os=linux exe=vale make && \ - make install && \ - cd .. && \ - rm -r vale-${VALE_VERSION} && \ - rm v${VALE_VERSION}.tar.gz && \ - apk del go - -# Set up needed environment variables that are called with --build-arg when -# the Docker image is built (see .gitlab-ci.yml). -ARG CI_COMMIT_REF_NAME -# If CI_COMMIT_REF_NAME is not set (local development), set it to master -ENV CI_COMMIT_REF_NAME ${CI_COMMIT_REF_NAME:-master} - -WORKDIR /tmp - -# markdownlint-cli pinned to control when new versions are put in place. -RUN yarn global add markdownlint-cli@${MARKDOWNLINT_VERSION} && yarn cache clean - -RUN wget https://gitlab.com/gitlab-org/gitlab-docs/-/archive/$CI_COMMIT_REF_NAME/gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2 \ - && tar xvjf gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2 \ - && mv gitlab-docs-$CI_COMMIT_REF_NAME gitlab-docs \ - && rm gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2 - -RUN cd gitlab-docs \ - && yarn install --frozen-lockfile \ - && NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install --jobs 4 |