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

[gpctl] Support batch-building workspace images #5032

Merged
merged 1 commit into from
Aug 1, 2021
Merged

Conversation

csweichel
Copy link
Contributor

This PR adds support for batch-building workspace images. This is particularly handy just before a deployment to pre-build the most used workspace images.

For example, the following will build the workspace images from all workspace instances started in the last 30 days.

mysql -N -B -u gitpod -p -h 127.0.0.1 gitpod \
	-e 'SELECT ws.baseImageNameResolved FROM d_b_workspace_instance wsi LEFT JOIN d_b_workspace ws ON ws.id = workspaceId WHERE wsi.creationTime > (NOW() - INTERVAL 30 DAY)' | \
	sort | \
	uniq | \
	gpctl imagebuilds build-batch

@roboquat roboquat requested a review from aledbf August 1, 2021 19:07
@roboquat roboquat added the size/L label Aug 1, 2021
Copy link
Member

@aledbf aledbf left a comment

Choose a reason for hiding this comment

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

LGTM

@roboquat
Copy link
Contributor

roboquat commented Aug 1, 2021

LGTM label has been added.

Git tree hash: f679f77766a965c026af075954811d52bca3033d

@csweichel csweichel force-pushed the cw/gpctl-build-batch branch from ac60902 to 7c938e3 Compare August 1, 2021 19:42
@roboquat roboquat removed the lgtm label Aug 1, 2021
@csweichel
Copy link
Contributor Author

/approve no-issue

@aledbf
Copy link
Member

aledbf commented Aug 1, 2021

/lgtm

@roboquat roboquat added the lgtm label Aug 1, 2021
@roboquat
Copy link
Contributor

roboquat commented Aug 1, 2021

LGTM label has been added.

Git tree hash: 01d678a35bfeaae2564721a4cbb6dd8adb86753c

@roboquat
Copy link
Contributor

roboquat commented Aug 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, csweichel

Associated issue requirement bypassed by: csweichel

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit c9f4c4b into main Aug 1, 2021
@roboquat roboquat deleted the cw/gpctl-build-batch branch August 1, 2021 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants