Commit 0a7f9362 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Update centos docker

parent 916ed6e7
FROM centos:7
FROM docker.io/centos:7
RUN yum install -y centos-release-scl epel-release
RUN yum install -y rh-python36-scldevel rh-python36-numpy rh-python36-python-pip devtoolset-8
SHELL [ "/usr/bin/scl", "enable", "devtoolset-8", "rh-python36" ]
RUN curl -OL https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-Linux-x86_64.tar.gz
RUN tar xzvf cmake-3.17.2-Linux-x86_64.tar.gz -C /opt
RUN ln -s /opt/cmake-3.17.2-Linux-x86_64/bin/* /usr/bin/
RUN scl enable rh-python36 devtoolset-8 'pip install ninja scikit-build'
RUN pip install ninja scikit-build
RUN yum install -y git doxygen java-1.8.0-openjdk-devel libxml2-devel zlib-devel boost169-devel openssl-devel libcurl-devel libuv-devel libuuid-devel
# cmake -DCMAKE_BUILD_TYPE=Debug -GNinja -DBOOST_INCLUDEDIR=/usr/include/boost169 -DBOOST_LIBRARYDIR=/usr/lib64/boost169 ..
FROM docker.io/centos:8
#RUN yum install -y centos-release-scl epel-release
#
#RUN yum install -y rh-python36-scldevel rh-python36-numpy rh-python36-python-pip devtoolset-8
#
#SHELL [ "/usr/bin/scl", "enable", "devtoolset-8", "rh-python36" ]
#
RUN dnf -y install dnf-plugins-core
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN dnf config-manager --set-enabled PowerTools epel-modular
RUN yum install -y python3 gcc boost-devel git doxygen java-1.8.0-openjdk-devel libxml2-devel zlib-devel boost169-devel openssl-devel libcurl-devel libuv libuuid-devel
RUN dnf -y module enable libuv
RUN yum install -y libuv-devel
RUN yum -y group install "Development Tools"
RUN curl -OL https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-Linux-x86_64.tar.gz
RUN tar xzvf cmake-3.17.2-Linux-x86_64.tar.gz -C /opt
RUN ln -s /opt/cmake-3.17.2-Linux-x86_64/bin/* /usr/bin/
RUN python3 -m pip install scikit-build ninja
#
## cmake -DCMAKE_BUILD_TYPE=Debug -GNinja ..
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment