| # 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 f883269 (2017-11-17) |
| ENV REV=f8832690939d5c21d834de7b6ea38f12009581d7 |
| 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 3d95f1a (2017-11-12) |
| ENV REV=3d95f1a04b0e599e90f3493a39350ecb90ce6686 |
| 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 1e59b77 (2017-11-13) |
| ENV REV=1e59b77b52bf8e4b449a57e6f79f21226d571845 |
| 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 9f005a0 (2017-11-13) |
| ENV REV=9f005a07e0d31d45e6656d241bb5c0f2efd4bc94 |
| 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 9dfe398 (2017-11-15) |
| ENV REV=9dfe39835686865bff950a07b394c12a98ddc811 |
| 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 9ff8ebc (2017-11-06) |
| ENV REV=9ff8ebcc8e241d46f52ecc5bff0e5a2f2dbef402 |
| 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 fd80eb9 (2017-11-01) |
| ENV REV=fd80eb99c8f653c847d294a001bdf2a3a6f768f5 |
| 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 88f656f (2017-11-02) |
| ENV REV=88f656faf3f37f690df1a32515b479415e1a6769 |
| 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 1f7e480 (2017-11-16) |
| ENV REV=1f7e48066acd1b2f555c2cc48c8fc675025ef6c3 |
| 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 11c7f9e (2017-11-03) |
| ENV REV=11c7f9e547da6db876260ce49ea7536985904c9b |
| 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 c1fc296 (2017-11-14) |
| ENV REV=c1fc29613da668384b9a63e81b424d627f0b0a02 |
| RUN go get -d google.golang.org/grpc `#and 22 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/balancer/roundrobin \ |
| 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/encoding \ |
| 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/resolver/dns \ |
| google.golang.org/grpc/resolver/passthrough \ |
| 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 |