-
Notifications
You must be signed in to change notification settings - Fork 153
Unable to push knative images to local registry #598
Description
Expected Behavior
I have been trying to build images for knative release version 0.5 on Power architecture by cloning branch release-0.5. The image build succeeds with $ ./hack/release.sh --skip-tests --nopublish --notag-release command. However, when I try to run any of the images or push them to local registry, I am facing some git commit(kodata) related issue. Am I missing something here?
Actual Behavior
Trying to run docker run -it ko.local/github.com/knative/build/cmd/git-init:latest sh gives following output.(prettied the json up for readability)
{
"level":"warn",
"ts":1555319522.5300372,
"logger":"fallback-logger",
"caller":"logging/config.go:65",
"msg":"Fetch GitHub commit ID from kodata failed: \"ref: refs/heads/release-0.5\" is not a valid GitHub commit ID"
}
{
"level":"error",
"ts":1555319522.5588896,
"logger":"fallback-logger",
"caller":"git-init/main.go:52","msg":"Unexpected error running git [fetch --depth=1 --recurse-submodules=yes origin ]: exit status 128\nfatal: no path specified; see 'git help pull' for valid url syntax\n",
"stacktrace":"main.runOrFail\n\t/root/Shivani/knative-images/go/src/github.com/knative/build/cmd/git-init/main.go:52\nmain.main\n\t/root/Shivani/knative-images/go/src/github.com/knative/build/cmd/git-init/main.go:91\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200"
}
{
"level":"error",
"ts":1555319522.5990245,
"logger":"fallback-logger",
"caller":"git-init/main.go:41",
"msg":"Error running git [pull --recurse-submodules=yes origin]: exit status 1\nfatal: no path specified; see 'git help pull' for valid url syntax\n",
"stacktrace":"main.run\n\t/root/Shivani/knative-images/go/src/github.com/knative/build/cmd/git-init/main.go:41\nmain.main\n\t/root/Shivani/knative-images/go/src/github.com/knative/build/cmd/git-init/main.go:95\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200"
}
{
"level":"error",
"ts":1555319522.619067,
"logger":"fallback-logger",
"caller":"git-init/main.go:52",
"msg":"Unexpected error running git [checkout ]: exit status 128\nfatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths\n",
"stacktrace":"main.runOrFail\n\t/root/Shivani/knative-images/go/src/github.com/knative/build/cmd/git-init/main.go:52\nmain.main\n\t/root/Shivani/knative-images/go/src/github.com/knative/build/cmd/git-init/main.go:96\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200"
}
Steps to Reproduce the Problem
- mkdir -p ${GOPATH}/src/github.com/knative
- cd ${GOPATH}/src/github.com/knative
- git clone --branch release-0.5 https://github.com/knative/build.git
- cd build
- ./hack/release.sh --skip-tests --nopublish --notag-release
- docker run -it ko.local/github.com/knative/build/cmd/git-init:latest sh
Additional Info
Previously, we have been able to build and push images for Power architecture on dockerhub for version 0.3. However, we are facing some kodata related errors currently. It may be an environment setup issue. Any suggestions would be of great help.
/area test-and-release
/kind question