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

chore: Fix building docker image for docker-compose #889

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

sawadashota
Copy link
Contributor

Related issue(s)

Could not build docker image for docker-compose.yml

How to reproduce error

$ docker-compose build
[+] Building 33.3s (13/13) FINISHED
 => [internal] load build definition from Dockerfile-dc                                                                                                                                                                                        0.0s
 => => transferring dockerfile: 418B                                                                                                                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                              0.0s
 => => transferring context: 34B                                                                                                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/golang:1.16-alpine3.14                                                                                                                                                                      2.0s
 => [1/9] FROM docker.io/library/golang:1.16-alpine3.14@sha256:fdefd31550d3bf7616677d9a3bbee882f47e1a03bb87e8ef7ddf085299617ceb                                                                                                                0.0s
 => [internal] load build context                                                                                                                                                                                                              0.1s
 => => transferring context: 86.53kB                                                                                                                                                                                                           0.1s
 => CACHED [2/9] RUN addgroup -S ory;     adduser -S ory -G ory -D -H -s /bin/nologin                                                                                                                                                          0.0s
 => CACHED [3/9] RUN apk add -U --no-cache ca-certificates                                                                                                                                                                                     0.0s
 => [4/9] ADD . /app                                                                                                                                                                                                                           0.2s
 => [5/9] WORKDIR /app                                                                                                                                                                                                                         0.0s
 => [6/9] RUN go get -u github.com/gobuffalo/packr/v2/packr2                                                                                                                                                                                  10.9s
 => [7/9] RUN packr2                                                                                                                                                                                                                           0.5s
 => [8/9] RUN go mod download                                                                                                                                                                                                                 18.7s
 => ERROR [9/9] RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build                                                                                                                                                                             0.9s
------
 > [9/9] RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build:
