From 30dbe4d228cb3364b2b2e400b73e244a9463b338 Mon Sep 17 00:00:00 2001 From: ruowen Date: Thu, 3 May 2018 19:59:42 +0800 Subject: [PATCH] set jenkins uesr to sudo uesr Change-Id: Icea4801383861d4ac8fabc80e77204606a1f056f --- jenkins/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/Dockerfile b/jenkins/Dockerfile index 611c9f5..24e5ac2 100644 --- a/jenkins/Dockerfile +++ b/jenkins/Dockerfile @@ -21,12 +21,14 @@ COPY sources.list /etc/apt/sources.list RUN apt-get update \ && apt-get install -y git curl \ + && apt-get install sudo -y --allow-unauthenticated \ && apt-get -y install apt-transport-https ca-certificates software-properties-common \ && curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | apt-key add - \ && add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" \ && apt-get -y update \ && apt-get -y install docker-ce \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* \ + && echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers ARG user=jenkins ARG group=jenkins -- GitLab