Merge pull request #42 from jcfr/manylinux-allow-pip-install-squashed

manylinux: Grant current user password less sudo access.
This commit is contained in:
Matt McCormick 2016-09-22 22:45:17 -04:00 committed by GitHub
commit 1d11afd37d
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then
groupadd -o -g $BUILDER_GID $BUILDER_GROUP 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}
shopt -s dotglob
cp -r /root/* $HOME/

View File

@ -12,6 +12,8 @@ RUN cd /opt && \
COPY manylinux-x64/install-skbuild.sh /usr/local/bin
RUN /usr/local/bin/install-skbuild.sh
RUN yum -y install sudo
ENV CROSS_TRIPLE x86_64-linux-gnu
ENV CROSS_ROOT /opt/rh/devtoolset-2/root/usr/bin
ENV AS=${CROSS_ROOT}/as \