Skip to content

Commit 3ccd783

Browse files
committed
revert to root due to npm issues
1 parent 806bc25 commit 3ccd783

7 files changed

+41
-30
lines changed

docker/Dockerfile.linux.amd64

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ FROM alpine:3.12
22
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
33

44
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
910

1011
ENTRYPOINT ["/usr/local/bin/clone"]

docker/Dockerfile.linux.arm

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ FROM arm32v6/alpine:3.12
22
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
33

44
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+
911
ENTRYPOINT ["/usr/local/bin/clone"]

docker/Dockerfile.linux.arm6

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ FROM arm32v6/alpine:3.12
22
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
33

44
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+
911
ENTRYPOINT ["/usr/local/bin/clone"]

docker/Dockerfile.linux.arm64

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ FROM arm64v8/alpine:3.12
22
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
33

44
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+
911
ENTRYPOINT ["/usr/local/bin/clone"]

docker/Dockerfile.linux.arm7

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ FROM arm32v6/alpine:3.12
22
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
33

44
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+
911
ENTRYPOINT ["/usr/local/bin/clone"]

docker/Dockerfile.linux.arm8

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ FROM arm64v8/alpine:3.12
22
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo
33

44
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+
911
ENTRYPOINT ["/usr/local/bin/clone"]

posix/clone

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ if [[ -n "${DRONE_WORKSPACE}" ]]; then
55
# to the workspace. This is required because
66
# the workspace is a docker volume and is owned
77
# 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}
1010

1111
# ensure the workspace is the current working
1212
# directory. This should already be the case,
@@ -16,10 +16,10 @@ fi
1616

1717
# force the home directory path.
1818

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
2323

2424
# if the netrc enviornment variables exist, write
2525
# the netrc file.

0 commit comments

Comments
 (0)