mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
Merge pull request #322 from jcfr/add-manylinux2010
Add manylinux2010, rename manylinux to manylinux1
This commit is contained in:
commit
8bb5d2887b
@ -286,46 +286,66 @@ jobs:
|
|||||||
- save_cache:
|
- save_cache:
|
||||||
key: linux-x86-assets-{{ .Revision }}
|
key: linux-x86-assets-{{ .Revision }}
|
||||||
paths: ~/docker/linux-x86.tar
|
paths: ~/docker/linux-x86.tar
|
||||||
manylinux-x64:
|
manylinux1-x64:
|
||||||
<<: *build-settings
|
<<: *build-settings
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: base-assets-{{ .Revision }}
|
key: base-assets-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
name: manylinux-x64 build
|
name: manylinux1-x64 build
|
||||||
no_output_timeout: 1.5h
|
no_output_timeout: 1.5h
|
||||||
command: |
|
command: |
|
||||||
docker load -i ~/docker/base.tar
|
docker load -i ~/docker/base.tar
|
||||||
make manylinux-x64
|
make manylinux1-x64
|
||||||
tagged=$(docker images -q -f 'since=dockcross/manylinux-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux-x64)
|
tagged=$(docker images -q -f 'since=dockcross/manylinux1-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux1-x64)
|
||||||
docker save -o ~/docker/manylinux-x64.tar dockcross/manylinux-x64:latest $tagged
|
docker save -o ~/docker/manylinux1-x64.tar dockcross/manylinux1-x64:latest $tagged
|
||||||
- run:
|
- run:
|
||||||
name: manylinux-x64 test
|
name: manylinux1-x64 test
|
||||||
command: |
|
command: |
|
||||||
make manylinux-x64.test
|
make manylinux1-x64.test
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: manylinux-x64-assets-{{ .Revision }}
|
key: manylinux1-x64-assets-{{ .Revision }}
|
||||||
paths: ~/docker/manylinux-x64.tar
|
paths: ~/docker/manylinux1-x64.tar
|
||||||
manylinux-x86:
|
manylinux1-x86:
|
||||||
<<: *build-settings
|
<<: *build-settings
|
||||||
steps:
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: base-assets-{{ .Revision }}
|
key: base-assets-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
name: manylinux-x86 build
|
name: manylinux1-x86 build
|
||||||
no_output_timeout: 1.5h
|
no_output_timeout: 1.5h
|
||||||
command: |
|
command: |
|
||||||
docker load -i ~/docker/base.tar
|
docker load -i ~/docker/base.tar
|
||||||
make manylinux-x86
|
make manylinux1-x86
|
||||||
tagged=$(docker images -q -f 'since=dockcross/manylinux-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux-x86)
|
tagged=$(docker images -q -f 'since=dockcross/manylinux1-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux1-x86)
|
||||||
docker save -o ~/docker/manylinux-x86.tar dockcross/manylinux-x86:latest $tagged
|
docker save -o ~/docker/manylinux1-x86.tar dockcross/manylinux1-x86:latest $tagged
|
||||||
- run:
|
- run:
|
||||||
name: manylinux-x86 test
|
name: manylinux1-x86 test
|
||||||
command: |
|
command: |
|
||||||
make manylinux-x86.test
|
make manylinux1-x86.test
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: manylinux-x86-assets-{{ .Revision }}
|
key: manylinux1-x86-assets-{{ .Revision }}
|
||||||
paths: ~/docker/manylinux-x86.tar
|
paths: ~/docker/manylinux1-x86.tar
|
||||||
|
manylinux2010-x64:
|
||||||
|
<<: *build-settings
|
||||||
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
key: base-assets-{{ .Revision }}
|
||||||
|
- run:
|
||||||
|
name: manylinux2010-x64 build
|
||||||
|
no_output_timeout: 1.5h
|
||||||
|
command: |
|
||||||
|
docker load -i ~/docker/base.tar
|
||||||
|
make manylinux2010-x64
|
||||||
|
tagged=$(docker images -q -f 'since=dockcross/manylinux2010-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux2010-x64)
|
||||||
|
docker save -o ~/docker/manylinux2010-x64.tar dockcross/manylinux2010-x64:latest $tagged
|
||||||
|
- run:
|
||||||
|
name: manylinux2010-x64 test
|
||||||
|
command: |
|
||||||
|
make manylinux2010-x64.test
|
||||||
|
- save_cache:
|
||||||
|
key: manylinux2010-x64-assets-{{ .Revision }}
|
||||||
|
paths: ~/docker/manylinux2010-x64.tar
|
||||||
windows-static-x64:
|
windows-static-x64:
|
||||||
<<: *build-settings
|
<<: *build-settings
|
||||||
steps:
|
steps:
|
||||||
@ -618,27 +638,39 @@ jobs:
|
|||||||
docker push $tagged
|
docker push $tagged
|
||||||
fi
|
fi
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: manylinux-x64-assets-{{ .Revision }}
|
key: manylinux1-x64-assets-{{ .Revision }}
|
||||||
- deploy:
|
- deploy:
|
||||||
name: Deploy manylinux-x64
|
name: Deploy manylinux1-x64
|
||||||
command: |
|
command: |
|
||||||
docker load -i ~/docker/manylinux-x64.tar
|
docker load -i ~/docker/manylinux1-x64.tar
|
||||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
docker push dockcross/manylinux-x64:latest
|
docker push dockcross/manylinux1-x64:latest
|
||||||
tagged=$(docker images -q -f 'since=dockcross/manylinux-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux-x64)
|
tagged=$(docker images -q -f 'since=dockcross/manylinux1-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux1-x64)
|
||||||
docker push $tagged
|
docker push $tagged
|
||||||
fi
|
fi
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: manylinux-x86-assets-{{ .Revision }}
|
key: manylinux1-x86-assets-{{ .Revision }}
|
||||||
- deploy:
|
- deploy:
|
||||||
name: Deploy manylinux-x86
|
name: Deploy manylinux1-x86
|
||||||
command: |
|
command: |
|
||||||
docker load -i ~/docker/manylinux-x86.tar
|
docker load -i ~/docker/manylinux1-x86.tar
|
||||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
docker push dockcross/manylinux-x86:latest
|
docker push dockcross/manylinux1-x86:latest
|
||||||
tagged=$(docker images -q -f 'since=dockcross/manylinux-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux-x86)
|
tagged=$(docker images -q -f 'since=dockcross/manylinux1-x86:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux1-x86)
|
||||||
|
docker push $tagged
|
||||||
|
fi
|
||||||
|
- restore_cache:
|
||||||
|
key: manylinux2010-x64-assets-{{ .Revision }}
|
||||||
|
- deploy:
|
||||||
|
name: Deploy manylinux2010-x64
|
||||||
|
command: |
|
||||||
|
docker load -i ~/docker/manylinux2010-x64.tar
|
||||||
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||||
|
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
|
docker push dockcross/manylinux2010-x64:latest
|
||||||
|
tagged=$(docker images -q -f 'since=dockcross/manylinux2010-x64:latest' --format '{{.Repository}}:{{.Tag}}' | grep manylinux2010-x64)
|
||||||
docker push $tagged
|
docker push $tagged
|
||||||
fi
|
fi
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
@ -760,10 +792,13 @@ workflows:
|
|||||||
- linux-x86:
|
- linux-x86:
|
||||||
requires:
|
requires:
|
||||||
- base
|
- base
|
||||||
- manylinux-x64:
|
- manylinux1-x64:
|
||||||
requires:
|
requires:
|
||||||
- base
|
- base
|
||||||
- manylinux-x86:
|
- manylinux1-x86:
|
||||||
|
requires:
|
||||||
|
- base
|
||||||
|
- manylinux2010-x64:
|
||||||
requires:
|
requires:
|
||||||
- base
|
- base
|
||||||
- windows-static-x64:
|
- windows-static-x64:
|
||||||
@ -801,8 +836,9 @@ workflows:
|
|||||||
#- linux-ppc64le
|
#- linux-ppc64le
|
||||||
- linux-x64
|
- linux-x64
|
||||||
- linux-x86
|
- linux-x86
|
||||||
- manylinux-x64
|
- manylinux1-x64
|
||||||
- manylinux-x86
|
- manylinux1-x86
|
||||||
|
- manylinux2010-x64
|
||||||
- windows-static-x64
|
- windows-static-x64
|
||||||
- windows-static-x64-posix
|
- windows-static-x64-posix
|
||||||
- windows-static-x86
|
- windows-static-x86
|
||||||
|
79
Makefile
79
Makefile
@ -9,18 +9,18 @@ DOCKER = docker
|
|||||||
# Docker organization to pull the images from
|
# Docker organization to pull the images from
|
||||||
ORG = dockcross
|
ORG = dockcross
|
||||||
|
|
||||||
# Directory where to generate the dockcross script for each images (e.g bin/dockcross-manylinux-x64)
|
# Directory where to generate the dockcross script for each images (e.g bin/dockcross-manylinux1-x64)
|
||||||
BIN = ./bin
|
BIN = ./bin
|
||||||
|
|
||||||
# These images are built using the "build implicit rule"
|
# These images are built using the "build implicit rule"
|
||||||
STANDARD_IMAGES = linux-s390x android-arm android-arm64 linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 linux-armv7a linux-mips linux-mipsel linux-ppc64le windows-static-x86 windows-static-x64 windows-static-x64-posix windows-shared-x86 windows-shared-x64 windows-shared-x64-posix
|
STANDARD_IMAGES = linux-s390x android-arm android-arm64 linux-x86 linux-x64 linux-arm64 linux-armv5 linux-armv6 linux-armv7 linux-armv7a linux-mips linux-mipsel linux-ppc64le windows-static-x86 windows-static-x64 windows-static-x64-posix windows-shared-x86 windows-shared-x64 windows-shared-x64-posix
|
||||||
|
|
||||||
# Generated Dockerfiles.
|
# Generated Dockerfiles.
|
||||||
GEN_IMAGES = linux-s390x linux-mips manylinux-x86 manylinux-x64 web-wasm linux-arm64 windows-static-x86 windows-static-x64 windows-static-x64-posix windows-shared-x86 windows-shared-x64 windows-shared-x64-posix linux-armv7 linux-armv7a linux-armv5
|
GEN_IMAGES = linux-s390x linux-mips manylinux1-x64 manylinux1-x86 manylinux2010-x64 web-wasm linux-arm64 windows-static-x86 windows-static-x64 windows-static-x64-posix windows-shared-x86 windows-shared-x64 windows-shared-x64-posix linux-armv7 linux-armv7a linux-armv5
|
||||||
GEN_IMAGE_DOCKERFILES = $(addsuffix /Dockerfile,$(GEN_IMAGES))
|
GEN_IMAGE_DOCKERFILES = $(addsuffix /Dockerfile,$(GEN_IMAGES))
|
||||||
|
|
||||||
# These images are expected to have explicit rules for *both* build and testing
|
# These images are expected to have explicit rules for *both* build and testing
|
||||||
NON_STANDARD_IMAGES = web-wasm manylinux-x64 manylinux-x86
|
NON_STANDARD_IMAGES = web-wasm manylinux1-x64 manylinux1-x86 manylinux2010-x64
|
||||||
|
|
||||||
DOCKER_COMPOSITE_SOURCES = common.docker common.debian common.manylinux common.crosstool common.windows
|
DOCKER_COMPOSITE_SOURCES = common.docker common.debian common.manylinux common.crosstool common.windows
|
||||||
|
|
||||||
@ -97,54 +97,81 @@ web-wasm.test: web-wasm
|
|||||||
$(BIN)/dockcross-web-wasm python test/run.py --exe-suffix ".js"
|
$(BIN)/dockcross-web-wasm python test/run.py --exe-suffix ".js"
|
||||||
rm -rf web-wasm/test
|
rm -rf web-wasm/test
|
||||||
|
|
||||||
#
|
|
||||||
# manylinux-x64
|
|
||||||
|
|
||||||
manylinux-x64: manylinux-x64/Dockerfile
|
#
|
||||||
|
# manylinux2010-x64
|
||||||
|
#
|
||||||
|
|
||||||
|
manylinux2010-x64: manylinux2010-x64/Dockerfile
|
||||||
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
||||||
$(DOCKER) build -t $(ORG)/manylinux-x64:latest \
|
$(DOCKER) build -t $(ORG)/manylinux2010-x64:latest \
|
||||||
--build-arg IMAGE=$(ORG)/manylinux-x64 \
|
--build-arg IMAGE=$(ORG)/manylinux2010-x64 \
|
||||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||||
-f manylinux-x64/Dockerfile .
|
-f manylinux2010-x64/Dockerfile .
|
||||||
$(DOCKER) build -t $(ORG)/manylinux-x64:$(TAG) \
|
$(DOCKER) build -t $(ORG)/manylinux2010-x64:$(TAG) \
|
||||||
--build-arg IMAGE=$(ORG)/manylinux-x64 \
|
--build-arg IMAGE=$(ORG)/manylinux2010-x64 \
|
||||||
--build-arg VERSION=$(TAG) \
|
--build-arg VERSION=$(TAG) \
|
||||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||||
-f manylinux-x64/Dockerfile .
|
-f manylinux2010-x64/Dockerfile .
|
||||||
rm -rf $@/imagefiles
|
rm -rf $@/imagefiles
|
||||||
|
|
||||||
manylinux-x64.test: manylinux-x64
|
manylinux2010-x64.test: manylinux2010-x64
|
||||||
$(DOCKER) run $(RM) dockcross/manylinux-x64 > $(BIN)/dockcross-manylinux-x64 && chmod +x $(BIN)/dockcross-manylinux-x64
|
$(DOCKER) run $(RM) dockcross/manylinux2010-x64 > $(BIN)/dockcross-manylinux2010-x64 && chmod +x $(BIN)/dockcross-manylinux2010-x64
|
||||||
$(BIN)/dockcross-manylinux-x64 /opt/python/cp35-cp35m/bin/python test/run.py
|
$(BIN)/dockcross-manylinux2010-x64 /opt/python/cp35-cp35m/bin/python test/run.py
|
||||||
|
|
||||||
#
|
#
|
||||||
# manylinux-x86
|
# manylinux1-x64
|
||||||
#
|
#
|
||||||
|
|
||||||
manylinux-x86: manylinux-x86/Dockerfile
|
manylinux1-x64: manylinux1-x64/Dockerfile
|
||||||
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
||||||
$(DOCKER) build -t $(ORG)/manylinux-x86:latest \
|
$(DOCKER) build -t $(ORG)/manylinux1-x64:latest \
|
||||||
--build-arg IMAGE=$(ORG)/manylinux-x86 \
|
--build-arg IMAGE=$(ORG)/manylinux1-x64 \
|
||||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||||
-f manylinux-x86/Dockerfile .
|
-f manylinux1-x64/Dockerfile .
|
||||||
$(DOCKER) build -t $(ORG)/manylinux-x86:$(TAG) \
|
$(DOCKER) build -t $(ORG)/manylinux1-x64:$(TAG) \
|
||||||
--build-arg IMAGE=$(ORG)/manylinux-x86 \
|
--build-arg IMAGE=$(ORG)/manylinux1-x64 \
|
||||||
--build-arg VERSION=$(TAG) \
|
--build-arg VERSION=$(TAG) \
|
||||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||||
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||||
-f manylinux-x86/Dockerfile .
|
-f manylinux1-x64/Dockerfile .
|
||||||
rm -rf $@/imagefiles
|
rm -rf $@/imagefiles
|
||||||
|
|
||||||
manylinux-x86.test: manylinux-x86
|
manylinux1-x64.test: manylinux1-x64
|
||||||
$(DOCKER) run $(RM) dockcross/manylinux-x86 > $(BIN)/dockcross-manylinux-x86 && chmod +x $(BIN)/dockcross-manylinux-x86
|
$(DOCKER) run $(RM) dockcross/manylinux1-x64 > $(BIN)/dockcross-manylinux1-x64 && chmod +x $(BIN)/dockcross-manylinux1-x64
|
||||||
$(BIN)/dockcross-manylinux-x86 /opt/python/cp35-cp35m/bin/python test/run.py
|
$(BIN)/dockcross-manylinux1-x64 /opt/python/cp35-cp35m/bin/python test/run.py
|
||||||
|
|
||||||
|
#
|
||||||
|
# manylinux1-x86
|
||||||
|
#
|
||||||
|
|
||||||
|
manylinux1-x86: manylinux1-x86/Dockerfile
|
||||||
|
mkdir -p $@/imagefiles && cp -r imagefiles $@/
|
||||||
|
$(DOCKER) build -t $(ORG)/manylinux1-x86:latest \
|
||||||
|
--build-arg IMAGE=$(ORG)/manylinux1-x86 \
|
||||||
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||||
|
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||||
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||||
|
-f manylinux1-x86/Dockerfile .
|
||||||
|
$(DOCKER) build -t $(ORG)/manylinux1-x86:$(TAG) \
|
||||||
|
--build-arg IMAGE=$(ORG)/manylinux1-x86 \
|
||||||
|
--build-arg VERSION=$(TAG) \
|
||||||
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||||
|
--build-arg VCS_URL=`git config --get remote.origin.url` \
|
||||||
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||||
|
-f manylinux1-x86/Dockerfile .
|
||||||
|
rm -rf $@/imagefiles
|
||||||
|
|
||||||
|
manylinux1-x86.test: manylinux1-x86
|
||||||
|
$(DOCKER) run $(RM) dockcross/manylinux1-x86 > $(BIN)/dockcross-manylinux1-x86 && chmod +x $(BIN)/dockcross-manylinux1-x86
|
||||||
|
$(BIN)/dockcross-manylinux1-x86 /opt/python/cp35-cp35m/bin/python test/run.py
|
||||||
|
|
||||||
#
|
#
|
||||||
# base
|
# base
|
||||||
|
24
README.rst
24
README.rst
@ -182,19 +182,27 @@ dockcross/linux-x86
|
|||||||
|linux-x86-images| Linux i686 cross compiler.
|
|linux-x86-images| Linux i686 cross compiler.
|
||||||
|
|
||||||
|
|
||||||
.. |manylinux-x64-images| image:: https://images.microbadger.com/badges/image/dockcross/manylinux-x64.svg
|
.. |manylinux2010-x64-images| image:: https://images.microbadger.com/badges/image/dockcross/manylinux2010-x64.svg
|
||||||
:target: https://microbadger.com/images/dockcross/manylinux-x64
|
:target: https://microbadger.com/images/dockcross/manylinux2010-x64
|
||||||
|
|
||||||
dockcross/manylinux-x64
|
dockcross/manylinux2010-x64
|
||||||
|manylinux-x64-images| Docker `manylinux <https://github.com/pypa/manylinux>`_ image for building Linux x86_64 / amd64 `Python wheel packages <http://pythonwheels.com/>`_. It includes Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
|
|manylinux2010-x64-images| Docker `manylinux2010 <https://github.com/pypa/manylinux>`_ image for building Linux x86_64 / amd64 `Python wheel packages <http://pythonwheels.com/>`_. It includes Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
|
||||||
Also has support for the dockcross script, and it has installations of CMake, Ninja, and `scikit-build <http://scikit-build.org>`_
|
Also has support for the dockcross script, and it has installations of CMake, Ninja, and `scikit-build <http://scikit-build.org>`_
|
||||||
|
|
||||||
|
|
||||||
.. |manylinux-x86-images| image:: https://images.microbadger.com/badges/image/dockcross/manylinux-x86.svg
|
.. |manylinux1-x64-images| image:: https://images.microbadger.com/badges/image/dockcross/manylinux1-x64.svg
|
||||||
:target: https://microbadger.com/images/dockcross/manylinux-x86
|
:target: https://microbadger.com/images/dockcross/manylinux1-x64
|
||||||
|
|
||||||
dockcross/manylinux-x86
|
dockcross/manylinux1-x64
|
||||||
|manylinux-x86-images| Docker `manylinux <https://github.com/pypa/manylinux>`_ image for building Linux i686 `Python wheel packages <http://pythonwheels.com/>`_. It includes Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
|
|manylinux1-x64-images| Docker `manylinux1 <https://github.com/pypa/manylinux/tree/manylinux1>`_ image for building Linux x86_64 / amd64 `Python wheel packages <http://pythonwheels.com/>`_. It includes Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
|
||||||
|
Also has support for the dockcross script, and it has installations of CMake, Ninja, and `scikit-build <http://scikit-build.org>`_
|
||||||
|
|
||||||
|
|
||||||
|
.. |manylinux1-x86-images| image:: https://images.microbadger.com/badges/image/dockcross/manylinux1-x86.svg
|
||||||
|
:target: https://microbadger.com/images/dockcross/manylinux1-x86
|
||||||
|
|
||||||
|
dockcross/manylinux1-x86
|
||||||
|
|manylinux1-x86-images| Docker `manylinux1 <https://github.com/pypa/manylinux/tree/manylinux1>`_ image for building Linux i686 `Python wheel packages <http://pythonwheels.com/>`_. It includes Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
|
||||||
Also has support for the dockcross script, and it has installations of CMake, Ninja, and `scikit-build <http://scikit-build.org>`_
|
Also has support for the dockcross script, and it has installations of CMake, Ninja, and `scikit-build <http://scikit-build.org>`_
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ COPY \
|
|||||||
/buildscripts/
|
/buildscripts/
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
X86_FLAG=$([ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ] && echo "-32" || echo "") && \
|
X86_FLAG=$([ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux1-x86" ] && echo "-32" || echo "") && \
|
||||||
/buildscripts/build-and-install-openssl.sh $X86_FLAG && \
|
/buildscripts/build-and-install-openssl.sh $X86_FLAG && \
|
||||||
/buildscripts/build-and-install-openssh.sh && \
|
/buildscripts/build-and-install-openssh.sh && \
|
||||||
/buildscripts/build-and-install-curl.sh && \
|
/buildscripts/build-and-install-curl.sh && \
|
||||||
|
@ -18,9 +18,10 @@ RUN \
|
|||||||
&& \
|
&& \
|
||||||
yum clean all && \
|
yum clean all && \
|
||||||
/buildscripts/install-gosu-binary.sh && \
|
/buildscripts/install-gosu-binary.sh && \
|
||||||
# Remove sudo provided by "devtoolset-2" since it doesn't work with
|
# Remove sudo provided by "devtoolset-2" and "devtoolset-8" since it doesn't work with
|
||||||
# our sudo wrapper calling gosu.
|
# our sudo wrapper calling gosu.
|
||||||
rm /opt/rh/devtoolset-2/root/usr/bin/sudo && \
|
rm -f /opt/rh/devtoolset-2/root/usr/bin/sudo && \
|
||||||
|
rm -f /opt/rh/devtoolset-8/root/usr/bin/sudo && \
|
||||||
/buildscripts/install-python-packages.sh && \
|
/buildscripts/install-python-packages.sh && \
|
||||||
rm -rf /buildscripts
|
rm -rf /buildscripts
|
||||||
|
|
||||||
|
@ -35,10 +35,10 @@ gpg --verify /usr/local/bin/gosu.asc
|
|||||||
|
|
||||||
# cleanup -- need to kill agent so that there is no race condition for
|
# cleanup -- need to kill agent so that there is no race condition for
|
||||||
# agent files in $GNUPGHOME. Only need to do this on newer distros
|
# agent files in $GNUPGHOME. Only need to do this on newer distros
|
||||||
# with gpgconf installed
|
# with gpgconf installed supporting the option.
|
||||||
GPGCONF_BIN="$(command -v gpgconf)" || true
|
GPGCONF_BIN="$(command -v gpgconf)" || true
|
||||||
if [ -n "$GPGCONF_BIN" ] && [ -x $GPGCONF_BIN ]; then
|
if [ -n "$GPGCONF_BIN" ] && [ -x $GPGCONF_BIN ] && [[ $($GPGCONF_BIN --help | grep -- "--kill" || true) != "" ]]; then
|
||||||
gpgconf --kill gpg-agent
|
gpgconf --kill gpg-agent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc
|
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
for PIP in /opt/python/*/bin/pip; do
|
for PIP in /opt/python/*/bin/pip; do
|
||||||
$PIP install --disable-pip-version-check --upgrade pip
|
$PIP install --disable-pip-version-check --upgrade pip
|
||||||
$PIP install scikit-build==0.8.1
|
$PIP install scikit-build==0.9.0
|
||||||
done
|
done
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM scikitbuild/manylinux1_x86_64:91cb02fb8
|
FROM scikitbuild/manylinux1_x86_64:91cb02fb8
|
||||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux-x64
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux1-x64
|
||||||
|
|
||||||
#include "common.manylinux"
|
#include "common.manylinux"
|
||||||
|
|
||||||
@ -19,12 +19,12 @@ ENV AS=${CROSS_ROOT}/as \
|
|||||||
|
|
||||||
COPY linux-x64/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
COPY linux-x64/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
||||||
|
|
||||||
COPY manylinux-x64/Toolchain.cmake ${CROSS_ROOT}/../lib/
|
COPY manylinux1-x64/Toolchain.cmake ${CROSS_ROOT}/../lib/
|
||||||
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/../lib/Toolchain.cmake
|
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/../lib/Toolchain.cmake
|
||||||
|
|
||||||
# Build-time metadata as defined at http://label-schema.org
|
# Build-time metadata as defined at http://label-schema.org
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG IMAGE=dockcross/manylinux-x64
|
ARG IMAGE=dockcross/manylinux1-x64
|
||||||
ARG VERSION=latest
|
ARG VERSION=latest
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
ARG VCS_URL
|
ARG VCS_URL
|
@ -1,7 +1,7 @@
|
|||||||
FROM scikitbuild/manylinux1_i686:91cb02fb8
|
FROM scikitbuild/manylinux1_i686:91cb02fb8
|
||||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
||||||
|
|
||||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux-x86
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux1-x86
|
||||||
|
|
||||||
#include "common.manylinux"
|
#include "common.manylinux"
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ ENV AS=${CROSS_ROOT}/as \
|
|||||||
|
|
||||||
COPY linux-x86/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
COPY linux-x86/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
||||||
|
|
||||||
COPY manylinux-x86/Toolchain.cmake ${CROSS_ROOT}/../lib/
|
COPY manylinux1-x86/Toolchain.cmake ${CROSS_ROOT}/../lib/
|
||||||
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/../lib/Toolchain.cmake
|
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/../lib/Toolchain.cmake
|
||||||
|
|
||||||
COPY linux-x86/linux32-entrypoint.sh /dockcross/
|
COPY linux-x86/linux32-entrypoint.sh /dockcross/
|
||||||
@ -27,7 +27,7 @@ ENTRYPOINT ["/dockcross/linux32-entrypoint.sh"]
|
|||||||
|
|
||||||
# Build-time metadata as defined at http://label-schema.org
|
# Build-time metadata as defined at http://label-schema.org
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG IMAGE=dockcross/manylinux-x86
|
ARG IMAGE=dockcross/manylinux1-x86
|
||||||
ARG VERSION=latest
|
ARG VERSION=latest
|
||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
ARG VCS_URL
|
ARG VCS_URL
|
37
manylinux2010-x64/Dockerfile.in
Normal file
37
manylinux2010-x64/Dockerfile.in
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
FROM scikitbuild/manylinux2010_x86_64:09d11d5f8
|
||||||
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
||||||
|
|
||||||
|
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/manylinux2010-x64
|
||||||
|
|
||||||
|
#include "common.manylinux"
|
||||||
|
|
||||||
|
#include "common.docker"
|
||||||
|
|
||||||
|
ENV CROSS_TRIPLE x86_64-linux-gnu
|
||||||
|
ENV CROSS_ROOT /opt/rh/devtoolset-8/root/usr/bin
|
||||||
|
ENV AS=${CROSS_ROOT}/as \
|
||||||
|
AR=${CROSS_ROOT}/ar \
|
||||||
|
CC=${CROSS_ROOT}/gcc \
|
||||||
|
CPP=${CROSS_ROOT}/cpp \
|
||||||
|
CXX=${CROSS_ROOT}/g++ \
|
||||||
|
LD=${CROSS_ROOT}/ld \
|
||||||
|
FC=${CROSS_ROOT}/gfortran
|
||||||
|
|
||||||
|
COPY linux-x64/${CROSS_TRIPLE}-noop.sh /usr/bin/${CROSS_TRIPLE}-noop
|
||||||
|
|
||||||
|
COPY manylinux2010-x64/Toolchain.cmake ${CROSS_ROOT}/../lib/
|
||||||
|
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/../lib/Toolchain.cmake
|
||||||
|
|
||||||
|
# Build-time metadata as defined at http://label-schema.org
|
||||||
|
ARG BUILD_DATE
|
||||||
|
ARG IMAGE=dockcross/manylinux2010-x64
|
||||||
|
ARG VERSION=latest
|
||||||
|
ARG VCS_REF
|
||||||
|
ARG VCS_URL
|
||||||
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||||
|
org.label-schema.name=$IMAGE \
|
||||||
|
org.label-schema.version=$VERSION \
|
||||||
|
org.label-schema.vcs-ref=$VCS_REF \
|
||||||
|
org.label-schema.vcs-url=$VCS_URL \
|
||||||
|
org.label-schema.schema-version="1.0"
|
||||||
|
ENV DEFAULT_DOCKCROSS_IMAGE ${IMAGE}:${VERSION}
|
12
manylinux2010-x64/Toolchain.cmake
Normal file
12
manylinux2010-x64/Toolchain.cmake
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||||
|
|
||||||
|
set(cross_triple "x86_64-linux-gnu")
|
||||||
|
|
||||||
|
set(CMAKE_C_COMPILER /opt/rh/devtoolset-8/root/usr/bin/gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER /opt/rh/devtoolset-8/root/usr/bin/g++)
|
||||||
|
set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
||||||
|
set(CMAKE_Fortran_COMPILER /opt/rh/devtoolset-8/root/usr/bin/gfortran)
|
||||||
|
|
||||||
|
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/${cross_triple}-noop)
|
Loading…
Reference in New Issue
Block a user