Commit 30dbe4d2 authored by caiyanming's avatar caiyanming

set jenkins uesr to sudo uesr

Change-Id: Icea4801383861d4ac8fabc80e77204606a1f056f
parent e52e3b99
...@@ -21,12 +21,14 @@ COPY sources.list /etc/apt/sources.list ...@@ -21,12 +21,14 @@ COPY sources.list /etc/apt/sources.list
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y git curl \ && 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 \ && 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 - \ && 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" \ && 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 update \
&& apt-get -y install docker-ce \ && 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 user=jenkins
ARG group=jenkins ARG group=jenkins
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment