cloud-barista / cb-spider

CB-Spider offers a unified view and interface for multi-cloud management.
https://github.com/cloud-barista/cb-spider/wiki
Apache License 2.0
31 stars 47 forks source link

현재 Dockerfile 로 docker build 실패하는 문제 #171

Closed jihoon-seo closed 4 years ago

jihoon-seo commented 4 years ago

@powerkimhub


docker build --tag cloudbaristahub/cb-spider:v0.1.2-20200403 . 2>&1 > /tmp/spider-docker-build-error.txt

The command '/bin/sh -c GOOS=linux go build -tags cb-spider -o cb-spider -v' returned a non-zero code: 1

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 ```
powerkimhub commented 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
powerkimhub commented 4 years ago

@jihoon-seo

jihoon-seo commented 4 years ago

build tag 관련: 테스트를 위해, 기존의 cloudbaristaorg/cb-spider:v0.1.2-20200403 이미지를 덮어 쓰지 않도록 일부러 cloudbaristahub/cb-spider:v0.1.2-20200403 으로 적었습니다.


Docker Hub 의 Automated Builds 등의 기능을 활용하기 위해서는 호스트 머신에서의 빌드 뿐만 아니라 Dockerfile 을 이용한 빌드도 문제 없이 성공해야 합니다.


DockerfileENV GO111MODULE on 이라고 되어 있는데, 만약 이것을 ENV GO111MODULE off 로 바꾸려면 Dependency 충족을 위해 Dockerfilego get -u * 명령들을 많이 추가해야 합니다.


FYI: DockerfileENV GO111MODULE off 로만 바꾸고 Dependency 충족을 위한 go get -u * 명령들을 추가하지 않고 build 하면 다음과 같은 에러가 발생합니다.

펼치기 / 숨기기 ``` 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 off ---> Running in c26b1e653566 Removing intermediate container c26b1e653566 ---> 913a20567d2e Step 3/20 : ADD . /go/src/github.com/cloud-barista/cb-spider ---> 6321a115fbad Step 4/20 : WORKDIR /go/src/github.com/cloud-barista/cb-spider ---> Running in 2a6745970995 Removing intermediate container 2a6745970995 ---> 4b73a4284d4c Step 5/20 : RUN ./build_all_driver_lib.sh ---> Running in d5d0a39c7e52 ============ build aws ... ============ ^[[91mAwsDriver-lib.go:25:2: cannot find package "github.com/aws/aws-sdk-go/aws" in any of: /usr/local/go/src/github.com/aws/aws-sdk-go/aws (from $GOROOT) /go/src/github.com/aws/aws-sdk-go/aws (from $GOPATH) resources/CommonAwsFunc.go:23:2: cannot find package "github.com/aws/aws-sdk-go/aws/awserr" in any of: /usr/local/go/src/github.com/aws/aws-sdk-go/aws/awserr (from $GOROOT) /go/src/github.com/aws/aws-sdk-go/aws/awserr (from $GOPATH) AwsDriver-lib.go:32:2: cannot find package "github.com/aws/aws-sdk-go/aws/credentials" in any of: /usr/local/go/src/github.com/aws/aws-sdk-go/aws/credentials (from $GOROOT) /go/src/github.com/aws/aws-sdk-go/aws/credentials (from $GOPATH) AwsDriver-lib.go:26:2: cannot find package "github.com/aws/aws-sdk-go/aws/session" in any of: /usr/local/go/src/github.com/aws/aws-sdk-go/aws/session (from $GOROOT) /go/src/github.com/aws/aws-sdk-go/aws/session (from $GOPATH) AwsDriver-lib.go:27:2: cannot find package "github.com/aws/aws-sdk-go/service/ec2" in any of: /usr/local/go/src/github.com/aws/aws-sdk-go/service/ec2 (from $GOROOT) /go/src/github.com/aws/aws-sdk-go/service/ec2 (from $GOPATH) connect/AwsCloudConnection.go:14:2: cannot find package "github.com/cloud-barista/cb-log" in any of: /usr/local/go/src/github.com/cloud-barista/cb-log (from $GOROOT) /go/src/github.com/cloud-barista/cb-log (from $GOPATH) resources/CommonAwsFunc.go:26:2: cannot find package "github.com/davecgh/go-spew/spew" in any of: /usr/local/go/src/github.com/davecgh/go-spew/spew (from $GOROOT) /go/src/github.com/davecgh/go-spew/spew (from $GOPATH) resources/VMHandler.go:20:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT) /go/src/github.com/sirupsen/logrus (from $GOPATH) ^[[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 ... ============ ^[[91mAzureDriver-lib.go:15:2: cannot find package "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute" in any of: /usr/local/go/src/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute (from $GOROOT) /go/src/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute (from $GOPATH) AzureDriver-lib.go:16:2: cannot find package "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-04-01/network" in any of: /usr/local/go/src/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-04-01/network (from $GOROOT) /go/src/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2018-04-01/network (from $GOPATH) AzureDriver-lib.go:17:2: cannot find package "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2017-05-10/resources" in any of: /usr/local/go/src/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2017-05-10/resources (from $GOROOT) /go/src/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2017-05-10/resources (from $GOPATH) AzureDriver-lib.go:18:2: cannot find package "github.com/Azure/go-autorest/autorest/azure/auth" in any of: /usr/local/go/src/github.com/Azure/go-autorest/autorest/azure/auth (from $GOROOT) /go/src/github.com/Azure/go-autorest/autorest/azure/auth (from $GOPATH) AzureDriver-lib.go:19:2: cannot find package "github.com/Azure/go-autorest/autorest/to" in any of: /usr/local/go/src/github.com/Azure/go-autorest/autorest/to (from $GOROOT) /go/src/github.com/Azure/go-autorest/autorest/to (from $GOPATH) connect/Azure_CloudConnection.go:17:2: cannot find package "github.com/cloud-barista/cb-log" in any of: /usr/local/go/src/github.com/cloud-barista/cb-log (from $GOROOT) /go/src/github.com/cloud-barista/cb-log (from $GOPATH) resources/VMHandler.go:23:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT) /go/src/github.com/sirupsen/logrus (from $GOPATH) resources/KeyPairHandler.go:12:2: cannot find package "golang.org/x/crypto/ssh" in any of: /usr/local/go/src/golang.org/x/crypto/ssh (from $GOROOT) /go/src/golang.org/x/crypto/ssh (from $GOPATH) ^[[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 ... ============ ^[[91mClouditDriver-lib.go:5:2: cannot find package "github.com/cloud-barista/cb-log" in any of: /usr/local/go/src/github.com/cloud-barista/cb-log (from $GOROOT) /go/src/github.com/cloud-barista/cb-log (from $GOPATH) resources/VNicHandler.go:9:2: cannot find package "github.com/davecgh/go-spew/spew" in any of: /usr/local/go/src/github.com/davecgh/go-spew/spew (from $GOROOT) /go/src/github.com/davecgh/go-spew/spew (from $GOPATH) client/RestClient.go:8:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT) /go/src/github.com/sirupsen/logrus (from $GOPATH) ^[[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 ... ============ ^[[91mconnect/GCP_CloudConnection.go:16:2: cannot find package "github.com/cloud-barista/cb-log" in any of: /usr/local/go/src/github.com/cloud-barista/cb-log (from $GOROOT) /go/src/github.com/cloud-barista/cb-log (from $GOPATH) ^[[0m^[[91mresources/ImageHandler.go:23:2: cannot find package "github.com/davecgh/go-spew/spew" in any of: /usr/local/go/src/github.com/davecgh/go-spew/spew (from $GOROOT) /go/src/github.com/davecgh/go-spew/spew (from $GOPATH) resources/ImageHandler.go:24:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT) /go/src/github.com/sirupsen/logrus (from $GOPATH) resources/KeyPairHandler.go:28:2: cannot find package "golang.org/x/crypto/ssh" in any of: /usr/local/go/src/golang.org/x/crypto/ssh (from $GOROOT) /go/src/golang.org/x/crypto/ssh (from $GOPATH) GCPDriver-lib.go:27:2: cannot find package "golang.org/x/oauth2" in any of: /usr/local/go/src/golang.org/x/oauth2 (from $GOROOT) /go/src/golang.org/x/oauth2 (from $GOPATH) GCPDriver-lib.go:28:2: cannot find package "golang.org/x/oauth2/google" in any of: /usr/local/go/src/golang.org/x/oauth2/google (from $GOROOT) /go/src/golang.org/x/oauth2/google (from $GOPATH) resources/ImageHandler.go:25:2: cannot find package "google.golang.org/api/compute/v1" in any of: /usr/local/go/src/google.golang.org/api/compute/v1 (from $GOROOT) /go/src/google.golang.org/api/compute/v1 (from $GOPATH) ^[[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 ... ============ ^[[91mresources/VNetworkHandler.go:6:2: cannot find package "github.com/Azure/go-autorest/autorest/to" in any of: /usr/local/go/src/github.com/Azure/go-autorest/autorest/to (from $GOROOT) /go/src/github.com/Azure/go-autorest/autorest/to (from $GOPATH) OpenStackDriver-lib.go:14:2: cannot find package "github.com/cloud-barista/cb-log" in any of: /usr/local/go/src/github.com/cloud-barista/cb-log (from $GOROOT) /go/src/github.com/cloud-barista/cb-log (from $GOPATH) resources/RouterHandler.go:5:2: cannot find package "github.com/davecgh/go-spew/spew" in any of: /usr/local/go/src/github.com/davecgh/go-spew/spew (from $GOROOT) /go/src/github.com/davecgh/go-spew/spew (from $GOPATH) resources/CommonOpenStackFunc.go:6:2: cannot find package "github.com/rackspace/gophercloud" in any of: /usr/local/go/src/github.com/rackspace/gophercloud (from $GOROOT) /go/src/github.com/rackspace/gophercloud (from $GOPATH) OpenStackDriver-lib.go:19:2: cannot find package "github.com/rackspace/gophercloud/openstack" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack (from $GOPATH) resources/PublicIPHandler.go:6:2: cannot find package "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/floatingip" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/floatingip (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/floatingip (from $GOPATH) resources/KeyPairHandler.go:6:2: cannot find package "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/keypairs" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/keypairs (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/keypairs (from $GOPATH) resources/SecurityHandler.go:8:2: cannot find package "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/secgroups" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/secgroups (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/secgroups (from $GOPATH) resources/VMHandler.go:21:2: cannot find package "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/startstop" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/startstop (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/startstop (from $GOPATH) resources/CommonOpenStackFunc.go:7:2: cannot find package "github.com/rackspace/gophercloud/openstack/compute/v2/flavors" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/compute/v2/flavors (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/compute/v2/flavors (from $GOPATH) resources/ImageHandler.go:9:2: cannot find package "github.com/rackspace/gophercloud/openstack/compute/v2/images" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/compute/v2/images (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/compute/v2/images (from $GOPATH) resources/VMHandler.go:22:2: cannot find package "github.com/rackspace/gophercloud/openstack/compute/v2/servers" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/compute/v2/servers (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/compute/v2/servers (from $GOPATH) resources/ImageHandler.go:10:2: cannot find package "github.com/rackspace/gophercloud/openstack/imageservice/v2/images" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/imageservice/v2/images (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/imageservice/v2/images (from $GOPATH) resources/RouterHandler.go:7:2: cannot find package "github.com/rackspace/gophercloud/openstack/networking/v2/extensions/layer3/routers" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/layer3/routers (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/layer3/routers (from $GOPATH) resources/SecurityHandler.go:9:2: cannot find package "github.com/rackspace/gophercloud/openstack/networking/v2/extensions/security/rules" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/security/rules (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/security/rules (from $GOPATH) resources/CommonOpenStackFunc.go:8:2: cannot find package "github.com/rackspace/gophercloud/openstack/networking/v2/networks" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/networking/v2/networks (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/networking/v2/networks (from $GOPATH) resources/VNicHandler.go:9:2: cannot find package "github.com/rackspace/gophercloud/openstack/networking/v2/ports" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/networking/v2/ports (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/networking/v2/ports (from $GOPATH) resources/VNetworkHandler.go:12:2: cannot find package "github.com/rackspace/gophercloud/openstack/networking/v2/subnets" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/openstack/networking/v2/subnets (from $GOROOT) /go/src/github.com/rackspace/gophercloud/openstack/networking/v2/subnets (from $GOPATH) resources/CommonOpenStackFunc.go:9:2: cannot find package "github.com/rackspace/gophercloud/pagination" in any of: /usr/local/go/src/github.com/rackspace/gophercloud/pagination (from $GOROOT) /go/src/github.com/rackspace/gophercloud/pagination (from $GOPATH) resources/VMHandler.go:24:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT) /go/src/github.com/sirupsen/logrus (from $GOPATH) ^[[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 ... ============ ^[[91mAlibabaDriver-lib.go:17:2: cannot find package "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" in any of: /usr/local/go/src/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials (from $GOROOT) /go/src/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials (from $GOPATH) resources/ImageHandler.go:16:2: cannot find package "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" in any of: /usr/local/go/src/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests (from $GOROOT) /go/src/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests (from $GOPATH) AlibabaDriver-lib.go:18:2: cannot find package "github.com/aliyun/alibaba-cloud-sdk-go/services/ecs" in any of: /usr/local/go/src/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs (from $GOROOT) /go/src/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs (from $GOPATH) AlibabaDriver-lib.go:19:2: cannot find package "github.com/aliyun/alibaba-cloud-sdk-go/services/vpc" in any of: /usr/local/go/src/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc (from $GOROOT) /go/src/github.com/aliyun/alibaba-cloud-sdk-go/services/vpc (from $GOPATH) connect/AlibabaCloudConnection.go:17:2: cannot find package "github.com/cloud-barista/cb-log" in any of: /usr/local/go/src/github.com/cloud-barista/cb-log (from $GOROOT) /go/src/github.com/cloud-barista/cb-log (from $GOPATH) resources/CommonAlibabaFunc.go:23:2: cannot find package "github.com/davecgh/go-spew/spew" in any of: /usr/local/go/src/github.com/davecgh/go-spew/spew (from $GOROOT) /go/src/github.com/davecgh/go-spew/spew (from $GOPATH) resources/VMHandler.go:15:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT) /go/src/github.com/sirupsen/logrus (from $GOPATH) ^[[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 d5d0a39c7e52 ---> 978e5dafd78a Step 6/20 : WORKDIR api-runtime/rest-runtime ---> Running in 9861b5b28135 Removing intermediate container 9861b5b28135 ---> b1728cd4a30c Step 7/20 : RUN GOOS=linux go build -tags cb-spider -o cb-spider -v ---> Running in 616c7b804853 ^[[91m../../cloud-control-manager/vm-ssh/sshrun.go:17:2: cannot find package "github.com/bramvdbogaerde/go-scp" in any of: /usr/local/go/src/github.com/bramvdbogaerde/go-scp (from $GOROOT) /go/src/github.com/bramvdbogaerde/go-scp (from $GOPATH) ../../cloud-control-manager/vm-ssh/sshrun.go:18:2: cannot find package "github.com/bramvdbogaerde/go-scp/auth" in any of: /usr/local/go/src/github.com/bramvdbogaerde/go-scp/auth (from $GOROOT) /go/src/github.com/bramvdbogaerde/go-scp/auth (from $GOPATH) ../../cloud-info-manager/connection-config-info-manager/InfoStore.go:16:2: cannot find package "github.com/cloud-barista/cb-store" in any of: /usr/local/go/src/github.com/cloud-barista/cb-store (from $GOROOT) /go/src/github.com/cloud-barista/cb-store (from $GOPATH) ../../cloud-info-manager/connection-config-info-manager/ConnectionConfigInfoManager.go:14:2: cannot find package "github.com/cloud-barista/cb-store/config" in any of: /usr/local/go/src/github.com/cloud-barista/cb-store/config (from $GOROOT) /go/src/github.com/cloud-barista/cb-store/config (from $GOPATH) ../../cloud-info-manager/connection-config-info-manager/InfoStore.go:17:2: cannot find package "github.com/cloud-barista/cb-store/interfaces" in any of: /usr/local/go/src/github.com/cloud-barista/cb-store/interfaces (from $GOROOT) /go/src/github.com/cloud-barista/cb-store/interfaces (from $GOPATH) ../../cloud-info-manager/connection-config-info-manager/InfoStore.go:15:2: cannot find package "github.com/cloud-barista/cb-store/utils" in any of: /usr/local/go/src/github.com/cloud-barista/cb-store/utils (from $GOROOT) /go/src/github.com/cloud-barista/cb-store/utils (from $GOPATH) CBSpiderRuntime.go:18:2: cannot find package "github.com/labstack/echo" in any of: /usr/local/go/src/github.com/labstack/echo (from $GOROOT) /go/src/github.com/labstack/echo (from $GOPATH) CBSpiderRuntime.go:19:2: cannot find package "github.com/labstack/echo/middleware" in any of: /usr/local/go/src/github.com/labstack/echo/middleware (from $GOROOT) /go/src/github.com/labstack/echo/middleware (from $GOPATH) ../../cloud-info-manager/connection-config-info-manager/ConnectionConfigInfoManager.go:15:2: cannot find package "github.com/sirupsen/logrus" in any of: /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT) /go/src/github.com/sirupsen/logrus (from $GOPATH) ../../cloud-control-manager/vm-ssh/sshrun.go:19:2: cannot find package "golang.org/x/crypto/ssh" in any of: /usr/local/go/src/golang.org/x/crypto/ssh (from $GOROOT) /go/src/golang.org/x/crypto/ssh (from $GOPATH) ../../cloud-info-manager/CloudOSList.go:7:2: cannot find package "gopkg.in/yaml.v3" in any of: /usr/local/go/src/gopkg.in/yaml.v3 (from $GOROOT) /go/src/gopkg.in/yaml.v3 (from $GOPATH) ^[[0m ```

FYI: 제가 2020-02-26 에 깨끗한 Ubuntu 18.04 환경에서 Spider 를 build 하면서 기록한 dependencies 는 다음과 같습니다. (업데이트가 필요할 수 있음 / container 이용하여 깨끗한 환경을 만들 수도 있음) 만약 DockerfileENV GO111MODULE off 로 바꾸려면 아래의 go get -u * 라인들을 Dockerfile 에 넣어야 한다는 뜻인데, 이것은 바람직해 보이지 않고, Go Modules 문제점을 해결하여 DockerfileENV GO111MODULE on 으로 유지하고 다음의 go get -u * 라인들을 Dockerfile 에 넣지 않는 것이 좋아 보입니다.

펼치기 / 숨기기 ``` go get -u -v github.com/bramvdbogaerde/go-scp go get -u -v github.com/cloud-barista/cb-store go get -u -v github.com/labstack/echo go get -u -v github.com/aws/aws-sdk-go go get -u -v github.com/cloud-barista/cb-log go get -u -v github.com/davecgh/go-spew go get -u -v github.com/sirupsen/logrus go get -u -v github.com/Azure/azure-sdk-for-go go get -u -v github.com/Azure/go-autorest go get -u -v golang.org/x/crypto/ssh go get -u -v github.com/dgrijalva/jwt-go go get -u -v github.com/dimchansky/utfbom go get -u -v github.com/mitchellh/go-homedir go get -u -v golang.org/x/oauth2 go get -u -v google.golang.org/api/compute go get -u -v cloud.google.com/go/compute/metadata go get -u -v github.com/googleapis/gax-go go get -u -v go.opencensus.io/plugin/ochttp go get -u -v go.opencensus.io/trace go get -u -v google.golang.org/grpc go get -u -v github.com/rackspace/gophercloud ```

FYI: Docker Hub 의 Automated Builds 기능을 사용했을 때의 에러 메시지도 첨부합니다.

펼치기 / 숨기기 ``` Cloning into '.'... Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts. Reset branch 'master' Your branch is up-to-date with 'origin/master'. KernelVersion: 4.4.0-1060-aws Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}] Arch: amd64 BuildTime: 2018-08-30T18:42:30.000000000+00:00 ApiVersion: 1.37 Platform: {u'Name': u''} Version: 18.03.1-ee-3 MinAPIVersion: 1.12 GitCommit: b9a5c95 Os: linux GoVersion: go1.10.2 Starting build of index.docker.io/cloudbaristaorg/cb-spider:latest... Step 1/20 : FROM golang:1.12.4 AS builder ---> b860ab44e93e Step 2/20 : ENV GO111MODULE on ---> Running in d3a5f31a2b3a Removing intermediate container d3a5f31a2b3a ---> d682c46e0aa8 Step 3/20 : ADD . /go/src/github.com/cloud-barista/cb-spider ---> 1dca745beaa4 Step 4/20 : WORKDIR /go/src/github.com/cloud-barista/cb-spider Removing intermediate container 42098d5e9840 ---> d3d11c02c1d0 Step 5/20 : RUN ./build_all_driver_lib.sh ---> Running in 7765b415cce4 ============ build aws ... ============ go: finding github.com/rackspace/gophercloud v1.0.0  go: finding github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f  go: finding github.com/soheilhy/cmux v0.1.4  go: finding github.com/grpc-ecosystem/grpc-gateway v1.14.3  go: finding github.com/modern-go/reflect2 v1.0.1  go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0  go: finding go.etcd.io/etcd v3.3.19+incompatible  go: finding sigs.k8s.io/yaml v1.2.0  go: finding google.golang.org/api v0.20.0  go: finding gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c  go: finding github.com/davecgh/go-spew v1.1.1  go: finding github.com/coreos/etcd v3.3.19+incompatible  go: finding go.etcd.io/bbolt v1.3.4  go: finding github.com/aliyun/alibaba-cloud-sdk-go v1.61.78  go: finding github.com/ghodss/yaml v1.0.0  go: finding github.com/coreos/go-systemd/v22 v22.0.0  go: finding golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59  go: finding github.com/sirupsen/logrus v1.5.0  go: finding github.com/gogo/protobuf v1.3.1  go: finding gopkg.in/yaml.v2 v2.2.8  go: finding github.com/Azure/go-autorest/autorest/to v0.3.0  go: finding github.com/labstack/gommon v0.3.0  go: finding go.uber.org/zap v1.14.1  go: finding github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6  go: finding github.com/google/uuid v1.1.1  go: finding github.com/gorilla/websocket v1.4.2  go: finding gopkg.in/natefinch/lumberjack.v2 v2.0.0  go: finding github.com/kisielk/gotool v1.0.0  go: finding github.com/mattn/go-isatty v0.0.9  go: finding github.com/kisielk/errcheck v1.2.0  go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be  go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.2.0  go: finding github.com/prometheus/client_golang v1.5.1  go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d  go: finding github.com/Azure/go-autorest/autorest v0.9.0  go: finding github.com/xujiajun/nutsdb v0.5.0  go: finding github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a  go: finding github.com/Azure/azure-sdk-for-go v40.5.0+incompatible  go: finding github.com/aws/aws-sdk-go v1.29.31  go: finding golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d  go: finding github.com/valyala/fasttemplate v1.1.0  go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405  go: finding github.com/googleapis/gax-go/v2 v2.0.5  go: finding github.com/stretchr/testify v1.2.2  go: finding golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563  go: finding google.golang.org/grpc v1.19.0  go: finding golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a  go: finding github.com/mattn/go-colorable v0.1.2  go: finding golang.org/x/net v0.0.0-20191002035440-2ec189313ef0  go: finding github.com/valyala/fasttemplate v1.0.1  go: finding github.com/golang/protobuf v1.3.2  go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a  go: finding github.com/go-stack/stack v1.8.0  go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3  go: finding github.com/labstack/echo v3.3.10+incompatible  go: finding github.com/cloud-barista/cb-log v0.0.0-20200117022531-82070963ca10  go: finding golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b  go: finding github.com/rogpeppe/fastuuid v1.2.0  go: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58  go: finding github.com/golang/mock v1.1.1  go: finding github.com/gogo/protobuf v1.2.1  go: finding github.com/xujiajun/gorouter v1.2.0  go: finding honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc  go: finding golang.org/x/sys v0.0.0-20200122134326-e047566fdf82  go: finding github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e  go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1  go: finding github.com/go-logfmt/logfmt v0.4.0  go: finding github.com/kr/pretty v0.1.0  go: finding github.com/valyala/bytebufferpool v1.0.0  go: finding github.com/cloud-barista/cb-store v0.0.0-20200324092155-64d4df337031  go: finding github.com/racker/perigee v0.1.0  go: finding cloud.google.com/go v0.26.0  go: finding golang.org/x/text v0.3.2  go: finding golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45  go: finding github.com/bramvdbogaerde/go-scp v0.0.0-20200119201711-987556b8bdd7  go: finding github.com/mitchellh/mapstructure v1.2.2  go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1  go: finding github.com/Azure/go-autorest/autorest/azure/auth v0.4.2  go: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd  go: finding github.com/Azure/go-autorest/logger v0.1.0  go: finding github.com/cespare/xxhash/v2 v2.1.1  go: finding golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3  go: finding github.com/kr/text v0.1.0  go: finding github.com/go-sql-driver/mysql v1.5.0  go: finding github.com/Azure/go-autorest/autorest/mocks v0.2.0  go: finding github.com/BurntSushi/toml v0.3.1  go: finding go.opencensus.io v0.21.0  go: finding gopkg.in/yaml.v2 v2.2.5  go: finding golang.org/x/tools v0.0.0-20190328211700-ab21143f2384  go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099  go: finding go.uber.org/atomic v1.4.0  go: finding google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c  go: finding golang.org/x/net v0.0.0-20200202094626-16171245cfb2  go: finding github.com/json-iterator/go v1.1.5  go: finding google.golang.org/appengine v1.5.0  go: finding go.uber.org/multierr v1.1.0  go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894  go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8  go: finding github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af  go: finding github.com/Azure/go-autorest/autorest/adal v0.8.1  go: finding go.uber.org/multierr v1.5.0  go: finding github.com/google/go-cmp v0.3.0  go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515  go: finding github.com/sirupsen/logrus v1.4.2  go: finding github.com/mattn/go-isatty v0.0.8  go: finding github.com/xujiajun/mmap-go v1.0.1  go: finding github.com/prometheus/client_model v0.2.0  go: finding github.com/Azure/go-autorest/autorest/validation v0.2.0  go: finding github.com/Azure/go-autorest/autorest/adal v0.5.0  go: finding golang.org/x/lint v0.0.0-20190930215403-16217165b5de  go: finding github.com/Azure/go-autorest/autorest v0.9.3  go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b  go: finding github.com/go-kit/kit v0.9.0  go: finding github.com/Azure/go-autorest/autorest/azure/cli v0.3.1  go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2  go: finding gopkg.in/yaml.v2 v2.2.3  go: finding github.com/Azure/go-autorest/tracing v0.5.0  go: finding github.com/client9/misspell v0.3.4  go: finding github.com/coreos/go-semver v0.3.0  go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225  go: finding cloud.google.com/go v0.38.0  go: finding github.com/prometheus/common v0.9.1  go: finding github.com/Azure/go-autorest/autorest/mocks v0.1.0  go: finding github.com/opentracing/opentracing-go v1.1.0  go: finding github.com/dimchansky/utfbom v1.1.0  go: finding github.com/Azure/go-autorest/autorest/mocks v0.3.0  go: finding google.golang.org/grpc v1.24.0  go: finding go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee  go: finding github.com/snowzach/rotatefilehook v0.0.0-20180327172521-2f64f265f58c  go: finding golang.org/x/text v0.3.0  go: finding github.com/kr/pty v1.1.1  go: finding google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19  go: finding github.com/mitchellh/go-homedir v1.1.0  go: finding github.com/stretchr/objx v0.1.1  go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223  go: finding golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413  go: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000  go: finding github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2  go: finding google.golang.org/grpc v1.27.0  go: finding github.com/godbus/dbus/v5 v5.0.3  go: finding github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d  go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1  go: finding go.uber.org/atomic v1.6.0  go: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6  go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6  go: finding google.golang.org/api v0.4.0  go: finding golang.org/x/time v0.0.0-20181108054448-85acf8d2951c  go: finding github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57  go: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000 go: finding github.com/googleapis/gax-go/v2 v2.0.4  go: finding golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f  go: finding github.com/google/go-cmp v0.2.0  go: finding github.com/Azure/go-autorest/autorest/date v0.2.0  go: finding gopkg.in/ini.v1 v1.42.0  go: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2  go: finding github.com/julienschmidt/httprouter v1.2.0  go: finding golang.org/x/net v0.0.0-20190613194153-d28f0bde5980  go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f  go: finding github.com/beorn7/perks v1.0.1  go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible  go: finding golang.org/x/tools v0.0.0-20190311212946-11955173bddd  go: finding github.com/kisielk/errcheck v1.1.0  go: finding github.com/jonboulle/clockwork v0.1.0  go: finding github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473  go: finding github.com/Azure/go-autorest/autorest/adal v0.8.0  go: finding github.com/jtolds/gls v4.20.0+incompatible  go: finding github.com/prometheus/client_golang v1.0.0  go: finding golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135  go: finding github.com/bwmarrin/snowflake v0.3.0  go: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20200122045848-3419fae592fc  go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4  go: finding github.com/pkg/errors v0.8.1  go: finding github.com/prometheus/procfs v0.0.8  go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4  go: finding golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3  go: finding github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 go: finding github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4  go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f  go: finding github.com/envoyproxy/protoc-gen-validate v0.1.0  go: finding github.com/google/go-cmp v0.4.0  go: finding google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7  go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e  go: finding golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421  go: finding golang.org/x/lint v0.0.0-20190409202823-959b441ac422  go: finding github.com/golang/protobuf v1.2.0  go: finding github.com/xujiajun/utils v0.0.0-20190123093513-8bf096c4f53b  go: finding golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c  go: finding golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c  go: finding golang.org/x/sys v0.0.0-20181221143128-b4a75ba826a6  go: finding github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742  go: finding github.com/google/martian v2.1.0+incompatible  go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e  go: finding go.uber.org/zap v1.10.0  go: finding github.com/json-iterator/go v1.1.9  go: finding github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d  go: finding google.golang.org/appengine v1.1.0  go: finding gopkg.in/yaml.v2 v2.2.4  go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d  go: finding github.com/pmezard/go-difflib v1.0.0  go: finding github.com/golang/mock v1.2.0  go: finding honnef.co/go/tools v0.0.1-2019.2.3  go: finding github.com/hashicorp/golang-lru v0.5.1  go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a  go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c  go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b  go: finding google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 go: finding golang.org/x/tools v0.0.0-20190312170243-e65039ee4138  go: finding gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15  go: finding google.golang.org/appengine v1.4.0  go: finding github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751  go: finding github.com/hashicorp/golang-lru v0.5.0  go: finding golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5  go: finding golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223  go: finding github.com/stretchr/testify v1.4.0  go: finding golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5  go: finding github.com/Azure/go-autorest/autorest/date v0.1.0  go: finding cloud.google.com/go v0.34.0  go: finding honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a  go: finding github.com/stretchr/testify v1.3.0  go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522  go: finding github.com/pkg/errors v0.9.1  go: error loading module requirements chmod: cannot access 'aws-driver-v1.0.so': No such file or directory mv: cannot stat './aws-driver-v1.0.so': No such file or directory  ============ build azure ... ============ go: finding github.com/davecgh/go-spew v1.1.0 go: finding github.com/stretchr/objx v0.1.0  go: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000  go: finding github.com/rogpeppe/go-internal v1.3.0  go: finding github.com/google/renameio v0.1.0  go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c  go: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961  go: finding golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e  go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd  go: finding golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543  go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 go: finding github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421  go: finding golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac  go: finding golang.org/x/net v0.0.0-20190620200207-3b0461eec859  go: finding golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e  go: finding github.com/google/gofuzz v1.0.0  go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635  go: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000  go: finding google.golang.org/grpc v1.23.0  go: finding github.com/google/go-cmp v0.3.1  go: finding github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4  go: finding github.com/census-instrumentation/opencensus-proto v0.2.1  go: finding gopkg.in/yaml.v2 v2.2.2  go: error loading module requirements chmod: cannot access 'azure-driver-v1.0.so': No such file or directory mv: cannot stat './azure-driver-v1.0.so': No such file or directory  Removing intermediate container 7765b415cce4 ---> 1e3300018e53 Step 6/20 : WORKDIR api-runtime/rest-runtime Removing intermediate container 13abd0309c35 ---> 72c035950695 Step 7/20 : RUN GOOS=linux go build -tags cb-spider -o cb-spider -v ---> Running in 2e2032d462ac go: finding github.com/coreos/bbolt v0.0.0-00010101000000-000000000000  Fetching https://golang.org/x/crypto?go-get=1 Fetching https://gopkg.in/errgo.v2?go-get=1  go: finding github.com/golang/protobuf v1.3.1 go: finding github.com/beorn7/perks v1.0.0 Fetching https://golang.org/x/sys?go-get=1 go: finding github.com/json-iterator/go v1.1.6  go: finding github.com/prometheus/common v0.4.1  go: finding github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90  go: finding github.com/prometheus/procfs v0.0.2  Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200) get "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 go: finding golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529  Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200) get "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 go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5  Parsing meta tags from https://gopkg.in/errgo.v2?go-get=1 (status code 200) get "gopkg.in/errgo.v2": found meta tag get.metaImport{Prefix:"gopkg.in/errgo.v2", VCS:"git", RepoRoot:"https://gopkg.in/errgo.v2"} at https://gopkg.in/errgo.v2?go-get=1  go: finding gopkg.in/errgo.v2 v2.1.0  go: github.com/coreos/bbolt@v0.0.0-00010101000000-000000000000: unknown revision 000000000000  go: error loading module requirements  Removing intermediate container 2e2032d462ac The command '/bin/sh -c GOOS=linux go build -tags cb-spider -o cb-spider -v' returned a non-zero code: 1 ```