mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 09:04:27 +01:00
Merge pull request #42 from jcfr/manylinux-allow-pip-install-squashed
manylinux: Grant current user password less sudo access.
This commit is contained in:
commit
1d11afd37d
@ -25,6 +25,7 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then
|
|||||||
|
|
||||||
groupadd -o -g $BUILDER_GID $BUILDER_GROUP 2> /dev/null
|
groupadd -o -g $BUILDER_GID $BUILDER_GROUP 2> /dev/null
|
||||||
useradd -o -m -g $BUILDER_GID -u $BUILDER_UID $BUILDER_USER 2> /dev/null
|
useradd -o -m -g $BUILDER_GID -u $BUILDER_UID $BUILDER_USER 2> /dev/null
|
||||||
|
echo "$BUILDER_USER ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
export HOME=/home/${BUILDER_USER}
|
export HOME=/home/${BUILDER_USER}
|
||||||
shopt -s dotglob
|
shopt -s dotglob
|
||||||
cp -r /root/* $HOME/
|
cp -r /root/* $HOME/
|
||||||
|
@ -12,6 +12,8 @@ RUN cd /opt && \
|
|||||||
COPY manylinux-x64/install-skbuild.sh /usr/local/bin
|
COPY manylinux-x64/install-skbuild.sh /usr/local/bin
|
||||||
RUN /usr/local/bin/install-skbuild.sh
|
RUN /usr/local/bin/install-skbuild.sh
|
||||||
|
|
||||||
|
RUN yum -y install sudo
|
||||||
|
|
||||||
ENV CROSS_TRIPLE x86_64-linux-gnu
|
ENV CROSS_TRIPLE x86_64-linux-gnu
|
||||||
ENV CROSS_ROOT /opt/rh/devtoolset-2/root/usr/bin
|
ENV CROSS_ROOT /opt/rh/devtoolset-2/root/usr/bin
|
||||||
ENV AS=${CROSS_ROOT}/as \
|
ENV AS=${CROSS_ROOT}/as \
|
||||||
|
Loading…
Reference in New Issue
Block a user