blob: 0e355d314a442d493c18b9fe15dc71b740ac311d [file] [log] [blame]
# Dockerfile for Skia Infrastructure CI environment.
# TODO(jcgregorio) Switch back to debian:testing after
# https://github.com/nodesource/distributions/issues/873 is resolved.
FROM debian:buster
RUN groupadd -g 2000 skia \
&& useradd -m -u 2000 -g 2000 skia \
&& apt-get update && apt-get upgrade -y && apt-get install -y \
build-essential \
git \
curl \
clang \
wget
USER skia
RUN mkdir -p /home/skia/golib/src \
&& cd /home/skia \
&& wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz \
&& tar -xf go1.12.4.linux-amd64.tar.gz
ENV GOPATH /home/skia/golib
ENV PATH $GOPATH/bin:/home/skia/go/bin:$PATH
ENV GO111MODULE on
RUN cd $GOPATH/src \
&& mkdir go.skia.org \
&& cd go.skia.org \
&& git clone https://skia.googlesource.com/buildbot.git infra \
&& cd infra \
&& go get \
&& go install ./...
RUN cd $GOPATH/src/go.skia.org/infra/fiddlek \
&& make fiddle_secwrap
USER root
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y nodejs
# USER skia
#
# RUN cd /home/skia/golib/src/go.skia.org/infra/perf \
# && make