@@ -4,106 +4,106 @@ services:
4
4
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:sidekick_${BRANCH_SUFFIX}
5
5
stdin_open : true
6
6
tty : true
7
- entrypoint : sh -c "/usr/local/bin/keygen.sh /ssh-dir" # Runs the keygen.sh script and specifies the output directory
7
+ entrypoint : sh -c "/usr/local/bin/keygen.sh /ssh-dir" # Runs the keygen.sh script and specifies the output directory
8
8
volumes :
9
- - agent-ssh-dir:/ssh-dir # Mounts the agent-ssh-dir volume to the /ssh-dir path inside the container
9
+ - agent-ssh-dir:/ssh-dir # Mounts the agent-ssh-dir volume to the /ssh-dir path inside the container
10
10
healthcheck :
11
- test : [ "CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1" ] # Checks if the conductor_ok file exists in the /ssh-dir path
11
+ test : ["CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1"]
12
+ # Checks if the conductor_ok file exists in the /ssh-dir path
12
13
interval : 5s
13
14
timeout : 10s
14
15
retries : 5
15
-
16
16
jenkins_controller :
17
17
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:simple_controller_${BRANCH_SUFFIX}
18
18
restart : on-failure
19
19
ports :
20
20
- " 8080:8080"
21
21
volumes :
22
- - jenkins_home:/var/jenkins_home # Mounts the jenkins_home volume to the /var/jenkins_home path inside the container
23
- - agent-ssh-dir:/ssh-dir # Mounts the agent-ssh-dir volume to the /app path inside the container
22
+ - jenkins_home:/var/jenkins_home # Mounts the jenkins_home volume to the /var/jenkins_home path inside the container
23
+ - agent-ssh-dir:/ssh-dir # Mounts the agent-ssh-dir volume to the /app path inside the container
24
24
depends_on :
25
25
sidekick_service :
26
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
26
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
27
27
healthcheck :
28
- test : [ "CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1" ] # Checks if the conductor_ok file exists in the /ssh-dir path
28
+ test : ["CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1"]
29
+ # Checks if the conductor_ok file exists in the /ssh-dir path
29
30
interval : 5s
30
31
timeout : 10s
31
32
retries : 5
32
-
33
33
default_agent :
34
- image : jenkins/ssh-agent:5.5 .0
34
+ image : jenkins/ssh-agent:5.25 .0
35
35
container_name : desktop-jenkins_agent-1
36
36
depends_on :
37
37
sidekick_service :
38
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
38
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
39
39
jenkins_controller :
40
- condition : service_started
40
+ condition : service_started
41
41
healthcheck :
42
- test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ] # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
42
+ test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
43
+ # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
43
44
interval : 5s
44
45
timeout : 10s
45
46
retries : 5
46
47
volumes :
47
- - 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
48
-
48
+ - 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
49
49
maven :
50
50
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:maven_agent_${BRANCH_SUFFIX}
51
51
container_name : desktop-jenkins_agent-1
52
52
profiles :
53
53
- maven
54
54
depends_on :
55
55
sidekick_service :
56
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
56
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
57
57
jenkins_controller :
58
- condition : service_started
58
+ condition : service_started
59
59
healthcheck :
60
- test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ] # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
60
+ test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
61
+ # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
61
62
interval : 5s
62
63
timeout : 10s
63
64
retries : 5
64
65
volumes :
65
- - 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
66
-
66
+ - 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
67
67
python :
68
68
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:python_agent_${BRANCH_SUFFIX}
69
69
container_name : desktop-jenkins_agent-1
70
70
profiles :
71
71
- python
72
72
depends_on :
73
73
sidekick_service :
74
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
74
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
75
75
jenkins_controller :
76
- condition : service_started
76
+ condition : service_started
77
77
healthcheck :
78
- test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ] # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
78
+ test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
79
+ # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
79
80
interval : 5s
80
81
timeout : 10s
81
82
retries : 5
82
83
volumes :
83
- - 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
84
-
84
+ - 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
85
85
node :
86
86
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:node_agent_${BRANCH_SUFFIX}
87
87
environment :
88
- - GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
88
+ - GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
89
89
container_name : desktop-jenkins_agent-1
90
90
profiles :
91
91
- node
92
92
depends_on :
93
93
sidekick_service :
94
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
94
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
95
95
jenkins_controller :
96
- condition : service_started
96
+ condition : service_started
97
97
ports :
98
98
- " 3000:3000"
99
99
healthcheck :
100
- test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ] # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
100
+ test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
101
+ # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
101
102
interval : 5s
102
103
timeout : 10s
103
104
retries : 5
104
105
volumes :
105
- - 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
106
-
106
+ - 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
107
107
android :
108
108
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:android_agent_${BRANCH_SUFFIX}
109
109
environment :
@@ -113,20 +113,19 @@ services:
113
113
- android
114
114
depends_on :
115
115
sidekick_service :
116
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
116
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
117
117
jenkins_controller :
118
118
condition : service_started
119
119
ports :
120
120
- " 3000:3000"
121
121
healthcheck :
122
- test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ] # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
122
+ test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
123
+ # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
123
124
interval : 5s
124
125
timeout : 10s
125
126
retries : 5
126
127
volumes :
127
- - 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
128
-
129
-
128
+ - 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
130
129
multi_jenkins_controller :
131
130
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:simple_controller_${BRANCH_SUFFIX}
132
131
restart : on-failure
@@ -135,41 +134,41 @@ services:
135
134
profiles :
136
135
- multi
137
136
volumes :
138
- - jenkins_home:/var/jenkins_home # Mounts the jenkins_home volume to the /var/jenkins_home path inside the container
139
- - agent-ssh-dir:/ssh-dir # Mounts the agent-ssh-dir volume to the /app path inside the container
137
+ - jenkins_home:/var/jenkins_home # Mounts the jenkins_home volume to the /var/jenkins_home path inside the container
138
+ - agent-ssh-dir:/ssh-dir # Mounts the agent-ssh-dir volume to the /app path inside the container
140
139
depends_on :
141
140
sidekick_service :
142
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
141
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
143
142
healthcheck :
144
- test : [ "CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1" ] # Checks if the conductor_ok file exists in the /ssh-dir path
143
+ test : ["CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1"]
144
+ # Checks if the conductor_ok file exists in the /ssh-dir path
145
145
interval : 5s
146
146
timeout : 10s
147
147
retries : 5
148
-
149
148
multi :
150
149
image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:node_agent_${BRANCH_SUFFIX}
151
150
environment :
152
- - GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
151
+ - GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
153
152
container_name : desktop-jenkins_agent-1
154
153
profiles :
155
154
- multi
156
155
depends_on :
157
156
sidekick_service :
158
- condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
157
+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
159
158
multi_jenkins_controller :
160
- condition : service_started
159
+ condition : service_started
161
160
ports :
162
161
- " 3000:3000"
163
162
- " 5000:5000"
164
163
healthcheck :
165
- test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ] # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
164
+ test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
165
+ # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
166
166
interval : 5s
167
167
timeout : 10s
168
168
retries : 5
169
169
volumes :
170
- - 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
171
-
170
+ - 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
172
171
volumes :
173
- jenkins_home :
172
+ jenkins_home : null
174
173
agent-ssh-dir :
175
- name : agent-ssh-dir # Creates a named volume called agent-ssh-dir
174
+ name : agent-ssh-dir # Creates a named volume called agent-ssh-dir
0 commit comments