-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🌱 generalize tools Dockerfiles for arm64, ppc64le linux builds #1992
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,22 +12,36 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
substitutions: | ||
_KUBERNETES_VERSION: v1.19.2 | ||
steps: | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: ["build", "-t", "gcr.io/kubebuilder/thirdparty-${_GOOS}:1.20.2", "./build/thirdparty/${_GOOS}"] | ||
args: [ | ||
"build", | ||
"--build-arg", "OS=${_GOOS}", | ||
"--build-arg", "ARCH=${_GOARCH}", | ||
"--build-arg", "KUBERNETES_VERSION=${_KUBERNETES_VERSION}", | ||
"-t", "gcr.io/kubebuilder/thirdparty-${_GOOS}-${_GOARCH}:${_KUBERNETES_VERSION}", | ||
"./build/thirdparty/${_GOOS}", | ||
] | ||
# darwin takes forever | ||
timeout: 30m | ||
|
||
- name: "gcr.io/kubebuilder/thirdparty-${_GOOS}:1.20.2" | ||
args: ["cp", "/kubebuilder_${_GOOS}_${_GOARCH}.tar.gz", "/workspace/kubebuilder-1.20.2-${_GOOS}-${_GOARCH}.tar.gz"] | ||
env: | ||
- 'GOOS=${_GOOS}' | ||
- 'GOARCH=${_GOARCH}' | ||
- name: 'gcr.io/cloud-builders/gsutil' | ||
args: ['-h', 'Content-Type:application/gzip', 'cp', '/workspace/kubebuilder-1.20.2-${_GOOS}-${_GOARCH}.tar.gz', 'gs://kubebuilder-tools/kubebuilder-tools-1.20.2-${_GOOS}-${_GOARCH}.tar.gz'] | ||
env: | ||
- 'GOOS=${_GOOS}' | ||
- 'GOARCH=${_GOARCH}' | ||
images: ["gcr.io/kubebuilder/thirdparty-${_GOOS}:1.20.2"] | ||
- name: "gcr.io/kubebuilder/thirdparty-${_GOOS}-${_GOARCH}:${_KUBERNETES_VERSION}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we keep something around that cross-tags this to the old There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this image intended to be pulled/used outside of this build system? If so then I don’t think the old format should be kept around because it is now ambiguous. EDIT: actually for v1.19 I think we can make an exception because released kubebuilder projects already use the old format. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Edit: nevermind, we are distributing tarballs, not docker images. Docker is just used as the build environment. |
||
args: [ | ||
"cp", | ||
"/kubebuilder_${_GOOS}_${_GOARCH}.tar.gz", | ||
"/workspace/kubebuilder-tools-${_KUBERNETES_VERSION}-${_GOOS}-${_GOARCH}.tar.gz", | ||
] | ||
|
||
- name: "gcr.io/cloud-builders/gsutil" | ||
args: [ | ||
"-h", "Content-Type:application/gzip", | ||
"cp", | ||
"/workspace/kubebuilder-tools-${_KUBERNETES_VERSION}-${_GOOS}-${_GOARCH}.tar.gz", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto here. In either case, will need to update the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tarball name format hasn't changed, and if it has it shouldn't have since it already includes os and arch. |
||
"gs://kubebuilder-tools/kubebuilder-tools-${_KUBERNETES_VERSION}-${_GOOS}-${_GOARCH}.tar.gz", | ||
] | ||
|
||
images: ["gcr.io/kubebuilder/thirdparty-${_GOOS}-${_GOARCH}:${_KUBERNETES_VERSION}"] | ||
# darwin takes forever | ||
timeout: 30m |
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.
Do this need to be listed somewhere else? I mean you will need to configure this list of os/arch somewhere (maybe not in code though).
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.
Yeah I think @DirectXMan12 needs to update these vars in gcloud.