dockcross/common.manylinux
Jean-Christophe Fillion-Robin bb9e69988d
manylinux.crosstool: Fix use of sudo removing sudo provided by devtoolset
This commit removes sudo provided by devtoolset since it doesn't work with
our sudo wrapper calling gosu.

It fixes error like the following:

  /opt/rh/devtoolset-9/root/usr/bin/sudo: line 41: /usr/bin/sudo: No such file or directory

Adapted from e513a26 (manylinux: Remove rh devtoolset sudo)

Co-authored-by: odidev <odidev@puresoftware.com>
2020-06-17 10:21:35 -04:00

33 lines
848 B
Plaintext

# Image build scripts
COPY \
imagefiles/install-gosu-binary.sh \
imagefiles/install-gosu-binary-wrapper.sh \
manylinux-common/install-python-packages.sh \
/buildscripts/
RUN \
set -x && \
yum -y install \
epel-release \
gpg \
zlib-devel \
gettext \
openssh-clients \
pax \
wget \
zip \
&& \
yum clean all && \
/buildscripts/install-gosu-binary.sh && \
/buildscripts/install-gosu-binary-wrapper.sh && \
# Remove sudo provided by devtoolset since it doesn't work with
# our sudo wrapper calling gosu.
rm -f /opt/rh/devtoolset-2/root/usr/bin/sudo && \
rm -f /opt/rh/devtoolset-7/root/usr/bin/sudo && \
rm -f /opt/rh/devtoolset-8/root/usr/bin/sudo && \
/buildscripts/install-python-packages.sh && \
rm -rf /buildscripts
# Runtime scripts
COPY manylinux-common/pre_exec.sh /dockcross/