blob: aff7adb6cdaae908dcb72602b0aa12afa47313ac [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.
FROM golang:1.8
LABEL maintainer "golang-dev@googlegroups.com"
# BEGIN deps (run `make update-deps` to update)
# Repo cloud.google.com/go at ba25346 (2017-10-13)
ENV REV=ba2534604a6c2b8854d680e50f9132cade92d02f
RUN go get -d cloud.google.com/go/bigquery `#and 14 other pkgs` &&\
(cd /go/src/cloud.google.com/go && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo github.com/anmitsu/go-shlex at 648efa6 (2016-10-02)
ENV REV=648efa622239a2f6ff949fed78ee37b48d499ba4
RUN go get -d github.com/anmitsu/go-shlex &&\
(cd /go/src/github.com/anmitsu/go-shlex && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo github.com/gliderlabs/ssh at 4a4de39 (2017-09-01)
ENV REV=4a4de396c4d49400d09e0b4d83053a01539e4bcc
RUN go get -d github.com/gliderlabs/ssh &&\
(cd /go/src/github.com/gliderlabs/ssh && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo github.com/golang/protobuf at 130e6b0 (2017-09-20)
ENV REV=130e6b02ab059e7b717a096f397c5b60111cae74
RUN go get -d github.com/golang/protobuf/proto `#and 9 other pkgs` &&\
(cd /go/src/github.com/golang/protobuf && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo github.com/googleapis/gax-go at 317e000 (2017-09-15)
ENV REV=317e0006254c44a0ac427cc52a0e083ff0b9622f
RUN go get -d github.com/googleapis/gax-go &&\
(cd /go/src/github.com/googleapis/gax-go && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo github.com/kr/pty at 95d05c1 (2017-10-06)
ENV REV=95d05c1eef33a45bd58676b6ce28d105839b8d0b
RUN go get -d github.com/kr/pty &&\
(cd /go/src/github.com/kr/pty && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo go4.org at 034d17a (2017-05-25)
ENV REV=034d17a462f7b2dcd1a4a73553ec5357ff6e6c6e
RUN go get -d go4.org/syncutil &&\
(cd /go/src/go4.org && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo golang.org/x/crypto at 9419663 (2017-09-30)
ENV REV=9419663f5a44be8b34ca85f08abc5fe1be11f8a3
RUN go get -d golang.org/x/crypto/acme `#and 6 other pkgs` &&\
(cd /go/src/golang.org/x/crypto && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo golang.org/x/net at a04bdac (2017-10-04)
ENV REV=a04bdaca5b32abe1c069418fb7088ae607de5bd0
RUN go get -d golang.org/x/net/context `#and 8 other pkgs` &&\
(cd /go/src/golang.org/x/net && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo golang.org/x/oauth2 at bb50c06 (2017-09-28)
ENV REV=bb50c06baba3d0c76f9d125c0719093e315b5b44
RUN go get -d golang.org/x/oauth2 `#and 5 other pkgs` &&\
(cd /go/src/golang.org/x/oauth2 && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo golang.org/x/perf at 4469e6c (2017-09-27)
ENV REV=4469e6ce8cc3920f1b42128b9d557bea2e08621a
RUN go get -d golang.org/x/perf/storage `#and 2 other pkgs` &&\
(cd /go/src/golang.org/x/perf && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo golang.org/x/sync at f52d181 (2017-05-17)
ENV REV=f52d1811a62927559de87708c8913c1650ce4f26
RUN go get -d golang.org/x/sync/semaphore &&\
(cd /go/src/golang.org/x/sync && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo golang.org/x/text at c01e476 (2017-10-13)
ENV REV=c01e4764d870b77f8abe5096ee19ad20d80e8075
RUN go get -d golang.org/x/text/secure/bidirule `#and 4 other pkgs` &&\
(cd /go/src/golang.org/x/text && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo golang.org/x/time at 6dc1736 (2017-09-27)
ENV REV=6dc17368e09b0e8634d71cac8168d853e869a0c7
RUN go get -d golang.org/x/time/rate &&\
(cd /go/src/golang.org/x/time && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo google.golang.org/api at b02deba (2017-10-13)
ENV REV=b02deba8ecc515109e445c1cd35cc85cc08500d8
RUN go get -d google.golang.org/api/bigquery/v2 `#and 16 other pkgs` &&\
(cd /go/src/google.golang.org/api && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo google.golang.org/genproto at f676e0f (2017-10-03)
ENV REV=f676e0f3ac6395ff1a529ae59a6670878a8371a6
RUN go get -d google.golang.org/genproto/googleapis/api/annotations `#and 11 other pkgs` &&\
(cd /go/src/google.golang.org/genproto && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo google.golang.org/grpc at c209cdf (2017-10-12)
ENV REV=c209cdff16049a924bef4aa5c6f7588f0b42b2fa
RUN go get -d google.golang.org/grpc `#and 18 other pkgs` &&\
(cd /go/src/google.golang.org/grpc && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo gopkg.in/inf.v0 at 3887ee9 (2015-09-11)
ENV REV=3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4
RUN go get -d gopkg.in/inf.v0 &&\
(cd /go/src/gopkg.in/inf.v0 && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Repo grpc.go4.org at 11d0a25 (2017-06-09)
ENV REV=11d0a25b491971beb5a4625ea7856a3c4afaafa5
RUN go get -d grpc.go4.org `#and 11 other pkgs` &&\
(cd /go/src/grpc.go4.org && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
# Optimization to speed up iterative development, not necessary for correctness:
RUN go install cloud.google.com/go/bigquery \
cloud.google.com/go/civil \
cloud.google.com/go/compute/metadata \
cloud.google.com/go/datastore \
cloud.google.com/go/errorreporting \
cloud.google.com/go/errorreporting/apiv1beta1 \
cloud.google.com/go/iam \
cloud.google.com/go/internal \
cloud.google.com/go/internal/atomiccache \
cloud.google.com/go/internal/fields \
cloud.google.com/go/internal/optional \
cloud.google.com/go/internal/version \
cloud.google.com/go/monitoring/apiv3 \
cloud.google.com/go/storage \
github.com/anmitsu/go-shlex \
github.com/gliderlabs/ssh \
github.com/golang/protobuf/proto \
github.com/golang/protobuf/protoc-gen-go/descriptor \
github.com/golang/protobuf/ptypes \
github.com/golang/protobuf/ptypes/any \
github.com/golang/protobuf/ptypes/duration \
github.com/golang/protobuf/ptypes/empty \
github.com/golang/protobuf/ptypes/struct \
github.com/golang/protobuf/ptypes/timestamp \
github.com/golang/protobuf/ptypes/wrappers \
github.com/googleapis/gax-go \
github.com/kr/pty \
go4.org/syncutil \
golang.org/x/crypto/acme \
golang.org/x/crypto/acme/autocert \
golang.org/x/crypto/curve25519 \
golang.org/x/crypto/ed25519 \
golang.org/x/crypto/ed25519/internal/edwards25519 \
golang.org/x/crypto/ssh \
golang.org/x/net/context \
golang.org/x/net/context/ctxhttp \
golang.org/x/net/http2 \
golang.org/x/net/http2/hpack \
golang.org/x/net/idna \
golang.org/x/net/internal/timeseries \
golang.org/x/net/lex/httplex \
golang.org/x/net/trace \
golang.org/x/oauth2 \
golang.org/x/oauth2/google \
golang.org/x/oauth2/internal \
golang.org/x/oauth2/jws \
golang.org/x/oauth2/jwt \
golang.org/x/perf/storage \
golang.org/x/perf/storage/benchfmt \
golang.org/x/sync/semaphore \
golang.org/x/text/secure/bidirule \
golang.org/x/text/transform \
golang.org/x/text/unicode/bidi \
golang.org/x/text/unicode/norm \
golang.org/x/time/rate \
google.golang.org/api/bigquery/v2 \
google.golang.org/api/compute/v1 \
google.golang.org/api/container/v1 \
google.golang.org/api/gensupport \
google.golang.org/api/googleapi \
google.golang.org/api/googleapi/internal/uritemplates \
google.golang.org/api/googleapi/transport \
google.golang.org/api/internal \
google.golang.org/api/iterator \
google.golang.org/api/oauth2/v2 \
google.golang.org/api/option \
google.golang.org/api/storage/v1 \
google.golang.org/api/support/bundler \
google.golang.org/api/transport \
google.golang.org/api/transport/grpc \
google.golang.org/api/transport/http \
google.golang.org/genproto/googleapis/api/annotations \
google.golang.org/genproto/googleapis/api/distribution \
google.golang.org/genproto/googleapis/api/label \
google.golang.org/genproto/googleapis/api/metric \
google.golang.org/genproto/googleapis/api/monitoredres \
google.golang.org/genproto/googleapis/datastore/v1 \
google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1 \
google.golang.org/genproto/googleapis/iam/v1 \
google.golang.org/genproto/googleapis/monitoring/v3 \
google.golang.org/genproto/googleapis/rpc/status \
google.golang.org/genproto/googleapis/type/latlng \
google.golang.org/grpc \
google.golang.org/grpc/balancer \
google.golang.org/grpc/codes \
google.golang.org/grpc/connectivity \
google.golang.org/grpc/credentials \
google.golang.org/grpc/credentials/oauth \
google.golang.org/grpc/grpclb/grpc_lb_v1/messages \
google.golang.org/grpc/grpclog \
google.golang.org/grpc/internal \
google.golang.org/grpc/keepalive \
google.golang.org/grpc/metadata \
google.golang.org/grpc/naming \
google.golang.org/grpc/peer \
google.golang.org/grpc/resolver \
google.golang.org/grpc/stats \
google.golang.org/grpc/status \
google.golang.org/grpc/tap \
google.golang.org/grpc/transport \
gopkg.in/inf.v0 \
grpc.go4.org \
grpc.go4.org/codes \
grpc.go4.org/credentials \
grpc.go4.org/grpclog \
grpc.go4.org/internal \
grpc.go4.org/metadata \
grpc.go4.org/naming \
grpc.go4.org/peer \
grpc.go4.org/stats \
grpc.go4.org/tap \
grpc.go4.org/transport
# END deps.
# Makefile passes a string with --build-arg version
# This becomes part of the cache key for all subsequent instructions,
# so it must not be placed above the "go get" commands above.
ARG version=unknown
COPY . /go/src/golang.org/x/build/
RUN go install -ldflags "-linkmode=external -extldflags '-static -pthread' -X 'main.Version=$version'" golang.org/x/build/cmd/coordinator