https://github.com/gitpod-samples/workspace-stop
This is a workaround for Gitpod organization admins to manually force stop a Gitpod workspace of any organization member, in case they forget to stop it after setting a long `gp timeout` value.
https://github.com/gitpod-samples/workspace-stop
Last synced: 4 months ago
JSON representation
This is a workaround for Gitpod organization admins to manually force stop a Gitpod workspace of any organization member, in case they forget to stop it after setting a long `gp timeout` value.
- Host: GitHub
- URL: https://github.com/gitpod-samples/workspace-stop
- Owner: gitpod-samples
- Created: 2024-04-20T16:01:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-23T07:59:39.000Z (about 1 year ago)
- Last Synced: 2025-01-24T12:45:31.954Z (5 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# External workspace stop trigger
This is a workaround for Gitpod organization admins to manually force stop a Gitpod workspace of any organization member, in case they forget to stop it after setting a long `gp timeout` value.
# How to set up
## Quick method
If you're not using a [custom workspace image](https://www.gitpod.io/docs/configure/workspaces/workspace-image#configuring-a-workspace-image), this might be the easiest:
- Go to https://gitpod.io/settings
- Scroll down to `Workspace images` option and click on "Change" button.
- In the `Default Image` input field, enter the following and save:
```
axonasif/workspace-full-stop@sha256:58217440cf2149d14b42e6ae53bbcd27b2bc2ee1f1050cd06ceac2c057d05f7e
```## Integrate with custom or existing image
Just copy the contents from [Dockerfile](./Dockerfile) to your own Dockerfile (except the `FROM` statement)
# How to use
- Find the workspace ID that you want to stop from https://gitpod.io/usage
- Open this repo on Gitpod: https://gitpod.io/#github.com/gitpod-samples/workspace-stop
- You should see a open terminal on the bottom asking for a workspace id, simply paste the ID there and press enter/return.
- If you want to stop multiple workspaces in bulk, then create a new terminal and provide all your workspace IDs separated by space: `./stop wsid1 wsid2 wsid3`