Skip to content

Commit fe34d31

Browse files
authored
chore: remove Gitpod support (#1840)
* chore: remove Gitpod support Gitpod free tier has been discontinued. Removed all Gitpod-related configuration and documentation in favor of GitHub Codespaces. Changes: - Removed .gitpod.yml and .gitpod/Dockerfile - Removed dockerfiles/gitpodURL.sh script - Removed updatecli/updatecli.d/gitpod.yaml configuration - Removed GITPOD_WORKSPACE_URL environment variables from docker-compose files - Updated README.md to remove Gitpod setup instructions - Updated documentation to focus on GitHub Codespaces * fix: handle v prefix in devcontainer version patterns The devcontainer.json file has version values with v prefixes (e.g., v27.0.3, v2.83.1), but the updatecli patterns did not account for this, causing pattern match failures. Updated patterns to include optional v prefix using v? This allows the patterns to match both with and without v prefix.
1 parent f618eaa commit fe34d31

File tree

8 files changed

+2
-178
lines changed

8 files changed

+2
-178
lines changed

.gitpod.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.gitpod/Dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ This repository includes the files necessary for transitioning from `docker` to
1818
3. Wait for the environment to initialize (~2-3 minutes)
1919
4. Follow the welcome message in the terminal to start a tutorial
2020

21-
### How to Set Up the Repository in GitPod? (Legacy)
22-
23-
**Note**: GitPod's free tier has sunset. We recommend using GitHub Codespaces instead.
24-
25-
- Access our Gitpod workspace [here](https://gitpod.io/#https://github.com/jenkins-docs/quickstart-tutorials).
26-
27-
## GitPod (Legacy)
28-
29-
GitPod is a cloud-based development environment designed for teams. It supports various IDEs, including VScode, IntelliJ, and many more, enabling efficient and secure software development.
30-
3121
### Steps to Run Examples from the Repository
3222

3323
- Use `docker compose up` to run examples from this project. Currently, we have four working examples:
@@ -51,26 +41,13 @@ GitPod is a cloud-based development environment designed for teams. It supports
5141

5242
- Check the status of the container with the `docker ps` or `docker compose ps` commands.
5343
- Access your running Jenkins instance at [http://127.0.0.1:8080](http://127.0.0.1:8080).
54-
- On Gitpod, if containers are running successfully after entering `docker compose --profile <tutorial-name> up`, a pop-up titled `A service is available on port 8080` should appear. If it doesn't, you can view the running service in the `PORTS` section on the right side of the terminal.
5544

5645
### Clean Up Instructions
5746

5847
- To stop and remove running containers, use `docker compose --profile <tutorial-name> down`.
5948
- If you encounter a `Resource is still in use` warning, use the `--remove-orphans` option which would give `docker compose --profile <tutorial-name> down --remove-orphans`.
6049
- To remove the created volumes (should you need to restart from scratch), add the `-v` option which would give `docker compose --profile <tutorial-name> down -v`.
6150

62-
### Suppressing Jenkins Warning using JCASC
63-
64-
To improve the Gitpod experience with Jenkins, we've suppressed a reverse proxy setup warning in Jenkins that was causing issues in the Gitpod environment. We achieved this using Jenkins Configuration as Code ([JCASC](https://www.jenkins.io/projects/jcasc/)) and added the following property to the JCASC YAML file:
65-
66-
```yaml
67-
jenkins:
68-
disabledAdministrativeMonitors:
69-
- "hudson.diagnosis.ReverseProxySetupMonitor"
70-
```
71-
72-
For more detailed information about this configuration and the context behind it, please refer to the [corresponding issue](https://github.com/ash-sxn/GSoC-2023-docker-based-quickstart/issues/61).
73-
7451
### Encountering Issues?
7552

7653
If you encounter any issues while running the examples, please open an issue [in this repository](https://github.com/jenkins-docs/quickstart-tutorials/issues/new/choose).

build-docker-compose.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ services:
4545
build: dockerfiles/.
4646
restart: on-failure
4747
# The CASC_RELOAD_TOKEN environment variable is used by the Jenkins controller to restart the Configuration as Code (JCasc) plugin configuration.
48-
environment:
4948
- CASC_RELOAD_TOKEN=thisisnotsecure
5049
ports:
5150
- "8080:8080"
@@ -118,8 +117,6 @@ services:
118117
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
119118
node:
120119
build: dockerfiles/node/.
121-
environment:
122-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
123120
container_name: desktop-jenkins_agent-1-node
124121
profiles:
125122
- node
@@ -140,8 +137,6 @@ services:
140137
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
141138
multi:
142139
build: dockerfiles/multi/.
143-
environment:
144-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
145140
container_name: desktop-jenkins_agent-1-multi
146141
profiles:
147142
- multi
@@ -163,8 +158,6 @@ services:
163158
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
164159
android:
165160
build: dockerfiles/android/.
166-
environment:
167-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
168161
container_name: desktop-jenkins_agent-1-android
169162
profiles:
170163
- android
@@ -186,8 +179,6 @@ services:
186179
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
187180
golang:
188181
build: dockerfiles/golang/.
189-
environment:
190-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
191182
container_name: desktop-jenkins_agent-1-golang
192183
profiles:
193184
- golang

docker-compose.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ services:
6565
- dotnet
6666
- default
6767
# The CASC_RELOAD_TOKEN environment variable is used by the Jenkins controller to restart the Configuration as Code (JCasc) plugin configuration.
68-
environment:
6968
- CASC_RELOAD_TOKEN=thisisnotsecure
7069
# The Jenkins web interface is exposed on port 8080.
7170
ports:
@@ -178,8 +177,6 @@ services:
178177
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
179178
node:
180179
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:node_agent_${BRANCH_SUFFIX}
181-
environment:
182-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
183180
container_name: desktop-jenkins_agent-1-node
184181
profiles:
185182
- node
@@ -200,8 +197,6 @@ services:
200197
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
201198
android:
202199
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:android_agent_${BRANCH_SUFFIX}
203-
environment:
204-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
205200
container_name: desktop-jenkins_agent-1-android
206201
profiles:
207202
- android
@@ -241,8 +236,6 @@ services:
241236
retries: 5
242237
multi:
243238
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:node_agent_${BRANCH_SUFFIX}
244-
environment:
245-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
246239
container_name: desktop-jenkins_agent-1-multi
247240
profiles:
248241
- multi
@@ -264,8 +257,6 @@ services:
264257
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
265258
golang:
266259
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:golang_${BRANCH_SUFFIX}
267-
environment:
268-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
269260
container_name: desktop-jenkins_agent-1-golang
270261
profiles:
271262
- golang
@@ -286,8 +277,6 @@ services:
286277
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
287278
cpp:
288279
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:cpp_${BRANCH_SUFFIX}
289-
environment:
290-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
291280
container_name: desktop-jenkins_agent-1
292281
profiles:
293282
- cpp
@@ -308,8 +297,6 @@ services:
308297
- agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
309298
dotnet:
310299
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:dotnet_${BRANCH_SUFFIX}
311-
environment:
312-
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
313300
container_name: desktop-jenkins_agent-1
314301
profiles:
315302
- dotnet

dockerfiles/gitpodURL.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

updatecli/updatecli.d/devcontainer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ targets:
4444
sourceid: dockerLatestMinor
4545
spec:
4646
file: .devcontainer/devcontainer.json
47-
matchpattern: '("version": ")([0-9.]*)(",)'
47+
matchpattern: '("version": "v?)([0-9.]*)(",)'
4848
replacepattern: '${1}{{ source "dockerLatestMinor" }}${3}'
4949
search:
5050
pattern: 'ghcr\.io/devcontainers/features/docker-in-docker'
@@ -58,7 +58,7 @@ targets:
5858
sourceid: githubcliLatestMinor
5959
spec:
6060
file: .devcontainer/devcontainer.json
61-
matchpattern: '("version": ")([0-9.]+)(")'
61+
matchpattern: '("version": "v?)([0-9.]+)(")'
6262
replacepattern: '${1}{{ source "githubcliLatestMinor" }}${3}'
6363
search:
6464
pattern: 'ghcr\.io/devcontainers/features/github-cli'

updatecli/updatecli.d/gitpod.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)