Closed jihoon-seo closed 4 years ago
@jihoon-seo Go module 문제 있어서 사용안하고 있지 않았나요?
<1차시도> AWS: Ubuntu 18.04.3 LTS => docker build 시 space 부족 => VM 사용시 rootfs 크게 필요(아마도 최소 15G 이상)
<2차시도> 공간 충분한 사용하던 내부 노드에서 시험(동일 절차)
<시험 절차> => Ubuntu 18.04 설치 후 기준 => CB-Spider v0.1.2 소스 기반 build 과정 위주 참고.
1. Go, Docker 설치
wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz
tar -xvf go1.12.7.linux-amd64.tar.gz
vi .bashrc
export GOROOT=$HOME/go
export GOPATH=$HOME/gosrc
export PATH=$PATH:$GOROOT/bin
sudo snap install docker
2. CB-Spider v0.1.2 소스 및 관련 패키지 소스 준비
git clone --branch v0.1.2 https://github.com/cloud-barista/cb-spider.git
go get github.com/cloud-barista/cb-store # $GOPATH/src/github.com/cloud-barista 경로 생성 효과
mv cb-spider $GOPATH/src/github.com/cloud-barista/ #go pkg를 cb-spier v0.1.2로
source $GOPATH/src/github.com/cloud-barista/cb-spider/setup.env
export GO111MODULE=off
#필요 패키지 소스 설치 가이드
- cd $CBSPIDER_ROOT/api-runtime/rest-runtime
- go run *.go 2> t.txt
- go get `grep cannot t.txt |awk '{print $5}' | sed 's/"//g'`
- cd $CBSPIDER_ROOT
- ./build_all_driver_lib.sh 2> t.txt
- go get `grep cannot t.txt |awk '{print $5}' | sed 's/"//g'`
. 다음 메시지는 무시
package No: unrecognized import path "No" (import path does not begin with hostname)
#관련 Go 패키지를 Go module 사용 없이 소스 전체를 image 내부로 복사
cd $GOPATH/src
cp $CBSPIDER_ROOT/Dockerfile ./
vi Dockerfile
...
ENV GO111MODULE off
...
ADD . /go/src
...
#image build
docker build --tag test-build.0.1.2 .
Sending build context to Docker daemon 1.65GB
Step 1/20 : FROM golang:1.12.4 AS builder
1.12.4: Pulling from library/golang
e79bb959ec00: Pull complete
d4b7902036fe: Pull complete
1b2a72d4e030: Pull complete
d54db43011fd: Pull complete
963c818ebafc: Pull complete
9eee6e7073aa: Pull complete
83e75b35417b: Pull complete
Digest: sha256:83e8267be041b3ddf6a5792c7e464528408f75c446745642db08cfe4e8d58d18
Status: Downloaded newer image for golang:1.12.4
---> b860ab44e93e
Step 2/20 : ENV GO111MODULE off
---> Running in fe3e1089141b
Removing intermediate container fe3e1089141b
---> 3f1808c7efd2
Step 3/20 : ADD . /go/src
---> f2408904712c
Step 4/20 : WORKDIR /go/src/github.com/cloud-barista/cb-spider
---> Running in fbd309b64100
Removing intermediate container fbd309b64100
---> bcd02864bb81
Step 5/20 : RUN ./build_all_driver_lib.sh
---> Running in f951af2b13f8
============ build aws ... ============
... 중략 ...
Step 19/20 : ENTRYPOINT [ "/root/go/src/github.com/cloud-barista/cb-spider/api-runtime/rest-runtime/cb-spider" ]
---> Running in 25b60054e5cd
Removing intermediate container 25b60054e5cd
---> d7f20a123c1d
Step 20/20 : EXPOSE 1024
---> Running in 4c906cda649f
Removing intermediate container 4c906cda649f
---> aa5f4ac1d6a6
Successfully built aa5f4ac1d6a6
Successfully tagged test-build.0.1.2:latest
#상태 확인
root@node11:~/gosrc/src# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
test-build.0.1.2 latest aa5f4ac1d6a6 About a minute ago 321MB
<none> <none> 26ab7f171c25 2 minutes ago 2.88GB
ubuntu latest 4e5021d210f6 3 weeks ago 64.2MB
mcr.microsoft.com/azure-cli latest 2cc3ecdb054f 5 weeks ago 671MB
golang 1.12.4 b860ab44e93e 12 months ago 774MB
@jihoon-seo
build tag 관련: 테스트를 위해, 기존의 cloudbaristaorg/cb-spider:v0.1.2-20200403 이미지를 덮어 쓰지 않도록 일부러 cloudbaristahub/cb-spider:v0.1.2-20200403 으로 적었습니다.
Docker Hub 의 Automated Builds 등의 기능을 활용하기 위해서는
호스트 머신에서의 빌드 뿐만 아니라
Dockerfile
을 이용한 빌드도 문제 없이 성공해야 합니다.
Dockerfile
에 ENV GO111MODULE on
이라고 되어 있는데,
만약 이것을 ENV GO111MODULE off
로 바꾸려면
Dependency 충족을 위해
Dockerfile
에 go get -u *
명령들을 많이 추가해야 합니다.
FYI: Dockerfile
에 ENV GO111MODULE off
로만 바꾸고
Dependency 충족을 위한 go get -u *
명령들을 추가하지 않고 build 하면
다음과 같은 에러가 발생합니다.
FYI: 제가 2020-02-26 에 깨끗한 Ubuntu 18.04 환경에서 Spider 를 build 하면서 기록한 dependencies 는 다음과 같습니다. (업데이트가 필요할 수 있음 / container 이용하여 깨끗한 환경을 만들 수도 있음)
만약 Dockerfile
에 ENV GO111MODULE off
로 바꾸려면
아래의 go get -u *
라인들을 Dockerfile
에 넣어야 한다는 뜻인데,
이것은 바람직해 보이지 않고,
Go Modules 문제점을 해결하여
Dockerfile
에 ENV GO111MODULE on
으로 유지하고
다음의 go get -u *
라인들을 Dockerfile
에 넣지 않는 것이 좋아 보입니다.
FYI: Docker Hub 의 Automated Builds 기능을 사용했을 때의 에러 메시지도 첨부합니다.
@powerkimhub
docker build --tag cloudbaristahub/cb-spider:v0.1.2-20200403 . 2>&1 > /tmp/spider-docker-build-error.txt
vi /tmp/spider-docker-build-error.txt
펼치기 / 숨기기
``` Sending build context to Docker daemon 348.1MB^M^M Step 1/20 : FROM golang:1.12.4 AS builder ---> b860ab44e93e Step 2/20 : ENV GO111MODULE on ---> Using cache ---> 1dce1fa79997 Step 3/20 : ADD . /go/src/github.com/cloud-barista/cb-spider ---> Using cache ---> bcfdcf949018 Step 4/20 : WORKDIR /go/src/github.com/cloud-barista/cb-spider ---> Running in 63b9104a4b7f Removing intermediate container 63b9104a4b7f ---> 97cc1583978d Step 5/20 : RUN ./build_all_driver_lib.sh ---> Running in e85ea3ae663b ============ build aws ... ============ ^[[91mgo: finding github.com/rackspace/gophercloud v1.0.0 ^[[0m^[[91mgo: finding github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f ^[[0m^[[91mgo: finding github.com/modern-go/reflect2 v1.0.1 ^[[0m^[[91mgo: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 ^[[0m^[[91mgo: finding github.com/aliyun/alibaba-cloud-sdk-go v1.61.78 ^[[0m^[[91mgo: finding github.com/grpc-ecosystem/grpc-gateway v1.14.3 ^[[0m^[[91mgo: finding github.com/soheilhy/cmux v0.1.4 ^[[0m^[[91mgo: finding go.etcd.io/etcd v3.3.19+incompatible ^[[0m^[[91mgo: finding sigs.k8s.io/yaml v1.2.0 ^[[0m^[[91mgo: finding gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c ^[[0m^[[91mgo: finding github.com/xujiajun/nutsdb v0.5.0 ^[[0m^[[91mgo: finding github.com/cloud-barista/cb-log v0.0.0-20200117022531-82070963ca10 ^[[0m^[[91mgo: finding github.com/coreos/go-systemd/v22 v22.0.0 ^[[0m^[[91mgo: finding github.com/cloud-barista/cb-store v0.0.0-20200324092155-64d4df337031 ^[[0m^[[91mgo: finding golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d ^[[0m^[[91mgo: finding gopkg.in/yaml.v2 v2.2.8 ^[[0m^[[91mgo: finding golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59 ^[[0m^[[91mgo: finding github.com/prometheus/client_golang v1.5.1 ^[[0m^[[91mgo: finding github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 ^[[0m^[[91mgo: finding github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e ^[[0m^[[91mgo: finding github.com/sirupsen/logrus v1.5.0 ^[[0m^[[91mgo: finding github.com/xujiajun/gorouter v1.2.0 ^[[0m^[[91mgo: finding github.com/coreos/etcd v3.3.19+incompatible ^[[0m^[[91mgo: finding github.com/ghodss/yaml v1.0.0 ^[[0m^[[91mgo: finding github.com/gogo/protobuf v1.3.1 ^[[0m^[[91mgo: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be ^[[0m^[[91mgo: finding github.com/coreos/go-semver v0.3.0 ^[[0m^[[91mgo: finding github.com/gorilla/websocket v1.4.2 ^[[0m^[[91mgo: finding github.com/stretchr/testify v1.3.0 ^[[0m^[[91mgo: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000 ^[[0m^[[91mgo: finding github.com/labstack/echo v3.3.10+incompatible ^[[0m^[[91mgo: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 ^[[0m^[[91mgo: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1 ^[[0m^[[91mgo: finding gopkg.in/natefinch/lumberjack.v2 v2.0.0 ^[[0m^[[91mgo: finding github.com/stretchr/testify v1.4.0 ^[[0m^[[91mgo: finding github.com/grpc-ecosystem/go-grpc-middleware v1.2.0 ^[[0m^[[91mgo: finding github.com/kisielk/errcheck v1.2.0 ^[[0m^[[91mgo: finding github.com/pmezard/go-difflib v1.0.0 ^[[0m^[[91mgo: finding github.com/racker/perigee v0.1.0 ^[[0m^[[91mgo: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 ^[[0m^[[91mgo: finding github.com/aws/aws-sdk-go v1.29.31 ^[[0m^[[91mgo: finding github.com/google/go-cmp v0.4.0 ^[[0m^[[91mgo: finding github.com/bwmarrin/snowflake v0.3.0 ^[[0m^[[91mgo: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20200122134326-e047566fdf82 ^[[0m^[[91mgo: finding github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/validation v0.2.0 ^[[0m^[[91mgo: finding github.com/cespare/xxhash/v2 v2.1.1 ^[[0m^[[91mgo: finding github.com/rogpeppe/fastuuid v1.2.0 ^[[0m^[[91mgo: finding github.com/beorn7/perks v1.0.1 ^[[0m^[[91mgo: finding github.com/json-iterator/go v1.1.5 ^[[0m^[[91mgo: finding gopkg.in/yaml.v2 v2.2.3 ^[[0m^[[91mgo: finding github.com/bramvdbogaerde/go-scp v0.0.0-20200119201711-987556b8bdd7 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e ^[[0m^[[91mgo: finding github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af ^[[0m^[[91mgo: finding github.com/google/uuid v1.1.1 ^[[0m^[[91mgo: finding github.com/stretchr/testify v1.2.2 ^[[0m^[[91mgo: finding google.golang.org/appengine v1.4.0 ^[[0m^[[91mgo: finding github.com/snowzach/rotatefilehook v0.0.0-20180327172521-2f64f265f58c ^[[0m^[[91mgo: finding github.com/kisielk/gotool v1.0.0 ^[[0m^[[91mgo: finding github.com/kr/pretty v0.1.0 ^[[0m^[[91mgo: finding gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 ^[[0m^[[91mgo: finding github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6 ^[[0m^[[91mgo: finding google.golang.org/api v0.20.0 ^[[0m^[[91mgo: finding github.com/xujiajun/utils v0.0.0-20190123093513-8bf096c4f53b ^[[0m^[[91mgo: finding github.com/valyala/fasttemplate v1.1.0 ^[[0m^[[91mgo: finding gopkg.in/ini.v1 v1.42.0 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 ^[[0m^[[91mgo: finding github.com/golang/protobuf v1.3.2 ^[[0m^[[91mgo: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 ^[[0m^[[91mgo: finding github.com/xujiajun/mmap-go v1.0.1 ^[[0m^[[91mgo: finding github.com/json-iterator/go v1.1.9 ^[[0m^[[91mgo: finding gopkg.in/yaml.v2 v2.2.5 ^[[0m^[[91mgo: finding github.com/davecgh/go-spew v1.1.1 ^[[0m^[[91mgo: finding go.etcd.io/bbolt v1.3.4 ^[[0m^[[91mgo: finding github.com/godbus/dbus/v5 v5.0.3 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/to v0.3.0 ^[[0m^[[91mgo: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20200122045848-3419fae592fc ^[[0m^[[91mgo: finding github.com/jonboulle/clockwork v0.1.0 ^[[0m^[[91mgo: finding github.com/prometheus/client_model v0.2.0 ^[[0m^[[91mgo: finding cloud.google.com/go v0.34.0 ^[[0m^[[91mgo: finding github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d ^[[0m^[[91mgo: finding github.com/prometheus/common v0.9.1 ^[[0m^[[91mgo: finding github.com/prometheus/procfs v0.0.8 ^[[0m^[[91mgo: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b ^[[0m^[[91mgo: finding google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c ^[[0m^[[91mgo: finding github.com/labstack/gommon v0.3.0 ^[[0m^[[91mgo: finding github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/azure/auth v0.4.2 ^[[0m^[[91mgo: finding github.com/Azure/azure-sdk-for-go v40.5.0+incompatible ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894 ^[[0m^[[91mgo: finding go.uber.org/zap v1.14.1 ^[[0m^[[91mgo: finding github.com/mitchellh/mapstructure v1.2.2 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20191002035440-2ec189313ef0 ^[[0m^[[91mgo: finding google.golang.org/grpc v1.24.0 ^[[0m^[[91mgo: error loading module requirements ^[[0m^[[91mchmod: cannot access 'aws-driver-v1.0.so': No such file or directory ^[[0m^[[91mmv: cannot stat './aws-driver-v1.0.so': No such file or directory ^[[0m============ build azure ... ============ ^[[91mgo: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000 ^[[0m^[[91mgo: finding github.com/davecgh/go-spew v1.1.0 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest v0.9.0 ^[[0m^[[91mgo: finding github.com/mattn/go-colorable v0.1.2 ^[[0m^[[91mgo: finding github.com/go-logfmt/logfmt v0.4.0 ^[[0m^[[91mgo: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58 ^[[0m^[[91mgo: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c ^[[0m^[[91mgo: finding github.com/valyala/fasttemplate v1.0.1 ^[[0m^[[91mgo: finding google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 ^[[0m^[[91mgo: finding github.com/google/go-cmp v0.3.0 ^[[0m^[[91mgo: finding go.uber.org/atomic v1.4.0 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135 ^[[0m^[[91mgo: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 ^[[0m^[[91mgo: finding github.com/pkg/errors v0.9.1 ^[[0m^[[91mgo: finding google.golang.org/grpc v1.27.0 ^[[0m^[[91mgo: finding github.com/dimchansky/utfbom v1.1.0 ^[[0m^[[91mgo: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 ^[[0m^[[91mgo: finding google.golang.org/grpc v1.19.0 ^[[0m^[[91mgo: finding github.com/go-kit/kit v0.9.0 ^[[0m^[[91mgo: finding go.uber.org/zap v1.10.0 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20200202094626-16171245cfb2 ^[[0m^[[91mgo: finding golang.org/x/text v0.3.2 ^[[0m^[[91mgo: finding github.com/hashicorp/golang-lru v0.5.1 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest v0.9.3 ^[[0m^[[91mgo: finding github.com/valyala/bytebufferpool v1.0.0 ^[[0m^[[91mgo: finding go.uber.org/atomic v1.6.0 ^[[0m^[[91mgo: finding golang.org/x/text v0.3.0 ^[[0m^[[91mgo: finding honnef.co/go/tools v0.0.1-2019.2.3 ^[[0m^[[91mgo: finding honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc ^[[0m^[[91mgo: finding github.com/gogo/protobuf v1.2.1 ^[[0m^[[91mgo: finding github.com/googleapis/gax-go/v2 v2.0.5 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/adal v0.8.1 ^[[0m^[[91mgo: finding github.com/mattn/go-isatty v0.0.9 ^[[0m^[[91mgo: finding go.opencensus.io v0.21.0 ^[[0m^[[91mgo: finding github.com/sirupsen/logrus v1.4.2 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c ^[[0m^[[91mgo: finding golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 ^[[0m^[[91mgo: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099 ^[[0m^[[91mgo: finding github.com/opentracing/opentracing-go v1.1.0 ^[[0m^[[91mgo: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4 ^[[0m^[[91mgo: finding google.golang.org/appengine v1.5.0 ^[[0m^[[91mgo: finding github.com/go-sql-driver/mysql v1.5.0 ^[[0m^[[91mgo: finding go.uber.org/multierr v1.5.0 ^[[0m^[[91mgo: finding go.uber.org/multierr v1.1.0 ^[[0m^[[91mgo: finding golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/azure/cli v0.3.1 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a ^[[0m^[[91mgo: finding golang.org/x/lint v0.0.0-20190930215403-16217165b5de ^[[0m^[[91mgo: finding golang.org/x/lint v0.0.0-20190409202823-959b441ac422 ^[[0m^[[91mgo: finding github.com/stretchr/objx v0.1.0 ^[[0m^[[91mgo: finding github.com/go-stack/stack v1.8.0 ^[[0m^[[91mgo: finding cloud.google.com/go v0.38.0 ^[[0m^[[91mgo: finding github.com/pkg/errors v0.8.1 ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b ^[[0m^[[91mgo: error loading module requirements ^[[0m^[[91mchmod: cannot access 'azure-driver-v1.0.so': No such file or directory ^[[0m^[[91mmv: cannot stat './azure-driver-v1.0.so': No such file or directory ^[[0m============ build cloudit ... ============ ^[[91mgo: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/tracing v0.5.0 ^[[0m^[[91mgo: finding github.com/golang/protobuf v1.2.0 ^[[0m^[[91mgo: finding github.com/BurntSushi/toml v0.3.1 ^[[0m^[[91mgo: finding github.com/google/renameio v0.1.0 ^[[0m^[[91mgo: finding github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d ^[[0m^[[91mgo: finding github.com/google/gofuzz v1.0.0 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5 go: finding golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/adal v0.8.0 ^[[0m^[[91mgo: finding golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e ^[[0m^[[91mgo: finding cloud.google.com/go v0.26.0 ^[[0m^[[91mgo: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/logger v0.1.0 ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a ^[[0m^[[91mgo: finding github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 ^[[0m^[[91mgo: finding github.com/client9/misspell v0.3.4 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd ^[[0m^[[91mgo: finding github.com/rogpeppe/go-internal v1.3.0 ^[[0m^[[91mgo: finding github.com/mitchellh/go-homedir v1.1.0 ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a ^[[0m^[[91mgo: finding github.com/envoyproxy/protoc-gen-validate v0.1.0 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/mocks v0.3.0 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20190620200207-3b0461eec859 ^[[0m^[[91mgo: finding github.com/golang/mock v1.1.1 ^[[0m^[[91mgo: finding github.com/jtolds/gls v4.20.0+incompatible ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/date v0.2.0 ^[[0m^[[91mgo: finding github.com/google/go-cmp v0.3.1 ^[[0m^[[91mgo: finding golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e ^[[0m^[[91mgo: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 ^[[0m^[[91mgo: finding github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473 ^[[0m^[[91mgo: finding go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee ^[[0m^[[91mgo: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522 ^[[0m^[[91mgo: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 ^[[0m^[[91mgo: finding google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19 ^[[0m^[[91mgo: finding google.golang.org/appengine v1.1.0 ^[[0m^[[91mgo: finding github.com/hashicorp/golang-lru v0.5.0 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/mocks v0.2.0 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20190328211700-ab21143f2384 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/adal v0.5.0 ^[[0m^[[91mgo: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible ^[[0m^[[91mgo: finding github.com/google/go-cmp v0.2.0 ^[[0m^[[91mgo: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 ^[[0m^[[91mgo: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8 ^[[0m^[[91mgo: error loading module requirements ^[[0m^[[91mchmod: cannot access 'cloudit-driver-v1.0.so': No such file or directory ^[[0m^[[91mmv: cannot stat './cloudit-driver-v1.0.so': No such file or directory ^[[0m============ build gcp ... ============ ^[[91mgo: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000 ^[[0m^[[91mgo: finding github.com/googleapis/gax-go/v2 v2.0.4 ^[[0m^[[91mgo: finding github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 ^[[0m^[[91mgo: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c ^[[0m^[[91mgo: finding golang.org/x/time v0.0.0-20181108054448-85acf8d2951c ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 ^[[0m^[[91mgo: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20190312170243-e65039ee4138 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563 ^[[0m^[[91mgo: finding golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 ^[[0m^[[91mgo: finding github.com/golang/mock v1.2.0 ^[[0m^[[91mgo: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223 ^[[0m^[[91mgo: finding github.com/julienschmidt/httprouter v1.2.0 ^[[0m^[[91mgo: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 go: finding golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c ^[[0m^[[91mgo: finding github.com/prometheus/client_golang v1.0.0 ^[[0m^[[91mgo: finding gopkg.in/errgo.v2 v2.1.0 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225 ^[[0m^[[91mgo: finding github.com/google/martian v2.1.0+incompatible ^[[0m^[[91mgo: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd ^[[0m^[[91mgo: finding github.com/stretchr/objx v0.1.1 ^[[0m^[[91mgo: finding google.golang.org/api v0.4.0 ^[[0m^[[91mgo: finding github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4 ^[[0m^[[91mgo: finding github.com/matttproud/golang_protobuf_extensions v1.0.1 ^[[0m^[[91mgo: finding gopkg.in/yaml.v2 v2.2.4 ^[[0m^[[91mgo: finding golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f ^[[0m^[[91mgo: finding github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57 ^[[0m^[[91mgo: finding golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421 ^[[0m^[[91mgo: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6 ^[[0m^[[91mgo: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f ^[[0m^[[91mgo: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20190613194153-d28f0bde5980 ^[[0m^[[91mgo: finding github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 ^[[0m^[[91mgo: finding google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7 ^[[0m^[[91mgo: finding honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a ^[[0m^[[91mgo: error loading module requirements ^[[0m^[[91mchmod: cannot access 'gcp-driver-v1.0.so': No such file or directory ^[[0m^[[91mmv: cannot stat './gcp-driver-v1.0.so': No such file or directory ^[[0m============ build openstack ... ============ ^[[91mgo: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/date v0.1.0 ^[[0m^[[91mgo: finding github.com/prometheus/common v0.4.1 ^[[0m^[[91mgo: finding github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 ^[[0m^[[91mgo: finding github.com/beorn7/perks v1.0.0 ^[[0m^[[91mgo: finding github.com/kr/text v0.1.0 ^[[0m^[[91mgo: finding github.com/kisielk/errcheck v1.1.0 ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20181221143128-b4a75ba826a6 ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5 ^[[0m^[[91mgo: finding golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529 ^[[0m^[[91mgo: finding github.com/golang/protobuf v1.3.1 ^[[0m^[[91mgo: finding github.com/json-iterator/go v1.1.6 ^[[0m^[[91mgo: finding github.com/mattn/go-isatty v0.0.8 ^[[0m^[[91mgo: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 ^[[0m^[[91mgo: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 ^[[0m^[[91mgo: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 ^[[0m^[[91mgo: finding gopkg.in/yaml.v2 v2.2.2 ^[[0m^[[91mgo: finding github.com/prometheus/procfs v0.0.2 ^[[0m^[[91mgo: finding github.com/Azure/go-autorest/autorest/mocks v0.1.0 ^[[0m^[[91mgo: error loading module requirements ^[[0m^[[91mchmod: cannot access 'openstack-driver-v1.0.so': No such file or directory ^[[0m^[[91mmv: cannot stat './openstack-driver-v1.0.so': No such file or directory ^[[0m============ build alibaba ... ============ ^[[91mgo: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000 ^[[0m^[[91mgo: finding github.com/go-kit/kit v0.8.0 ^[[0m^[[91mgo: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 ^[[0m^[[91mgo: finding github.com/sirupsen/logrus v1.2.0 ^[[0m^[[91mgo: finding github.com/census-instrumentation/opencensus-proto v0.2.1 ^[[0m^[[91mgo: finding github.com/kr/pty v1.1.1 ^[[0m^[[91mgo: finding github.com/go-logfmt/logfmt v0.3.0 ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 ^[[0m^[[91mgo: finding google.golang.org/grpc v1.23.0 ^[[0m^[[91mgo: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635 ^[[0m^[[91mgo: finding github.com/prometheus/client_golang v0.9.1 ^[[0m^[[91mgo: finding github.com/pkg/errors v0.8.0 ^[[0m^[[91mgo: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 ^[[0m^[[91mgo: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d ^[[0m^[[91mgo: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf ^[[0m^[[91mgo: finding github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 ^[[0m^[[91mgo: finding github.com/gogo/protobuf v1.1.1 ^[[0m^[[91mgo: finding gopkg.in/yaml.v2 v2.2.1 ^[[0m^[[91mgo: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc ^[[0m^[[91mgo: finding golang.org/x/net v0.0.0-20181114220301-adae6a3d119a ^[[0m^[[91mgo: error loading module requirements ^[[0m^[[91mchmod: cannot access 'alibaba-driver-v1.0.so': No such file or directory ^[[0m^[[91mmv: cannot stat './alibaba-driver-v1.0.so': No such file or directory ^[[0mRemoving intermediate container e85ea3ae663b ---> 6df6aceb4ed8 Step 6/20 : WORKDIR api-runtime/rest-runtime ---> Running in 712958638b1c Removing intermediate container 712958638b1c ---> 39b4a7609b93 Step 7/20 : RUN GOOS=linux go build -tags cb-spider -o cb-spider -v ---> Running in ac7258e454f2 ^[[91mgo: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000 ^[[0m^[[91mFetching https://golang.org/x/sys?go-get=1 Fetching https://golang.org/x/crypto?go-get=1 ^[[0m^[[91mParsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200) ^[[0m^[[91mget "golang.org/x/crypto": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto?go-get=1 ^[[0m^[[91mgo: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 ^[[0m^[[91mParsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200) ^[[0m^[[91mget "golang.org/x/sys": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys?go-get=1 ^[[0m^[[91mgo: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 ^[[0m^[[91mgo: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 go: error loading module requirements ```