Skip to content
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

Add Kpt + Gcloud Image Definition #1553

Merged
merged 12 commits into from
Mar 18, 2021
Merged

Conversation

runewake2
Copy link
Contributor

See: #1506

This introduces a new container image that includes gcloud alongside other programs configured with kpt. The image will be released as kpt-gcloud into the same container registry as the kpt container (kpt-dev). The image is based off of gcr.io/google.com/cloudsdktool/cloud-sdk:alpine

This image is significantly larger than the kpt image already published at gcr.io/kpt-dev/kpt but smaller than the larger general purpose cloud-sdk images that are available with kpt.


This PR also updates the kpt releasing README with steps that will allow you to run and validate Cloud Build releases of kpt against your local fork.

Hardcoded github owner values have been removed from the kpt Goreleaser config to prevent publishing new releases to the GoogleContainerTools/kpt repo unintentionally. (note: this is still possible with wrong parameters and notes have been included to prevent this as best as possible)

Note: A followup change to include the image on kpt.dev will follow the first release of these new images.

@runewake2 runewake2 requested a review from mortent March 16, 2021 23:07
gcloud/Dockerfile Outdated Show resolved Hide resolved
release/tag/goreleaser.yaml Outdated Show resolved Hide resolved
@frankfarzan
Copy link
Contributor

In the PR description, can you specify the size of the two container images?

@@ -0,0 +1,34 @@
# Copyright 2019 Google LLC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, the existing top-level Dockerfile should be moved to release directory as well. This can be a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. Will open that PR after this is merged to avoid conflicts with the merge/squash of this change.

COPY . .
RUN go build -v -o /usr/local/bin/kpt -ldflags="-s -w -X github.com/GoogleContainerTools/kpt/run.version=$KPT_VERSION" ./

FROM gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably use a pinned version instead. We don't want to have this change without our explicit consent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pinned this to 332.0.0-alpine and updated our releasing steps to include updates to the base image versions prior to release.

- Update releasing instructions.
@runewake2 runewake2 merged commit f2b3b6d into kptdev:master Mar 18, 2021
@runewake2 runewake2 deleted the add-kpt-gcloud branch March 18, 2021 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants