Skip to content
Snippets Groups Projects
Commit ec0ff728 authored by Tim Schoof's avatar Tim Schoof Committed by Sergey Yakubov
Browse files

Create a manylinux2010 build environment docker image

parent 87e2b3f2
No related branches found
No related tags found
No related merge requests found
FROM quay.io/pypa/manylinux2010_x86_64
ENV GOPATH /tmp
RUN yum update -y && yum install -y golang wget zlib-devel
ADD install_curl.sh install_curl.sh
RUN ./install_curl.sh /curl
ADD build.sh /bin/build.sh
\ No newline at end of file
#!/usr/bin/env bash
for python_path in /opt/python/cp{27,35,36,37}*m; do
python=$python_path/bin/python
pip=$python_path/bin/pip
cd /asapo/build
cmake -DCMAKE_BUILD_TYPE="Release" -DLIBCURL_DIR=/curl -DPython_EXECUTABLE=$python ..
cd consumer \
&& $pip install -r /asapo/consumer/api/python/dev-requirements.txt \
&& make \
&& $pip wheel api/python/source_dist_linux/dist/*.tar.gz -w wheelhouse --no-deps
cd ../producer \
&& $pip install -r /asapo/producer/api/python/dev-requirements.txt \
&& make \
&& $pip wheel api/python/source_dist_linux/dist/*.tar.gz -w wheelhouse --no-deps
done
cd ../consumer \
&& for wheel in wheelhouse/asapo_consumer*.whl; do
auditwheel repair $wheel --plat manylinux2010_x86_64 -w /asapo/build/wheelhouse
done
cd ../producer \
&& for wheel in wheelhouse/asapo_producer*.whl; do
auditwheel repair $wheel --plat manylinux2010_x86_64 -w /asapo/build/wheelhouse
done
\ No newline at end of file
#!/usr/bin/env bash
docker build -t yakser/asapo-env:manylinux2010 .
#docker push yakser/asapo-env:ubuntu16.04
#!/usr/bin/env bash
mkdir -p $1
cd $1
wget https://curl.haxx.se/download/curl-7.58.0.tar.gz
tar xzf curl-7.58.0.tar.gz
cd curl-7.58.0
./configure --without-ssl --disable-shared --disable-manual --disable-ares --disable-cookies \
--disable-crypto-auth --disable-ipv6 --disable-proxy --disable-unix-sockets \
--without-libidn --without-librtmp --without-zlib --disable-ldap \
--disable-libcurl-option --prefix=`pwd`/../
make
make install
cd -
rm -rf bin share curl-7.58.0
rm curl-7.58.0.tar.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment