diff --git a/imagefiles/entrypoint.sh b/imagefiles/entrypoint.sh index 472867c..a104e30 100755 --- a/imagefiles/entrypoint.sh +++ b/imagefiles/entrypoint.sh @@ -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/ diff --git a/manylinux-x64/Dockerfile.in b/manylinux-x64/Dockerfile.in index b7254fa..373ce89 100644 --- a/manylinux-x64/Dockerfile.in +++ b/manylinux-x64/Dockerfile.in @@ -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 \