Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2020-09-03 07:23:30 +0300
committerEvan Read <eread@gitlab.com>2020-09-07 01:33:19 +0300
commit837e3be3330579752a06a3513e073f53dd7cff6a (patch)
tree3e83bb71e5793c990f4e72560fad6b1616e74472 /dockerfiles
parentf3dc193fa786c7ad698d629b8d523db7476c1196 (diff)
Update Vale in Docker image to 2.3.4
Also stop installing unnecessary dependencies
Diffstat (limited to 'dockerfiles')
-rw-r--r--dockerfiles/Dockerfile.gitlab-docs-lint15
1 files changed, 5 insertions, 10 deletions
diff --git a/dockerfiles/Dockerfile.gitlab-docs-lint b/dockerfiles/Dockerfile.gitlab-docs-lint
index 5ff65568..252d28bd 100644
--- a/dockerfiles/Dockerfile.gitlab-docs-lint
+++ b/dockerfiles/Dockerfile.gitlab-docs-lint
@@ -8,28 +8,23 @@
############################
FROM registry.gitlab.com/gitlab-org/gitlab-docs:base
-MAINTAINER GitLab Documentation Team
-
-# Install vale
-# We need to build it from source, see https://github.com/errata-ai/vale/issues/128
+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
-RUN apk add --no-cache wget zip tar make && \
- wget https://github.com/errata-ai/vale/archive/v${VALE_VERSION}.tar.gz && \
+# 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} && \
- make && \
+ os=linux exe=vale make && \
make install && \
cd .. && \
rm -r vale-${VALE_VERSION} && \
rm v${VALE_VERSION}.tar.gz && \
- # Remove the /usr/lib/go directory, we no longer need it after Vale is built,
- # and it cleans up more than 200MB of space.
- rm -rf /usr/lib/go
+ apk del go
# Set up needed environment variables that are called with --build-arg when
# the Docker image is built (see .gitlab-ci.yml).