Created
May 20, 2019 10:06
-
-
Save ngrodzitski/1545d0d7e9e5ddd561f615b42f5d2d30 to your computer and use it in GitHub Desktop.
Sample Dockerfile with setting up Conan on CentOS 5 (old and almost unsupported)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM astj/centos5-vault | |
RUN yum install -y wget mc | |
RUN wget --no-check-certificate http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
RUN yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ \ | |
make zlib-devel python-setuptools readline-devel perl sqlite-devel | |
ENV PATH /opt/rh/devtoolset-2/root/usr/bin/:${PATH} | |
# wget https://www.openssl.org/source/openssl-1.0.2r.tar.gz | |
ENV OPENSSLVER 1.0.2r | |
COPY openssl-$OPENSSLVER.tar.gz openssl-$OPENSSLVER.tar.gz | |
RUN tar xf openssl-$OPENSSLVER.tar.gz && \ | |
cd openssl-$OPENSSLVER && \ | |
./config --prefix=/usr && \ | |
sed -i.orig '/^CFLAG/s/$/ -fPIC/' Makefile && \ | |
make && make install && \ | |
cd .. && \ | |
rm -rf openssl-$OPENSSLVER && rm openssl-$OPENSSLVER.tar.gz | |
# wget https://www.python.org/ftp/python/$PYTHONVER/Python-3.5.0.tgz | |
ENV PYTHONVER 3.5.0 | |
COPY Python-$PYTHONVER.tgz Python-$PYTHONVER.tgz | |
RUN tar xf Python-$PYTHONVER.tgz Python-$PYTHONVER && \ | |
cd Python-$PYTHONVER && \ | |
./configure && make && make install && \ | |
cd .. && \ | |
rm -fr Python-$PYTHONVER && rm Python-$PYTHONVER.tgz | |
RUN pip3 install --upgrade pip | |
RUN pip3 install setuptools -U | |
RUN pip3 install conan Cheetah3 | |
# wget https://github.com/Kitware/CMake/releases/download/v3.13.5/cmake-3.13.5.tar.gz | |
ENV CMAKEVER 3.13.5 | |
COPY cmake-$CMAKEVER.tar.gz cmake-$CMAKEVER.tar.gz | |
RUN tar xf cmake-$CMAKEVER.tar.gz && \ | |
cd cmake-$CMAKEVER && \ | |
./bootstrap && make -j3 && make install && \ | |
cd ../ && \ | |
rm -rf cmake-$CMAKEVER && rm cmake-$CMAKEVER.tar.gz | |
CMD [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment