Commit ec677037 by Brian Beggs

create pip3 alias and modify sudoers for python3

parent 7eb519e5
......@@ -61,7 +61,12 @@ RUN usermod -aG docker go
# Assign the go user root privlidges
RUN printf "\ngo ALL=(ALL:ALL) NOPASSWD: /usr/bin/pip, /usr/local/bin/pip\n" >> /etc/sudoers
RUN printf "\ngo ALL=(ALL:ALL) NOPASSWD: /usr/bin/pip3, /usr/local/bin/pip3\n" >> /etc/sudoers
RUN printf "\ngo ALL=(ALL:ALL) NOPASSWD: /usr/bin/python3\n" >> /etc/sudoers
# Create pip3 alias for go user
RUN printf "\nalias 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
......
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