github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/net/http2/h2demo/Dockerfile (about)

     1  # Copyright 2018 The Go Authors. All rights reserved.
     2  # Use of this source code is governed by a BSD-style
     3  # license that can be found in the LICENSE file.
     4  
     5  FROM golang:1.11 AS build
     6  LABEL maintainer "golang-dev@googlegroups.com"
     7  
     8  # BEGIN deps (run `make update-deps` to update)
     9  
    10  # Repo cloud.google.com/go at b5eca92 (2018-10-23)
    11  ENV REV=b5eca92245a08e245bc29c4880c9779ea4aeaa9a
    12  RUN go get -d cloud.google.com/go/compute/metadata `#and 7 other pkgs` &&\
    13      (cd /go/src/cloud.google.com/go && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    14  
    15  # Repo github.com/golang/protobuf at b4deda0 (2018-04-30)
    16  ENV REV=b4deda0973fb4c70b50d226b1af49f3da59f5265
    17  RUN go get -d github.com/golang/protobuf/proto `#and 6 other pkgs` &&\
    18      (cd /go/src/github.com/golang/protobuf && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    19  
    20  # Repo github.com/googleapis/gax-go at 317e000 (2017-09-15)
    21  ENV REV=317e0006254c44a0ac427cc52a0e083ff0b9622f
    22  RUN go get -d github.com/googleapis/gax-go &&\
    23      (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)
    24  
    25  # Repo go.opencensus.io at ebd8d31 (2018-05-16)
    26  ENV REV=ebd8d31470fedf6c27d0e3056653ddff642509b8
    27  RUN go get -d go.opencensus.io/internal `#and 11 other pkgs` &&\
    28      (cd /go/src/go.opencensus.io && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    29  
    30  # Repo go4.org at fba789b (2018-01-03)
    31  ENV REV=fba789b7e39ba524b9e60c45c37a50fae63a2a09
    32  RUN go get -d go4.org/syncutil/singleflight &&\
    33      (cd /go/src/go4.org && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    34  
    35  # Repo golang.org/x/build at 193361e (2019-02-01)
    36  ENV REV=193361e263a8c4175cbb6769bb2a59d8c4f8183e
    37  RUN go get -d golang.org/x/build/autocertcache &&\
    38      (cd /go/src/golang.org/x/build && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    39  
    40  # Repo golang.org/x/crypto at c7b33c3 (2019-01-28)
    41  ENV REV=c7b33c32a30bae9ba07d37eb4d86f1f8b0f644fb
    42  RUN go get -d golang.org/x/crypto/acme `#and 2 other pkgs` &&\
    43      (cd /go/src/golang.org/x/crypto && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    44  
    45  # Repo golang.org/x/oauth2 at c6d9d57 (2019-01-18)
    46  ENV REV=c6d9d5723bcdfb8ec25b90ea254cffe6025386d6
    47  RUN go get -d golang.org/x/oauth2 `#and 5 other pkgs` &&\
    48      (cd /go/src/golang.org/x/oauth2 && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    49  
    50  # Repo golang.org/x/sys at 4d1cda0 (2018-12-13)
    51  ENV REV=4d1cda033e0619309c606fc686de3adcf599539e
    52  RUN go get -d golang.org/x/sys/unix &&\
    53      (cd /go/src/golang.org/x/sys && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    54  
    55  # Repo golang.org/x/text at 6f44c5a (2018-10-30)
    56  ENV REV=6f44c5a2ea40ee3593d98cdcc905cc1fdaa660e2
    57  RUN go get -d golang.org/x/text/secure/bidirule `#and 4 other pkgs` &&\
    58      (cd /go/src/golang.org/x/text && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    59  
    60  # Repo google.golang.org/api at 41dc4b6 (2018-12-17)
    61  ENV REV=41dc4b66e69d5dbf20efe4ba67e19d214d147ae3
    62  RUN go get -d google.golang.org/api/gensupport `#and 10 other pkgs` &&\
    63      (cd /go/src/google.golang.org/api && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    64  
    65  # Repo google.golang.org/genproto at 86e600f (2018-04-27)
    66  ENV REV=86e600f69ee4704c6efbf6a2a40a5c10700e76c2
    67  RUN go get -d google.golang.org/genproto/googleapis/api/annotations `#and 4 other pkgs` &&\
    68      (cd /go/src/google.golang.org/genproto && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    69  
    70  # Repo google.golang.org/grpc at 07ef407 (2018-08-06)
    71  ENV REV=07ef407d991f1004e6c3367c8f452ed9a02f17ff
    72  RUN go get -d google.golang.org/grpc `#and 26 other pkgs` &&\
    73      (cd /go/src/google.golang.org/grpc && (git cat-file -t $REV 2>/dev/null || git fetch -q origin $REV) && git reset --hard $REV)
    74  
    75  # Optimization to speed up iterative development, not necessary for correctness:
    76  RUN go install cloud.google.com/go/compute/metadata \
    77  	cloud.google.com/go/iam \
    78  	cloud.google.com/go/internal \
    79  	cloud.google.com/go/internal/optional \
    80  	cloud.google.com/go/internal/trace \
    81  	cloud.google.com/go/internal/version \
    82  	cloud.google.com/go/storage \
    83  	github.com/golang/protobuf/proto \
    84  	github.com/golang/protobuf/protoc-gen-go/descriptor \
    85  	github.com/golang/protobuf/ptypes \
    86  	github.com/golang/protobuf/ptypes/any \
    87  	github.com/golang/protobuf/ptypes/duration \
    88  	github.com/golang/protobuf/ptypes/timestamp \
    89  	github.com/googleapis/gax-go \
    90  	go.opencensus.io/internal \
    91  	go.opencensus.io/internal/tagencoding \
    92  	go.opencensus.io/plugin/ochttp \
    93  	go.opencensus.io/plugin/ochttp/propagation/b3 \
    94  	go.opencensus.io/stats \
    95  	go.opencensus.io/stats/internal \
    96  	go.opencensus.io/stats/view \
    97  	go.opencensus.io/tag \
    98  	go.opencensus.io/trace \
    99  	go.opencensus.io/trace/internal \
   100  	go.opencensus.io/trace/propagation \
   101  	go4.org/syncutil/singleflight \
   102  	golang.org/x/build/autocertcache \
   103  	golang.org/x/crypto/acme \
   104  	golang.org/x/crypto/acme/autocert \
   105  	golang.org/x/oauth2 \
   106  	golang.org/x/oauth2/google \
   107  	golang.org/x/oauth2/internal \
   108  	golang.org/x/oauth2/jws \
   109  	golang.org/x/oauth2/jwt \
   110  	golang.org/x/sys/unix \
   111  	golang.org/x/text/secure/bidirule \
   112  	golang.org/x/text/transform \
   113  	golang.org/x/text/unicode/bidi \
   114  	golang.org/x/text/unicode/norm \
   115  	google.golang.org/api/gensupport \
   116  	google.golang.org/api/googleapi \
   117  	google.golang.org/api/googleapi/internal/uritemplates \
   118  	google.golang.org/api/googleapi/transport \
   119  	google.golang.org/api/internal \
   120  	google.golang.org/api/iterator \
   121  	google.golang.org/api/option \
   122  	google.golang.org/api/storage/v1 \
   123  	google.golang.org/api/transport/http \
   124  	google.golang.org/api/transport/http/internal/propagation \
   125  	google.golang.org/genproto/googleapis/api/annotations \
   126  	google.golang.org/genproto/googleapis/iam/v1 \
   127  	google.golang.org/genproto/googleapis/rpc/code \
   128  	google.golang.org/genproto/googleapis/rpc/status \
   129  	google.golang.org/grpc \
   130  	google.golang.org/grpc/balancer \
   131  	google.golang.org/grpc/balancer/base \
   132  	google.golang.org/grpc/balancer/roundrobin \
   133  	google.golang.org/grpc/codes \
   134  	google.golang.org/grpc/connectivity \
   135  	google.golang.org/grpc/credentials \
   136  	google.golang.org/grpc/encoding \
   137  	google.golang.org/grpc/encoding/proto \
   138  	google.golang.org/grpc/grpclog \
   139  	google.golang.org/grpc/internal \
   140  	google.golang.org/grpc/internal/backoff \
   141  	google.golang.org/grpc/internal/channelz \
   142  	google.golang.org/grpc/internal/envconfig \
   143  	google.golang.org/grpc/internal/grpcrand \
   144  	google.golang.org/grpc/internal/transport \
   145  	google.golang.org/grpc/keepalive \
   146  	google.golang.org/grpc/metadata \
   147  	google.golang.org/grpc/naming \
   148  	google.golang.org/grpc/peer \
   149  	google.golang.org/grpc/resolver \
   150  	google.golang.org/grpc/resolver/dns \
   151  	google.golang.org/grpc/resolver/passthrough \
   152  	google.golang.org/grpc/stats \
   153  	google.golang.org/grpc/status \
   154  	google.golang.org/grpc/tap
   155  # END deps
   156  
   157  COPY . /go/src/golang.org/x/net/
   158  
   159  RUN go install -tags "h2demo netgo" golang.org/x/net/http2/h2demo
   160  
   161  FROM golang:1.11
   162  COPY --from=build /go/bin/h2demo /h2demo
   163