Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build x86 + arm builder images #254

Merged
merged 4 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docker/manylinux-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM quay.io/pypa/manylinux2014_x86_64
ARG base_image
FROM $base_image

RUN yum -y update; yum clean all

Expand All @@ -7,11 +8,12 @@ RUN yum -y install bzip2-devel \
python-devel && \
yum clean all

ENV ZLIB_MAJOR=1 ZLIB_MINOR=2 ZLIB_PATCH=11
ENV ZLIB_MAJOR=1 ZLIB_MINOR=2 ZLIB_PATCH=12

RUN curl -sSL https://zlib.net/zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH}.tar.gz | tar -xz && \
RUN curl https://zlib.net/zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH}.tar.gz --output zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH}.tar.gz && \
tar -xvf zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH}.tar.gz && \
cd zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH} && ./configure && make -j4 && make install && \
cd .. && rm -rf zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH}
cd .. && rm -rf zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH} zlib-${ZLIB_MAJOR}.${ZLIB_MINOR}.${ZLIB_PATCH}.tar.gz

ENV BOOST_MAJOR=1 BOOST_MINOR=74 BOOST_PATCH=0
RUN curl -s -SL http://sourceforge.net/projects/boost/files/boost/${BOOST_MAJOR}.${BOOST_MINOR}.${BOOST_PATCH}/boost_${BOOST_MAJOR}_${BOOST_MINOR}_${BOOST_PATCH}.tar.gz | tar xz && \
Expand Down
16 changes: 16 additions & 0 deletions docker/manylinux-builder/build_and_push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -euxo pipefail

docker build . \
-f Dockerfile \
--build-arg base_image="quay.io/pypa/manylinux2014_x86_64" \
-t keyvidev/manylinux-builder-x86_64

docker build . \
-f Dockerfile \
--build-arg base_image="quay.io/pypa/manylinux2014_aarch64" \
-t keyvidev/manylinux-builder-aarch64

docker push keyvidev/manylinux-builder-x86_64
docker push keyvidev/manylinux-builder-aarch64