Debian Codegraph @

utils/ManyLinux1_64bit_patch/Dockerfile

raw
1 # step 1: install requirements for building pyca manylinux1_x86_64
2 # copied from https://github.com/pyca/infra/tree/147cd4e521a2cfac822d7902471de9408958cd31
3 FROM quay.io/pypa/manylinux1_x86_64
4 MAINTAINER Python Cryptographic Authority
5 WORKDIR /root
6 RUN yum -y install prelink && yum -y clean all
7 RUN curl -O https://www.cpan.org/src/5.0/perl-5.24.1.tar.gz
8 RUN tar zxf perl-5.24.1.tar.gz && \
9 cd perl-5.24.1 && \
10 ./Configure -des -Dprefix=/opt/perl && \
11 make -j4 && make install
12 ADD install_libffi.sh /root/install_libffi.sh
13 RUN sh install_libffi.sh manylinux1
14 ADD install_openssl.sh /root/install_openssl.sh
15 ADD openssl-version.sh /root/openssl-version.sh
16 RUN sh install_openssl.sh manylinux1
17 ADD install_virtualenv.sh /root/install_virtualenv.sh
18 RUN sh install_virtualenv.sh manylinux1
19
20 # step2: install requirements for building uamqp
21
22 # Build cmake 3.11
23 RUN pushd /tmp && \
24 curl -O https://cmake.org/files/v3.11/cmake-3.11.0.tar.gz && \
25 tar xvf cmake-3.11.0.tar.gz && \
26 cd cmake-3.11.0 && \
27 ./bootstrap && \
28 make && \
29 make install && \
30 popd
31
32 # Build libuuid
33 RUN pushd /tmp && \
34 curl -O https://cdn.kernel.org/pub/linux/utils/util-linux/v2.27/util-linux-2.27.1.tar.gz && \
35 tar xvf util-linux-2.27.1.tar.gz && \
36 cd util-linux-2.27.1 && \
37 ./configure --disable-shared --disable-all-programs --enable-libuuid CFLAGS=-fPIC && \
38 make && \
39 make install && \
40 popd