Skip to content

Commit 64e847f

Browse files
committed
Migrate from Gitpod Classic to Gitpod Flex #6536
1 parent ae474e7 commit 64e847f

File tree

3 files changed

+107
-27
lines changed

3 files changed

+107
-27
lines changed

.devcontainer/Dockerfile

-1
This file was deleted.

.devcontainer/devcontainer.json

+88-26
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,96 @@
11
{
22
"name": "kafka-docker-playground",
33
"build": {
4-
"dockerfile": "Dockerfile"
4+
"dockerfile": "../.gitpod.Dockerfile"
55
},
6-
"settings": {
7-
"terminal.integrated.defaultProfile.linux": "zsh",
8-
"terminal.integrated.profiles.linux": {
9-
"bash": {
10-
"path": "bash",
11-
"icon": "terminal-bash"
12-
},
13-
"zsh": {
14-
"path": "zsh"
15-
}
16-
}
6+
"features": {
7+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
178
},
18-
"remoteEnv": {
19-
"PATH": "${containerEnv:PATH}:/workspaces/kafka-docker-playground/scripts/cli",
20-
"C3_PORT": "9023"
9+
"remoteUser": "gitpod",
10+
"containerUser": "gitpod",
11+
"workspaceFolder": "/workspace/kafka-docker-playground",
12+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/kafka-docker-playground,type=bind",
13+
"forwardPorts": [
14+
9999,
15+
9092,
16+
10000,
17+
29092,
18+
8083,
19+
5005,
20+
10002,
21+
9021,
22+
8081,
23+
10001,
24+
8088,
25+
10003
26+
],
27+
"portsAttributes": {
28+
"10000": {
29+
"label": "Port 10000",
30+
"onAutoForward": "ignore",
31+
"elevateIfNeeded": true
32+
},
33+
"10001": {
34+
"label": "Port 10001",
35+
"onAutoForward": "ignore",
36+
"elevateIfNeeded": true
37+
},
38+
"10002": {
39+
"label": "Port 10002",
40+
"onAutoForward": "ignore",
41+
"elevateIfNeeded": true
42+
},
43+
"10003": {
44+
"label": "Port 10003",
45+
"onAutoForward": "ignore",
46+
"elevateIfNeeded": true
47+
},
48+
"29092": {
49+
"label": "Port 29092",
50+
"onAutoForward": "ignore",
51+
"elevateIfNeeded": true
52+
},
53+
"5005": {
54+
"label": "Port 5005",
55+
"onAutoForward": "ignore",
56+
"elevateIfNeeded": true
57+
},
58+
"8081": {
59+
"label": "Port 8081",
60+
"onAutoForward": "ignore",
61+
"elevateIfNeeded": true
62+
},
63+
"8083": {
64+
"label": "Port 8083",
65+
"onAutoForward": "ignore",
66+
"elevateIfNeeded": true
67+
},
68+
"8088": {
69+
"label": "Port 8088",
70+
"onAutoForward": "ignore",
71+
"elevateIfNeeded": true
72+
},
73+
"9021": {
74+
"label": "Port 9021",
75+
"onAutoForward": "notify",
76+
"elevateIfNeeded": true
77+
},
78+
"9092": {
79+
"label": "Port 9092",
80+
"onAutoForward": "ignore",
81+
"elevateIfNeeded": true
82+
},
83+
"9999": {
84+
"label": "Port 9999",
85+
"onAutoForward": "ignore",
86+
"elevateIfNeeded": true
87+
}
2188
},
22-
"forwardPorts": [9023],
23-
"features": {
24-
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
25-
"ghcr.io/mikaello/devcontainer-features/modern-shell-utils:1": {},
26-
"ghcr.io/devcontainers-contrib/features/fzf:1": {},
27-
"ghcr.io/devcontainers-contrib/features/starship:1": {},
28-
"ghcr.io/devcontainers/features/java:1": {
29-
"version": "none",
30-
"installGradle": "false",
31-
"installMaven": "true"
32-
}
89+
"customizations": {
90+
"vscode": {
91+
"extensions": [
92+
"ms-azuretools.vscode-docker"
93+
]
94+
}
3395
}
3496
}

.gitpod/automations.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
tasks:
2+
command-1:
3+
command: "if [ -z \"$SECRETS_ENCRYPTION_PASSWORD\" ]; then echo \"\U0001F680 Enjoy the playground\"; else echo \"ℹ️ SECRETS_ENCRYPTION_PASSWORD environment variable is set\"; ./.github/scripts/decrypt_secret.sh;tar xvf secrets.tar;rm secrets.tar;mkdir -p $HOME/.aws;mv aws_credentials_with_assuming_iam_role $HOME/.aws/credentials-with-assuming-iam-role;chmod -R a+rw $HOME/.aws;mkdir -p $HOME/.confluent;echo \"$DOCKER_PASSWORD\" | docker login -u \"$DOCKER_USERNAME\" --password-stdin;fi"
4+
dependsOn:
5+
- init-001
6+
description: init task migrated from .gitpod.yml
7+
name: 'playground: command'
8+
triggeredBy:
9+
- postDevcontainerStart
10+
init-000:
11+
command: "cd environment/kerberos && source ../../scripts/utils.sh && docker compose -f ../../environment/plaintext/docker-compose.yml --profile control-center --profile ksqldb pull && cd - \ndocker pull google/cloud-sdk:latest\ndocker pull amazon/aws-cli\ndocker pull mcr.microsoft.com/azure-cli\ndocker pull imega/jq\ndocker pull vdesabou/avro-tools\ngp sync-done prebuild\n"
12+
description: init task migrated from .gitpod.yml
13+
name: 'prebuild: init'
14+
triggeredBy:
15+
- postDevcontainerStart
16+
init-001:
17+
command: gp sync-await prebuild
18+
description: init task migrated from .gitpod.yml
19+
name: 'playground: init'

0 commit comments

Comments
 (0)