Skip to content

How to set GOPROXY when deploy? #3761

Description

@nzlov

How to configure GOPROXY environment variables for onbuild when deploying method?

Error - exit status 1
    /nuclio/pkg/cmdrunner/shellrunner.go:114

Call stack:
stdout:
Sending build context to Docker daemon  6.144kB\r\r
Step 1/3 : FROM quay.io/nuclio/handler-builder-golang-onbuild:1.14.1-amd64
# Executing 5 build triggers
 ---> Using cache
 ---> Using cache
 ---> Using cache
 ---> Running in 9dda1646e516
\u001b[91m+ [ ! -f go.mod ]
+ mv /processor_go.mod go.mod
\u001b[0m\u001b[91m+ mv /processor_go.sum go.sum
\u001b[0m\u001b[91m+ go mod tidy
\u001b[0m\u001b[91mgo: downloading github.com/nuclio/nuclio-sdk-go v0.5.1
\u001b[0m\u001b[91mgo: github.com/nuclio/nuclio imports
\tgithub.com/nuclio/nuclio-sdk-go: github.com/nuclio/nuclio-sdk-go@v0.5.1: Get \"https://proxy.golang.org/github.com/nuclio/nuclio-sdk-go/@v/v0.5.1.zip\": dial tcp 142.250.73.113:443: i/o timeout
\u001b[0m ---> Removed intermediate container 9dda1646e516

stderr:
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

The command '/bin/sh -c mv /moduler.sh . && sync && ./moduler.sh' returned a non-zero code: 1

    /nuclio/pkg/cmdrunner/shellrunner.go:114
Failed to build
    /nuclio/pkg/dockerclient/shell.go:119
Failed to build onbuild image
    .../pkg/containerimagebuilderpusher/docker.go:258
Failed to copy objects from onbuild
    .../pkg/containerimagebuilderpusher/docker.go:218
Failed to build image artifacts
    .../pkg/containerimagebuilderpusher/docker.go:66
Failed to build processor image
    /nuclio/pkg/processor/build/builder.go:276
Failed to deploy function
    ...//nuclio/pkg/platform/abstract/platform.go:236

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions