Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .gitpod.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .gitpod/Dockerfile

This file was deleted.

23 changes: 0 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ This repository includes the files necessary for transitioning from `docker` to
3. Wait for the environment to initialize (~2-3 minutes)
4. Follow the welcome message in the terminal to start a tutorial

### How to Set Up the Repository in GitPod? (Legacy)

**Note**: GitPod's free tier has sunset. We recommend using GitHub Codespaces instead.

- Access our Gitpod workspace [here](https://gitpod.io/#https://github.com/jenkins-docs/quickstart-tutorials).

## GitPod (Legacy)

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.

### Steps to Run Examples from the Repository

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

- Check the status of the container with the `docker ps` or `docker compose ps` commands.
- Access your running Jenkins instance at [http://127.0.0.1:8080](http://127.0.0.1:8080).
- 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.

### Clean Up Instructions

- To stop and remove running containers, use `docker compose --profile <tutorial-name> down`.
- 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`.
- 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`.

### Suppressing Jenkins Warning using JCASC

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:

```yaml
jenkins:
disabledAdministrativeMonitors:
- "hudson.diagnosis.ReverseProxySetupMonitor"
```

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).

### Encountering Issues?

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).
Expand Down
9 changes: 0 additions & 9 deletions build-docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ services:
build: dockerfiles/.
restart: on-failure
# The CASC_RELOAD_TOKEN environment variable is used by the Jenkins controller to restart the Configuration as Code (JCasc) plugin configuration.
environment:
- CASC_RELOAD_TOKEN=thisisnotsecure
ports:
- "8080:8080"
Expand Down Expand Up @@ -118,8 +117,6 @@ services:
- 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
node:
build: dockerfiles/node/.
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
container_name: desktop-jenkins_agent-1-node
profiles:
- node
Expand All @@ -140,8 +137,6 @@ services:
- 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
multi:
build: dockerfiles/multi/.
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
container_name: desktop-jenkins_agent-1-multi
profiles:
- multi
Expand All @@ -163,8 +158,6 @@ services:
- 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
android:
build: dockerfiles/android/.
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
container_name: desktop-jenkins_agent-1-android
profiles:
- android
Expand All @@ -186,8 +179,6 @@ services:
- 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
golang:
build: dockerfiles/golang/.
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
container_name: desktop-jenkins_agent-1-golang
profiles:
- golang
Expand Down
13 changes: 0 additions & 13 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ services:
- dotnet
- default
# The CASC_RELOAD_TOKEN environment variable is used by the Jenkins controller to restart the Configuration as Code (JCasc) plugin configuration.
environment:
- CASC_RELOAD_TOKEN=thisisnotsecure
# The Jenkins web interface is exposed on port 8080.
ports:
Expand Down Expand Up @@ -178,8 +177,6 @@ services:
- 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
node:
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:node_agent_${BRANCH_SUFFIX}
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
container_name: desktop-jenkins_agent-1-node
profiles:
- node
Expand All @@ -200,8 +197,6 @@ services:
- 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
android:
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:android_agent_${BRANCH_SUFFIX}
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
container_name: desktop-jenkins_agent-1-android
profiles:
- android
Expand Down Expand Up @@ -241,8 +236,6 @@ services:
retries: 5
multi:
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:node_agent_${BRANCH_SUFFIX}
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
container_name: desktop-jenkins_agent-1-multi
profiles:
- multi
Expand All @@ -264,8 +257,6 @@ services:
- 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
golang:
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:golang_${BRANCH_SUFFIX}
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
container_name: desktop-jenkins_agent-1-golang
profiles:
- golang
Expand All @@ -286,8 +277,6 @@ services:
- 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
cpp:
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:cpp_${BRANCH_SUFFIX}
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
container_name: desktop-jenkins_agent-1
profiles:
- cpp
Expand All @@ -308,8 +297,6 @@ services:
- 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
dotnet:
image: ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:dotnet_${BRANCH_SUFFIX}
environment:
- GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL:-}
container_name: desktop-jenkins_agent-1
profiles:
- dotnet
Expand Down
37 changes: 0 additions & 37 deletions dockerfiles/gitpodURL.sh

This file was deleted.

4 changes: 2 additions & 2 deletions updatecli/updatecli.d/devcontainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ targets:
sourceid: dockerLatestMinor
spec:
file: .devcontainer/devcontainer.json
matchpattern: '("version": ")([0-9.]*)(",)'
matchpattern: '("version": "v?)([0-9.]*)(",)'
replacepattern: '${1}{{ source "dockerLatestMinor" }}${3}'
search:
pattern: 'ghcr\.io/devcontainers/features/docker-in-docker'
Expand All @@ -58,7 +58,7 @@ targets:
sourceid: githubcliLatestMinor
spec:
file: .devcontainer/devcontainer.json
matchpattern: '("version": ")([0-9.]+)(")'
matchpattern: '("version": "v?)([0-9.]+)(")'
replacepattern: '${1}{{ source "githubcliLatestMinor" }}${3}'
search:
pattern: 'ghcr\.io/devcontainers/features/github-cli'
Expand Down
44 changes: 0 additions & 44 deletions updatecli/updatecli.d/gitpod.yaml

This file was deleted.

Loading