#13 0.839 /go/pkg/mod/[email protected]/blob/gcsblob/gcsblob.go:72:2: missing go.sum entry for module providing package cloud.google.com/go/compute/metadata (imported by gocloud.dev/blob/gcsblob); to add:
#13 0.839 	go get gocloud.dev/blob/[email protected]
#13 0.839 /go/pkg/mod/[email protected]/blob/gcsblob/iam.go:25:2: missing go.sum entry for module providing package cloud.google.com/go/iam/credentials/apiv1 (imported by gocloud.dev/blob/gcsblob); to add:
#13 0.839 	go get gocloud.dev/blob/[email protected]
#13 0.839 /go/pkg/mod/[email protected]/blob/gcsblob/gcsblob.go:73:2: missing go.sum entry needed to verify package cloud.google.com/go/storage (imported by gocloud.dev/blob/gcsblob) is provided by exactly one module; to add:
#13 0.839 	go get gocloud.dev/blob/[email protected]
#13 0.839 /go/pkg/mod/github.com/prometheus/[email protected]/prometheus/desc.go:22:2: missing go.sum entry for module providing package github.com/cespare/xxhash/v2 (imported by github.com/prometheus/client_golang/prometheus); to add:
#13 0.839 	go get github.com/prometheus/client_golang/[email protected]
#13 0.839 /go/pkg/mod/github.com/ory/[email protected]/viper.go:39:2: missing go.sum entry for module providing package github.com/fsnotify/fsnotify (imported by github.com/ory/x/viperx); to add:
#13 0.839 	go get github.com/ory/x/[email protected]
#13 0.839 /go/pkg/mod/github.com/prometheus/[email protected]/prometheus/desc.go:23:2: missing go.sum entry for module providing package github.com/golang/protobuf/proto (imported by github.com/prometheus/client_golang/prometheus); to add:
#13 0.839 	go get github.com/prometheus/client_golang/[email protected]
#13 0.839 /go/pkg/mod/github.com/prometheus/[email protected]/prometheus/value.go:23:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes (imported by github.com/prometheus/client_golang/prometheus); to add:
#13 0.839 	go get github.com/prometheus/client_golang/[email protected]
#13 0.839 /go/pkg/mod/github.com/prometheus/[email protected]/go/metrics.pb.go:9:2: missing go.sum entry for module providing package github.com/golang/protobuf/ptypes/timestamp (imported by github.com/prometheus/client_model/go); to add:
#13 0.839 	go get github.com/prometheus/client_model/[email protected]
#13 0.839 /go/pkg/mod/github.com/pborman/[email protected]/marshal.go:11:2: missing go.sum entry for module providing package github.com/google/uuid (imported by github.com/ory/x/jwksx); to add:
#13 0.839 	go get github.com/ory/x/[email protected]
#13 0.839 /go/pkg/mod/[email protected]/blob/gcsblob/iam.go:26:2: missing go.sum entry for module providing package github.com/googleapis/gax-go/v2 (imported by gocloud.dev/blob/gcsblob); to add:
#13 0.839 	go get gocloud.dev/blob/[email protected]
#13 0.839 /go/pkg/mod/github.com/ory/[email protected]/viper.go:42:2: missing go.sum entry for module providing package github.com/magiconair/properties (imported by github.com/ory/viper); to add:
#13 0.839 	go get github.com/ory/[email protected]
#13 0.840 /go/pkg/mod/github.com/ory/[email protected]/viper.go:43:2: missing go.sum entry for module providing package github.com/mitchellh/mapstructure (imported by github.com/ory/viper); to add:
#13 0.840 	go get github.com/ory/[email protected]
#13 0.840 /go/pkg/mod/github.com/ory/[email protected]/viper.go:44:2: missing go.sum entry for module providing package github.com/pelletier/go-toml (imported by github.com/ory/viper); to add:
#13 0.840 	go get github.com/ory/[email protected]
#13 0.840 /go/pkg/mod/github.com/ory/[email protected]/util.go:21:2: missing go.sum entry for module providing package github.com/spf13/afero (imported by github.com/ory/viper); to add:
#13 0.840 	go get github.com/ory/[email protected]
#13 0.840 /go/pkg/mod/github.com/ory/[email protected]/util.go:22:2: missing go.sum entry for module providing package github.com/spf13/cast (imported by github.com/ory/x/viperx); to add:
#13 0.840 	go get github.com/ory/x/[email protected]
#13 0.840 /go/pkg/mod/[email protected]/internal/oc/metrics.go:19:2: missing go.sum entry for module providing package go.opencensus.io/plugin/ocgrpc (imported by gocloud.dev/internal/oc); to add:
#13 0.840 	go get gocloud.dev/internal/[email protected]
#13 0.840 /go/pkg/mod/[email protected]/blob/blob.go:81:2: missing go.sum entry for module providing package go.opencensus.io/stats (imported by gocloud.dev/blob); to add:
#13 0.840 	go get gocloud.dev/[email protected]
#13 0.840 /go/pkg/mod/[email protected]/blob/blob.go:82:2: missing go.sum entry for module providing package go.opencensus.io/stats/view (imported by gocloud.dev/blob); to add:
#13 0.840 	go get gocloud.dev/[email protected]
#13 0.840 /go/pkg/mod/[email protected]/blob/blob.go:83:2: missing go.sum entry for module providing package go.opencensus.io/tag (imported by gocloud.dev/blob); to add:
#13 0.840 	go get gocloud.dev/[email protected]
#13 0.840 /go/pkg/mod/[email protected]/internal/oc/trace.go:25:2: missing go.sum entry for module providing package go.opencensus.io/trace (imported by gocloud.dev/internal/oc); to add:
#13 0.840 	go get gocloud.dev/internal/[email protected]
#13 0.840 /go/pkg/mod/github.com/uber/[email protected]+incompatible/span_context.go:24:2: missing go.sum entry for module providing package go.uber.org/atomic (imported by github.com/uber/jaeger-client-go); to add:
#13 0.840 	go get github.com/uber/[email protected]+incompatible
#13 0.840 /go/pkg/mod/github.com/!puerkito!bio/[email protected]/purell.go:17:2: missing go.sum entry for module providing package golang.org/x/net/idna (imported by github.com/PuerkitoBio/purell); to add:
#13 0.840 	go get github.com/PuerkitoBio/[email protected]
#13 0.840 /go/pkg/mod/[email protected]/gcp/gcp.go:24:2: missing go.sum entry for module providing package golang.org/x/oauth2 (imported by github.com/ory/oathkeeper/pipeline/authn); to add:
#13 0.840 	go get github.com/ory/oathkeeper/pipeline/authn
#13 0.840 pipeline/authn/authenticator_oauth2_client_credentials.go:19:2: missing go.sum entry for module providing package golang.org/x/oauth2/clientcredentials (imported by github.com/ory/oathkeeper/pipeline/authn); to add:
#13 0.840 	go get github.com/ory/oathkeeper/pipeline/authn
#13 0.840 /go/pkg/mod/[email protected]/gcp/gcp.go:25:2: missing go.sum entry for module providing package golang.org/x/oauth2/google (imported by gocloud.dev/blob/gcsblob); to add:
#13 0.840 	go get gocloud.dev/blob/[email protected]
#13 0.840 /go/pkg/mod/github.com/!puerkito!bio/[email protected]/purell.go:18:2: missing go.sum entry for module providing package golang.org/x/text/unicode/norm (imported by github.com/PuerkitoBio/purell); to add:
#13 0.840 	go get github.com/PuerkitoBio/[email protected]
#13 0.841 /go/pkg/mod/github.com/!puerkito!bio/[email protected]/purell.go:19:2: missing go.sum entry for module providing package golang.org/x/text/width (imported by github.com/PuerkitoBio/purell); to add:
#13 0.841 	go get github.com/PuerkitoBio/[email protected]
#13 0.841 /go/pkg/mod/[email protected]/blob/gcsblob/gcsblob.go:76:2: missing go.sum entry for module providing package google.golang.org/api/googleapi (imported by gocloud.dev/blob/gcsblob); to add:
#13 0.841 	go get gocloud.dev/blob/[email protected]
#13 0.841 /go/pkg/mod/[email protected]/blob/gcsblob/gcsblob.go:77:2: missing go.sum entry for module providing package google.golang.org/api/iterator (imported by gocloud.dev/blob/gcsblob); to add:
#13 0.841 	go get gocloud.dev/blob/[email protected]
#13 0.841 /go/pkg/mod/github.com/google/go-replayers/[email protected]/google/google.go:23:2: missing go.sum entry for module providing package google.golang.org/api/option (imported by github.com/ory/oathkeeper/internal/cloudstorage); to add:
#13 0.841 	go get github.com/ory/oathkeeper/internal/cloudstorage
#13 0.841 /go/pkg/mod/github.com/google/go-replayers/[email protected]/google/google.go:24:2: missing go.sum entry for module providing package google.golang.org/api/transport/http (imported by github.com/google/go-replayers/httpreplay/google); to add:
#13 0.841 	go get github.com/google/go-replayers/httpreplay/[email protected]
#13 0.841 /go/pkg/mod/[email protected]/blob/gcsblob/iam.go:27:2: missing go.sum entry for module providing package google.golang.org/genproto/googleapis/iam/credentials/v1 (imported by gocloud.dev/blob/gcsblob); to add:
#13 0.841 	go get gocloud.dev/blob/[email protected]
#13 0.841 /go/pkg/mod/github.com/googleapis/[email protected]+incompatible/call_option.go:36:2: missing go.sum entry for module providing package google.golang.org/grpc (imported by gocloud.dev/internal/useragent); to add:
#13 0.841 	go get gocloud.dev/internal/[email protected]
#13 0.841 /go/pkg/mod/github.com/googleapis/[email protected]+incompatible/call_option.go:37:2: missing go.sum entry for module providing package google.golang.org/grpc/codes (imported by gocloud.dev/internal/gcerr); to add:
#13 0.841 	go get gocloud.dev/internal/[email protected]
#13 0.841 /go/pkg/mod/github.com/openzipkin/[email protected]/propagation/b3/grpc.go:18:2: missing go.sum entry for module providing package google.golang.org/grpc/metadata (imported by github.com/openzipkin/zipkin-go/propagation/b3); to add:
#13 0.841 	go get github.com/openzipkin/zipkin-go/propagation/[email protected]
#13 0.841 /go/pkg/mod/github.com/googleapis/[email protected]+incompatible/call_option.go:38:2: missing go.sum entry for module providing package google.golang.org/grpc/status (imported by gocloud.dev/internal/gcerr); to add:
#13 0.841 	go get gocloud.dev/internal/[email protected]
#13 0.841 /go/pkg/mod/github.com/ory/[email protected]/viper.go:50:2: missing go.sum entry for module providing package gopkg.in/ini.v1 (imported by github.com/ory/viper); to add:
#13 0.841 	go get github.com/ory/[email protected]
#13 0.841 /go/pkg/mod/github.com/ory/[email protected]/viper.go:51:2: missing go.sum entry for module providing package gopkg.in/yaml.v2 (imported by github.com/ory/x/viperx); to add:
#13 0.841 	go get github.com/ory/x/[email protected]
#13 0.841 /go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:22:2: missing go.sum entry for module providing package gopkg.in/yaml.v3 (imported by github.com/stretchr/testify/assert); to add:
#13 0.841 	go get github.com/stretchr/testify/[email protected]
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build]: exit code: 1

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security. vulnerability, I
    confirm that I got green light (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

@sawadashota sawadashota requested a review from aeneasr as a code owner January 4, 2022 08:40
Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@aeneasr aeneasr merged commit adf0d1b into ory:master Jan 4, 2022
@sawadashota sawadashota deleted the fix_dockerfile_dc branch January 4, 2022 08:47
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

Successfully merging this pull request may close these issues.

2 participants