Skip to content

Don't include previewctl in dev image #14795

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

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

mads-hartmann
Copy link
Contributor

@mads-hartmann mads-hartmann commented Nov 18, 2022

Description

This PR removes previewctl from the Dockerfile in favour of installing it in prebuilds through an init task.

leeway run dev/preview/previewctl:install will now build and copy the binary over to /workspace/preview/bin. /workspace/bin has been created and added to the $PATH.

This makes it much easier for us to iterate on previewctl as we won't have to rebuild the dev image and update all references to it (triggering review from every team) for every change we make.

Related Issue(s)

Fixes #14149

How to test

That preview environments from Werft still works (example)

werft job run github -a with-preview=true

That previewctl is available in workspaces

which previewctl

Release Notes

NONE

Documentation

N/A

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@mads-hartmann mads-hartmann force-pushed the mads/dont-include-previewctl-in-image branch from cf60c7e to 330cf3d Compare November 22, 2022 08:52
@roboquat roboquat added size/M and removed size/S labels Nov 22, 2022
@mads-hartmann mads-hartmann force-pushed the mads/dont-include-previewctl-in-image branch 5 times, most recently from 7ffe73e to 96f0bcc Compare November 22, 2022 14:24
@mads-hartmann mads-hartmann force-pushed the mads/dont-include-previewctl-in-image branch from 96f0bcc to 9fba4b8 Compare November 22, 2022 14:56
@github-actions
Copy link
Contributor

⚠️ Hey reviewer! BE CAREFUL ⚠️
Review the code before opening in your Gitpod. .gitpod.yml was changed and it might be harmful.

@mads-hartmann mads-hartmann changed the title WIP: Hack hack hack Don't include previewctl in dev image Nov 22, 2022
@mads-hartmann mads-hartmann marked this pull request as ready for review November 22, 2022 15:04
@mads-hartmann mads-hartmann requested review from a team November 22, 2022 15:04
@github-actions github-actions bot added team: SID team: devx team: IDE team: workspace Issue belongs to the Workspace team labels Nov 22, 2022
@roboquat roboquat merged commit 28ba48f into main Nov 22, 2022
@roboquat roboquat deleted the mads/dont-include-previewctl-in-image branch November 22, 2022 17:37
@roboquat roboquat added the deployed: IDE IDE change is running in production label Nov 23, 2022
@roboquat roboquat added the deployed: workspace Workspace team change is running in production label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: IDE IDE change is running in production deployed: workspace Workspace team change is running in production release-note-none size/M team: devx team: IDE team: SID team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't add previewctl to our dev image
6 participants