Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-image
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
docker-image
Commits
30dbe4d2
Commit
30dbe4d2
authored
May 03, 2018
by
caiyanming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set jenkins uesr to sudo uesr
Change-Id: Icea4801383861d4ac8fabc80e77204606a1f056f
parent
e52e3b99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
jenkins/Dockerfile
jenkins/Dockerfile
+3
-1
No files found.
jenkins/Dockerfile
View file @
30dbe4d2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment