-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
make builder image version consistent with glide.lock hash #1621
Conversation
COPY ./ $GOPATH/src/github.com/kubeflow/kubeflow/bootstrap/ | ||
|
||
RUN go build ${GOLANG_GCFLAGS} -i -o /opt/kubeflow/bootstrapper \ | ||
${GOPATH}/src/github.com/kubeflow/kubeflow/bootstrap/cmd/bootstrap/main.go | ||
|
||
FROM golang:${GOLANG_VERSION} AS build |
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.
what's this line for?
Do we need to build after this line?
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.
Which line?
@@ -18,10 +18,3 @@ RUN mkdir -p $GOPATH/src/github.com/kubeflow/kubeflow/bootstrap | |||
COPY ./glide* $GOPATH/src/github.com/kubeflow/kubeflow/bootstrap/ | |||
RUN cd $GOPATH/src/github.com/kubeflow/kubeflow/bootstrap/ && \ | |||
glide install -v | |||
|
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.
So builder only containers vendor, and we only need to rebuild it if glide is changed, right?
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.
Yes
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lluunn 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 |
* add kfp-tekton deployment and update IBM stacks * update owner file
To simplify test and local dev.
Old method:
go pkg was compiled in builder image:
make build
New method:
builder image is cache of glide & vendor dir,
glide.lock
file 100% determines the content of builder image. So use hash code ofglide.lock
as builder image version. And resolve 1,2,3 of old methodThis change is