Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2477

make image does not work when Minikube docker env is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • shim - kubernetes
    • None

    Description

      After executing eval $(minikube docker-env), make image fails:

      ~/repos/yunikorn-k8shim$ make image
      Generating third-party licenses file
      W0311 16:44:53.045118 2849538 library.go:101] "github.com/modern-go/reflect2" contains non-Go code that can't be inspected for further dependencies:
      /home/bacskop/go/pkg/mod/github.com/modern-go/reflect2@v1.0.2/reflect2_amd64.s
      /home/bacskop/go/pkg/mod/github.com/modern-go/reflect2@v1.0.2/relfect2_mips64x.s
      /home/bacskop/go/pkg/mod/github.com/modern-go/reflect2@v1.0.2/relfect2_mipsx.s
      /home/bacskop/go/pkg/mod/github.com/modern-go/reflect2@v1.0.2/relfect2_ppc64x.s
      W0311 16:44:54.084958 2849538 library.go:101] "golang.org/x/sys/unix" contains non-Go code that can't be inspected for further dependencies:
      /home/bacskop/go/pkg/mod/golang.org/x/sys@v0.17.0/unix/asm_linux_amd64.s
      W0311 16:45:30.473276 2849538 library.go:101] "github.com/cespare/xxhash/v2" contains non-Go code that can't be inspected for further dependencies:
      /home/bacskop/go/pkg/mod/github.com/cespare/xxhash/v2@v2.2.0/xxhash_amd64.s
      W0311 16:46:01.618034 2849538 library.go:101] "golang.org/x/crypto/internal/poly1305" contains non-Go code that can't be inspected for further dependencies:
      /home/bacskop/go/pkg/mod/golang.org/x/crypto@v0.19.0/internal/poly1305/sum_amd64.s
      W0311 16:46:01.629317 2849538 library.go:101] "golang.org/x/crypto/salsa20/salsa" contains non-Go code that can't be inspected for further dependencies:
      /home/bacskop/go/pkg/mod/golang.org/x/crypto@v0.19.0/salsa20/salsa/salsa20_amd64.s
      building binary for scheduler docker image
      CGO_ENABLED=0 GOOS=linux GOARCH="amd64" "go" build \
      -a \
      -o=build/bin/yunikorn-scheduler \
      -trimpath \
      -ldflags '-buildid= -extldflags "-static" -X github.com/apache/yunikorn-k8shim/pkg/conf.buildVersion=latest -X github.com/apache/yunikorn-k8shim/pkg/conf.buildDate=2024-03-05T16:18:43+00:00 -X github.com/apache/yunikorn-k8shim/pkg/conf.isPluginVersion=false -X github.com/apache/yunikorn-k8shim/pkg/conf.goVersion=1.22 -X github.com/apache/yunikorn-k8shim/pkg/conf.arch=amd64 -X github.com/apache/yunikorn-k8shim/pkg/conf.coreSHA=b926dce1f914 -X github.com/apache/yunikorn-k8shim/pkg/conf.siSHA=94c25b6d2579 -X github.com/apache/yunikorn-k8shim/pkg/conf.shimSHA=270400be6ebc' \
      -tags netgo \
      -installsuffix netgo \
      ./pkg/cmd/shim/
      building scheduler docker image
      DOCKER_BUILDKIT=1 docker build \
      "build/docker/scheduler" \
      -t "apache/yunikorn:scheduler-amd64-latest" \
      --platform "linux/amd64" \
      --label "yunikorn-core-revision=b926dce1f914" \
      --label "yunikorn-scheduler-interface-revision=94c25b6d2579" \
      --label "yunikorn-k8shim-revision=270400be6ebc" \
      --label "BuildTimeStamp=2024-03-05T16:18:43+00:00" \
      --label "Version=latest" \
      
      ERROR: open /home/bacskop/.minikube/certs/ca.pem: permission denied
      make: *** [Makefile:429: sched_image] Error 1
      

      We either fix this or update the documentation to use "minikube image load" instead.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pbacsko Peter Bacsko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: