-
Notifications
You must be signed in to change notification settings - Fork 226
use docker build to generate images #825
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
Conversation
This issue is currently awaiting triage. If the repository mantainers determine this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@@ -42,7 +45,7 @@ else | |||
fi | |||
|
|||
if [[ "${COMPONENT:-ccm}" == "ccm" ]]; then | |||
go run github.com/google/ko@v0.14.1 build --tags=${IMAGE_TAG} --base-import-paths --push=true ./cmd/cloud-controller-manager/ | |||
docker build --push -t ${IMAGE_REPO}/cloud-controller-manager:${IMAGE_TAG} . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may want to do this optional via a env variable for local testing
I verified it works. Only thing is that I got permission issue And I verified that the entry point is root( /lgtm Thanks a lot @aojea |
oh, we used to have
/approve cancel |
Change-Id: I2c8839ba088342318ee93fb03527917f21a4aee5
go-runner is used in all the other cloud providers too https://grep.app/search?q=registry.k8s.io%2Fbuild-image%2Fgo-runner is not a big change, just replacing the base image ,I have updated the PR to include go-runner PTAL |
/lgtm Thank you! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, YifeiZhuang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -0,0 +1,16 @@ | |||
ARG GOARCH="amd64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we want to build only amd64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just make this as a stopgap, feel free to improve it
Change-Id: I2c8839ba088342318ee93fb03527917f21a4aee5
Fixes: #821
/assign @cpanato @YifeiZhuang
This changes the way of building the image from
ko
toDockerfile
, despiteko
is really simple and useful the app path inside the container is hardcoded and this cause conflict with all the existing ecosystem that depend in the app path to workInstead of using bazel, that is something we'd like to get rid of, let's use a Dockerfile that is the standard and in this is case is very simple