diff --git a/jenkins/Dockerfile b/jenkins/Dockerfile index 611c9f5b86c0774640453a0735f8b6e0610dad3d..24e5ac23aab1462bde9d2f8da3e5667859f6683f 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