blob: 8a67c9b763f69850f500557391a29bbec6992c95 [file] [log] [blame]
# Copyright 2017 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Note that OpenSSH 6.5+ is required for the Github SSH private key, which requires
# at least Debian Jessie (not Wheezy). This uses Jessie:
FROM golang:1.8
LABEL maintainer "golang-dev@googlegroups.com"
# todo(bradfitz): remove duplication between this and coordinator.
# Maybe make both derive FROM "golang_org:buildbase" or something. But
# then I want to make sure that FROM base is rebuilt always when things in
# x/build change.
RUN go get -d cloud.google.com/go/compute/metadata
RUN cd /go/src/cloud.google.com/go/compute/metadata && git reset --hard cd0da878c66091060d2e7403abd62192b3e387e0
RUN go get -d golang.org/x/time/rate
RUN cd /go/src/golang.org/x/time/rate && git reset --hard f51c12702a4d776e4c1fa9b0fabab841babae631
RUN go get -d golang.org/x/oauth2
RUN cd /go/src/golang.org/x/oauth2 && git reset --hard 314dd2c0bf3ebd592ec0d20847d27e79d0dbe8dd
RUN go get -d go4.org/syncutil
RUN cd /go/src/go4.org && git reset --hard 7ce08ca145dbe0e66a127c447b80ee7914f3e4f9
RUN go get -d golang.org/x/net/context
RUN cd /go/src/golang.org/x/net && git reset --hard f2499483f923065a842d38eb4c7f1927e6fc6e6d
RUN go get -d google.golang.org/api/container/v1
RUN cd /go/src/google.golang.org/api && git reset --hard dfa61ae24628a06502b9c2805d983b57e89399b5
RUN go get -d google.golang.org/genproto/googleapis/type/latlng
RUN cd /go/src/google.golang.org/genproto && git reset --hard b3e7c2fb04031add52c4817f53f43757ccbf9c18
RUN go get -d google.golang.org/genproto/googleapis/datastore/v1
RUN go get -d gopkg.in/inf.v0
RUN cd /go/src/gopkg.in/inf.v0 && git reset --hard 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4
RUN cd /go/src/google.golang.org/grpc && git reset --hard 50955793b0183f9de69bd78e2ec251cf20aab121
COPY /cmd/gitmirror/install-apt-deps.sh /scripts/install-apt-deps.sh
RUN /scripts/install-apt-deps.sh
COPY . /go/src/golang.org/x/build/
RUN go install golang.org/x/build/cmd/gitmirror
ENTRYPOINT ["/go/bin/gitmirror"]