[CI] Use manylinux2010_x86_64 container to vendor libgomp (#6485)
This commit is contained in:
parent
0ffaf0f5be
commit
b8044e6136
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -198,10 +198,10 @@ def BuildCUDA(args) {
|
|||||||
"""
|
"""
|
||||||
if (args.cuda_version == ref_cuda_ver) {
|
if (args.cuda_version == ref_cuda_ver) {
|
||||||
sh """
|
sh """
|
||||||
${dockerRun} ${container_type} ${docker_binary} ${docker_args} auditwheel repair --plat ${wheel_tag} python-package/dist/*.whl
|
${dockerRun} auditwheel_x86_64 ${docker_binary} auditwheel repair --plat ${wheel_tag} python-package/dist/*.whl
|
||||||
mv -v wheelhouse/*.whl python-package/dist/
|
mv -v wheelhouse/*.whl python-package/dist/
|
||||||
# Make sure that libgomp.so is vendored in the wheel
|
# Make sure that libgomp.so is vendored in the wheel
|
||||||
${dockerRun} ${container_type} ${docker_binary} ${docker_args} bash -c "unzip -l python-package/dist/*.whl | grep libgomp || exit -1"
|
${dockerRun} auditwheel_x86_64 ${docker_binary} bash -c "unzip -l python-package/dist/*.whl | grep libgomp || exit -1"
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
echo 'Stashing Python wheel...'
|
echo 'Stashing Python wheel...'
|
||||||
|
|||||||
15
tests/ci_build/Dockerfile.auditwheel_x86_64
Normal file
15
tests/ci_build/Dockerfile.auditwheel_x86_64
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM quay.io/pypa/manylinux2010_x86_64
|
||||||
|
|
||||||
|
# Install lightweight sudo (not bound to TTY)
|
||||||
|
ENV GOSU_VERSION 1.10
|
||||||
|
RUN set -ex; \
|
||||||
|
curl -o /usr/local/bin/gosu -L "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" && \
|
||||||
|
chmod +x /usr/local/bin/gosu && \
|
||||||
|
gosu nobody true
|
||||||
|
|
||||||
|
# Default entry-point to use if running locally
|
||||||
|
# It will preserve attributes of created files
|
||||||
|
COPY entrypoint.sh /scripts/
|
||||||
|
|
||||||
|
WORKDIR /workspace
|
||||||
|
ENTRYPOINT ["/scripts/entrypoint.sh"]
|
||||||
Loading…
x
Reference in New Issue
Block a user