Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Boxiang Sun
lx2160a_build
Commits
78858702
Commit
78858702
authored
Nov 17, 2019
by
Olof Johansson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker: let build user sudo without password
Signed-off-by:
Olof Johansson
<
olof@lixom.net
>
parent
575727d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
docker/entry.sh
docker/entry.sh
+4
-0
No files found.
docker/entry.sh
View file @
78858702
...
@@ -21,6 +21,10 @@ _GID=$2
...
@@ -21,6 +21,10 @@ _GID=$2
groupadd
-g
$_GID
build 2>/dev/null
||
true
groupadd
-g
$_GID
build 2>/dev/null
||
true
useradd
-s
/bin/bash
-m
-u
$_UID
-g
$_GID
build
useradd
-s
/bin/bash
-m
-u
$_UID
-g
$_GID
build
# passwordless sudo for build user
adduser build
sudo
echo
'%sudo ALL=(ALL) NOPASSWD:ALL'
>>
/etc/sudoers
# preconfigure git identity
# preconfigure git identity
sudo
-u
build git config
--global
user.name
"LX2160A Toolchain Container"
sudo
-u
build git config
--global
user.name
"LX2160A Toolchain Container"
sudo
-u
build git config
--global
user.email
"support@solid-run.com"
sudo
-u
build git config
--global
user.email
"support@solid-run.com"
...
...
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