Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose 失败 #312

Closed
hidakafinzelz opened this issue Oct 31, 2023 · 2 comments
Closed

Docker compose 失败 #312

hidakafinzelz opened this issue Oct 31, 2023 · 2 comments

Comments

@hidakafinzelz
Copy link

hidakafinzelz commented Oct 31, 2023

ferry] (master) # docker compose up
[+] Running 0/1
⠿ ferry Error 34.6s
[+] Building 95.4s (22/37)
=> [internal] load build definition from Dockerfile 2.4s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 2.9s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 16.5s
=> [internal] load metadata for docker.io/library/node:14.18-alpine 16.2s
=> [internal] load metadata for docker.io/library/golang:1.18 17.1s
=> [auth] library/golang:pull token for registry-1.docker.io 0.0s
=> [build 1/5] FROM docker.io/library/golang:1.18@sha256:50c889275d26f816b5314fc99f55425fa76b18 0.0s
=> [prod 1/14] FROM docker.io/library/alpine@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc9843 0.0s
=> [internal] load build context 2.1s
=> => transferring context: 47.32kB 0.0s
=> [web 1/11] FROM docker.io/library/node:14.18-alpine@sha256:1e7481a9a977d8e4160a73ed6a0e7267 0.0s
=> CACHED [prod 2/14] RUN echo -e "http://mirrors.aliyun.com/alpine/v3.11/main\nhttp://mirrors 0.0s
=> CACHED [prod 3/14] WORKDIR /opt/workflow/ferry 0.0s
=> CACHED [web 2/11] WORKDIR /opt/workflow 0.0s
=> CACHED [web 3/11] RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc 0.0s
=> CACHED [web 4/11] RUN apk update && apk add --no-cache git && rm -rf /var/cache/apk 0.0s
=> CACHED [web 5/11] RUN git clone https://gitee.com/yllan/ferry_web.git 0.0s
=> CACHED [web 6/11] WORKDIR ferry_web 0.0s
=> CANCELED [web 7/11] RUN npm install -g cnpm --registry=https://registry.npmmirror.com 75.2s
=> CACHED [build 2/5] WORKDIR /opt/workflow/ferry 0.0s
=> [build 3/5] COPY . . 4.2s
=> [build 4/5] RUN go mod download 52.6s
=> ERROR [build 5/5] RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o fe 10.2s

[build 5/5] RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ferry .:
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/credentials/credentials.go:31:2: missing go.sum entry for module providing package github.com/golang/protobuf/proto (imported by cloud.google.com/go/pubsub); to add:
#0 5.780 go get cloud.google.com/go/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/googleapis/api/annotations/annotations.pb.go:27:2: missing go.sum entry for module providing package github.com/golang/protobuf/protoc-gen-go/descriptor (imported by google.golang.org/genproto/googleapis/api/annotations); to add:
#0 5.780 go get google.golang.org/genproto/googleapis/api/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/internal/binarylog/method_logger.go:28:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes (imported by cloud.google.com/go/pubsub); to add:
#0 5.780 go get cloud.google.com/go/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/googleapis/rpc/status/status.pb.go:28:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes/any (imported by google.golang.org/genproto/googleapis/rpc/status); to add:
#0 5.780 go get google.golang.org/genproto/googleapis/rpc/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/binarylog/grpc_binarylog_v1/binarylog.pb.go:9:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes/duration (imported by cloud.google.com/go/pubsub); to add:
#0 5.780 go get cloud.google.com/go/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/googleapis/pubsub/v1/pubsub.pb.go:30:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes/empty (imported by google.golang.org/genproto/googleapis/pubsub/v1); to add:
#0 5.780 go get google.golang.org/genproto/googleapis/pubsub/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/binarylog/grpc_binarylog_v1/binarylog.pb.go:10:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes/timestamp (imported by google.golang.org/genproto/googleapis/pubsub/v1); to add:
#0 5.780 go get google.golang.org/genproto/googleapis/pubsub/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/balancer/grpclb/grpclb_remote_balancer.go:31:2: missing go.sum entry for module providing package github.com/google/go-cmp/cmp (imported by google.golang.org/grpc/balancer/grpclb); to add:
#0 5.780 go get google.golang.org/grpc/balancer/[email protected]
#0 5.780 /go/pkg/mod/cloud.google.com/go/[email protected]/subscription.go:32:2: missing go.sum entry for module providing package golang.org/x/sync/errgroup (imported by cloud.google.com/go/pubsub); to add:
#0 5.780 go get cloud.google.com/go/[email protected]
#0 5.780 /go/pkg/mod/google.golang.org/[email protected]/support/bundler/bundler.go:21:2: missing go.sum entry for module providing package golang.org/x/sync/semaphore (imported by cloud.google.com/go/pubsub); to add:
#0 5.780 go get cloud.google.com/go/[email protected]


failed to solve: executor failed running [/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ferry .]: exit code: 1

@czxin788
Copy link

我也遇到这个错误

@gimebreak
Copy link

gimebreak commented Apr 8, 2024

修改dockerfile 更换golang版本,需要更换成1.20以上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants