-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 1.18 KB
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM centos:centos7
# Update and set repositories
RUN yum -y update; yum clean all
RUN yum -y install epel-release centos-release-scl; yum clean all
# Basic dev tools
RUN yum -y install devtoolset-8 git wget; yum clean all
# Install newer cmake seperate from system
RUN mkdir /cmake/
RUN wget -q --no-check-certificate https://cmake.org/files/v3.16/cmake-3.16.1-Linux-x86_64.tar.gz \
&& tar -xzf cmake-3.16.1-Linux-x86_64.tar.gz \
--exclude=bin/cmake-gui \
--exclude=doc/cmake \
--exclude=share/cmake-3.12/Help \
&& cp -fR cmake-3.16.1-Linux-x86_64/* /cmake/ \
&& rm -rf cmake-3.16.1-Linux-x86_64 \
&& rm cmake-3.16.1-Linux-x86_64.tar.gz
# Install newer python version
RUN yum -y install rh-python36; yum clean all
# Use newer cmake
ENV PATH="/cmake/bin:${PATH}"
COPY . /pyjosim/
RUN scl enable rh-python36 "pip3.6 install --upgrade pip wheel auditwheel"
RUN scl enable devtoolset-8 rh-python36 "cd pyjosim && python3.6 setup.py bdist_wheel"
RUN yum -y install patchelf
RUN scl enable rh-python36 "cd pyjosim && auditwheel show dist/*.whl"
RUN scl enable rh-python36 "cd pyjosim && auditwheel repair --plat=manylinux2014_x86_64 dist/*.whl"
RUN ls pyjosim/dist