Skip to content

[Gitpod CLI] Auto-install Docker when it's not available in the system #15839

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

Closed
wants to merge 1 commit into from

Conversation

felladrin
Copy link
Contributor

@felladrin felladrin commented Jan 18, 2023

Description

Auto-install Docker when it's not available in the system.

Related Issue(s)

How to test

Open a workspace which uses an image (e.g. ubuntu / busybox) without Docker installed (e.g. https://github.com/gitpod-samples/template-elixir), and confirm if gp rebuild works.

Release Notes

NONE

Build Options:

  • /werft with-github-actions
    Experimental feature to run the build with GitHub Actions (and not in Werft).
  • /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

@felladrin

This comment was marked as outdated.

@felladrin felladrin force-pushed the ide/gp-rebuild-auto-install-docker branch from ac60947 to b46d1a8 Compare January 18, 2023 16:11
@felladrin felladrin force-pushed the ide/gp-rebuild-auto-install-docker branch 5 times, most recently from d91df0c to cc4c8a8 Compare January 19, 2023 14:59
@felladrin
Copy link
Contributor Author

felladrin commented Jan 19, 2023

ℹ️ It now checks if the user is running as root or if the user has at least access to "sudo" before running the docker install. We're not using the rootless-script anymore.

@felladrin felladrin force-pushed the ide/gp-rebuild-auto-install-docker branch from cc4c8a8 to 53d69e3 Compare January 19, 2023 15:24
@felladrin
Copy link
Contributor Author

felladrin commented Jan 19, 2023

ℹ️ We're considering closing this PR in favor of another approach: to restart the workspace using the base Gitpod image, which already has docker installed.

@felladrin felladrin closed this Jan 23, 2023
@felladrin felladrin deleted the ide/gp-rebuild-auto-install-docker branch January 23, 2023 14:13
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