From be769618aa14245b8354d66473905baa7bb21635 Mon Sep 17 00:00:00 2001 From: Shubham Agrawal Date: Thu, 6 May 2021 20:10:24 +0530 Subject: [PATCH] updated dockerfile for arm --- docker/Dockerfile.linux.arm | 6 +++++- docker/Dockerfile.linux.arm6 | 6 +++++- docker/Dockerfile.linux.arm64 | 6 +++++- docker/Dockerfile.linux.arm7 | 6 +++++- docker/Dockerfile.linux.arm8 | 6 +++++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile.linux.arm b/docker/Dockerfile.linux.arm index faf6927..2142776 100644 --- a/docker/Dockerfile.linux.arm +++ b/docker/Dockerfile.linux.arm @@ -1,5 +1,9 @@ FROM arm32v6/alpine:3.12 -RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl +RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo ADD posix/* /usr/local/bin/ +RUN adduser -g Drone -s /bin/sh -D -u 1000 drone +RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone +USER drone:drone +RUN chmod -R 777 /home/drone ENTRYPOINT ["/usr/local/bin/clone"] diff --git a/docker/Dockerfile.linux.arm6 b/docker/Dockerfile.linux.arm6 index faf6927..2142776 100644 --- a/docker/Dockerfile.linux.arm6 +++ b/docker/Dockerfile.linux.arm6 @@ -1,5 +1,9 @@ FROM arm32v6/alpine:3.12 -RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl +RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo ADD posix/* /usr/local/bin/ +RUN adduser -g Drone -s /bin/sh -D -u 1000 drone +RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone +USER drone:drone +RUN chmod -R 777 /home/drone ENTRYPOINT ["/usr/local/bin/clone"] diff --git a/docker/Dockerfile.linux.arm64 b/docker/Dockerfile.linux.arm64 index 16672d5..74ca9e1 100644 --- a/docker/Dockerfile.linux.arm64 +++ b/docker/Dockerfile.linux.arm64 @@ -1,5 +1,9 @@ FROM arm64v8/alpine:3.12 -RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl +RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo ADD posix/* /usr/local/bin/ +RUN adduser -g Drone -s /bin/sh -D -u 1000 drone +RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone +USER drone:drone +RUN chmod -R 777 /home/drone ENTRYPOINT ["/usr/local/bin/clone"] diff --git a/docker/Dockerfile.linux.arm7 b/docker/Dockerfile.linux.arm7 index faf6927..2142776 100644 --- a/docker/Dockerfile.linux.arm7 +++ b/docker/Dockerfile.linux.arm7 @@ -1,5 +1,9 @@ FROM arm32v6/alpine:3.12 -RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl +RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo ADD posix/* /usr/local/bin/ +RUN adduser -g Drone -s /bin/sh -D -u 1000 drone +RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone +USER drone:drone +RUN chmod -R 777 /home/drone ENTRYPOINT ["/usr/local/bin/clone"] diff --git a/docker/Dockerfile.linux.arm8 b/docker/Dockerfile.linux.arm8 index 16672d5..74ca9e1 100644 --- a/docker/Dockerfile.linux.arm8 +++ b/docker/Dockerfile.linux.arm8 @@ -1,5 +1,9 @@ FROM arm64v8/alpine:3.12 -RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl +RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl aws-cli sudo ADD posix/* /usr/local/bin/ +RUN adduser -g Drone -s /bin/sh -D -u 1000 drone +RUN echo 'drone ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/drone +USER drone:drone +RUN chmod -R 777 /home/drone ENTRYPOINT ["/usr/local/bin/clone"]