Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
ec677037
Commit
ec677037
authored
Feb 02, 2017
by
Brian Beggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create pip3 alias and modify sudoers for python3
parent
7eb519e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
docker/build/go-agent/Dockerfile
+6
-1
No files found.
docker/build/go-agent/Dockerfile
View file @
ec677037
...
...
@@ -61,7 +61,12 @@ RUN usermod -aG docker go
# Assign the go user root privlidges
RUN
printf
"
\n
go ALL=(ALL:ALL) NOPASSWD: /usr/bin/pip, /usr/local/bin/pip
\n
"
>>
/etc/sudoers
RUN
printf
"
\n
go ALL=(ALL:ALL) NOPASSWD: /usr/bin/pip3, /usr/local/bin/pip3
\n
"
>>
/etc/sudoers
RUN
printf
"
\n
go ALL=(ALL:ALL) NOPASSWD: /usr/bin/python3
\n
"
>>
/etc/sudoers
# Create pip3 alias for go user
RUN
printf
"
\n
alias pip3='/usr/bin/python3 -m pip'
\n
"
>>
/var/go/.bashrc
RUN
chown go:go /var/go/.bashrc
RUN
chmod 600 /var/go/.bashrc
# Upgrade pip and setup tools. Needed for Ansible 2.x
# Must upgrade to latest before pinning to work around bug
...
...
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