mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
23 lines
821 B
Docker
23 lines
821 B
Docker
FROM ruby:2.6.3-stretch
|
|
MAINTAINER GitLab Quality Team
|
|
|
|
# Danger manipulates git diff output. When an unicode char is present in the diff, it chokes with
|
|
# (Danger::DSLError) [!] Invalid `Dangerfile` file: invalid byte sequence in US-ASCII
|
|
# eg. https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/275286625
|
|
ENV LC_ALL "C.UTF-8"
|
|
|
|
ADD /scripts/ /scripts/
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y git \
|
|
&& /scripts/install-node 12.4.0 1.16.0-1 \
|
|
&& yarn global add alex@7 \
|
|
&& yarn cache clean \
|
|
&& apt-get autoremove -yq \
|
|
&& apt-get clean -yqq \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& gem install danger-gitlab --no-document \
|
|
&& git version \
|
|
&& echo "node version " $(node --version) \
|
|
&& echo "yarn version " $(yarn --version) \
|
|
&& echo "Danger version " $(danger --version)
|