File tree 7 files changed +41
-30
lines changed
7 files changed +41
-30
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ FROM alpine:3.12
2
2
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
3
3
4
4
ADD posix/* /usr/local/bin/
5
- RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
6
- RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
7
- USER drone:drone
8
- RUN chmod -R 777 /home/drone
5
+
6
+ # RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
7
+ # RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
8
+ # USER drone:drone
9
+ # RUN chmod -R 777 /home/drone
9
10
10
11
ENTRYPOINT ["/usr/local/bin/clone"]
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ FROM arm32v6/alpine:3.12
2
2
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
3
3
4
4
ADD posix/* /usr/local/bin/
5
- RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
6
- RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
7
- USER drone:drone
8
- RUN chmod -R 777 /home/drone
5
+
6
+ # RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
7
+ # RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
8
+ # USER drone:drone
9
+ # RUN chmod -R 777 /home/drone
10
+
9
11
ENTRYPOINT ["/usr/local/bin/clone"]
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ FROM arm32v6/alpine:3.12
2
2
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
3
3
4
4
ADD posix/* /usr/local/bin/
5
- RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
6
- RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
7
- USER drone:drone
8
- RUN chmod -R 777 /home/drone
5
+
6
+ # RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
7
+ # RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
8
+ # USER drone:drone
9
+ # RUN chmod -R 777 /home/drone
10
+
9
11
ENTRYPOINT ["/usr/local/bin/clone"]
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ FROM arm64v8/alpine:3.12
2
2
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
3
3
4
4
ADD posix/* /usr/local/bin/
5
- RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
6
- RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
7
- USER drone:drone
8
- RUN chmod -R 777 /home/drone
5
+
6
+ # RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
7
+ # RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
8
+ # USER drone:drone
9
+ # RUN chmod -R 777 /home/drone
10
+
9
11
ENTRYPOINT ["/usr/local/bin/clone"]
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ FROM arm32v6/alpine:3.12
2
2
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
3
3
4
4
ADD posix/* /usr/local/bin/
5
- RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
6
- RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
7
- USER drone:drone
8
- RUN chmod -R 777 /home/drone
5
+
6
+ # RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
7
+ # RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
8
+ # USER drone:drone
9
+ # RUN chmod -R 777 /home/drone
10
+
9
11
ENTRYPOINT ["/usr/local/bin/clone"]
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ FROM arm64v8/alpine:3.12
2
2
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
3
3
4
4
ADD posix/* /usr/local/bin/
5
- RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
6
- RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
7
- USER drone:drone
8
- RUN chmod -R 777 /home/drone
5
+
6
+ # RUN adduser -g Drone -s /bin/sh -D -u 1000 drone
7
+ # RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone
8
+ # USER drone:drone
9
+ # RUN chmod -R 777 /home/drone
10
+
9
11
ENTRYPOINT ["/usr/local/bin/clone"]
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ if [[ -n "${DRONE_WORKSPACE}" ]]; then
5
5
# to the workspace. This is required because
6
6
# the workspace is a docker volume and is owned
7
7
# by root.
8
- sudo mkdir -p ${DRONE_WORKSPACE}
9
- sudo chown drone:drone ${DRONE_WORKSPACE}
8
+ # sudo mkdir -p ${DRONE_WORKSPACE}
9
+ # sudo chown drone:drone ${DRONE_WORKSPACE}
10
10
11
11
# ensure the workspace is the current working
12
12
# directory. This should already be the case,
16
16
17
17
# force the home directory path.
18
18
19
- if [ " $HOME " != " /home/drone" ]; then
20
- echo " [DEBUG] setting default home directory"
21
- export HOME=/home/drone
22
- fi
19
+ # if [ "$HOME" != "/home/drone" ]; then
20
+ # echo "[DEBUG] setting default home directory"
21
+ # export HOME=/home/drone
22
+ # fi
23
23
24
24
# if the netrc enviornment variables exist, write
25
25
# the netrc file.
You can’t perform that action at this time.
0 commit comments