| # Dockerfile for Skia Infrastructure CI environment. |
| FROM debian:testing |
| 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 |