File tree 6 files changed +42
-9
lines changed
6 files changed +42
-9
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,14 @@ RUN chmod +x start.sh
100
100
# Create non-root user under docker group
101
101
RUN useradd -m -s /bin/bash -u "1000" azdouser
102
102
RUN groupadd docker && usermod -aG docker azdouser
103
- RUN echo "azdouser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
104
- WORKDIR /home/azdouser
105
- RUN chown -R azdouser /home/azdouser
106
- RUN chown -R azdouser /azp
107
- RUN chown -R azdouser /var/run/docker.sock || true
108
- USER azdouser
103
+ RUN apt-get update \
104
+ && apt-get install -y sudo \
105
+ && echo azdouser ALL=\( root\) NOPASSWD:ALL >> /etc/sudoers
109
106
107
+ RUN sudo chown -R azdouser /home/azdouser
108
+ RUN sudo chown -R azdouser /azp
109
+ RUN sudo chown -R azdouser /var/run/docker.sock || true
110
+ USER azdouser
110
111
111
112
112
113
# cd to /azp and run start.sh
Original file line number Diff line number Diff line change @@ -12,12 +12,20 @@ The table presented below outlines the correspondence between Helm chart version
12
12
13
13
| Helm Version | Docker Tag | Agent Version |
14
14
| --------------| ------------| ---------------|
15
+ | 2.1.0 | 3.248.0-stable-v2.1.0 | 3.248.0 |
15
16
| 2.0.1 | 3.248.0 | 3.248.0 |
16
17
| 2.0.0 | 3.232.3 | 3.232.3 |
17
18
| 1.0.7 | 2.214.1 | 2.214.1 |
18
19
19
20
## Important Release Notes
20
21
22
+ ### 2.1.0
23
+
24
+ This release includes the same agent version but different Docker image tag and ** different bash invocations** !
25
+ - :white_check_mark : [ Add sudo and docker support] ( https://github.com/btungut/azure-devops-agent-on-kubernetes/pull/27 )
26
+
27
+
28
+
21
29
### 2.0.1
22
30
23
31
- :white_check_mark : [ duplicate apt install command] ( https://github.com/btungut/azure-devops-agent-on-kubernetes/issues/16 )
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ apiVersion: v2
2
2
name : azure-devops-agent
3
3
description : Dockerized build agent for Azure DevOps
4
4
type : application
5
- version : 2.0.1
6
- appVersion : " 3.248.0"
5
+ version : 2.1.0
6
+ appVersion : " 3.248.0-stable-v2.1.0 "
7
7
keywords :
8
8
- azure devops
9
9
- build agent
Original file line number Diff line number Diff line change @@ -8,12 +8,20 @@ The table presented below outlines the correspondence between Helm chart version
8
8
9
9
| Helm Version | Docker Tag | Agent Version |
10
10
| --------------| ------------| ---------------|
11
+ | 2.1.0 | 3.248.0-stable-v2.1.0 | 3.248.0 |
11
12
| 2.0.1 | 3.248.0 | 3.248.0 |
12
13
| 2.0.0 | 3.232.3 | 3.232.3 |
13
14
| 1.0.7 | 2.214.1 | 2.214.1 |
14
15
15
16
## Important Release Notes
16
17
18
+ ### 2.1.0
19
+
20
+ This release includes the same agent version but different Docker image tag and ** different bash invocations** !
21
+ - :white_check_mark : [ Add sudo and docker support] ( https://github.com/btungut/azure-devops-agent-on-kubernetes/pull/27 )
22
+
23
+
24
+
17
25
### 2.0.1
18
26
19
27
- :white_check_mark : [ duplicate apt install command] ( https://github.com/btungut/azure-devops-agent-on-kubernetes/issues/16 )
Original file line number Diff line number Diff line change 31
31
# registry: docker.io
32
32
repository : btungut/azure-devops-agent
33
33
pullPolicy : IfNotPresent
34
- tag : " 3.248.0"
34
+ tag : " 3.248.0-stable-v2.1.0 "
35
35
pullSecrets : []
36
36
37
37
resources :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+
3
+ if [ -x " $( command -v sudo) " ]; then
4
+ {
5
+ sudo chown -R azdouser /home/azdouser
6
+ sudo chown -R azdouser /azp
7
+ sudo chown -R azdouser /var/run/docker.sock || true
8
+
9
+ if [ -S /var/run/docker.sock ]; then
10
+ sudo groupadd docker || true
11
+ sudo usermod -aG docker azdouser || true
12
+ sudo newgrp docker || true
13
+ echo " Docker.sock exists and processed!"
14
+ fi
15
+ } || true
16
+ fi
17
+
2
18
set -e
3
19
4
20
if [ -z " $AZP_URL " ]; then
You can’t perform that action at this time.
0 commit comments