-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathAntaresDeps
37 lines (29 loc) · 1.37 KB
/
AntaresDeps
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
35
36
FROM centos:7
ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
DEBIAN_FRONTEND=noninteractive \
VCPKG_ROOT=/vcpkg \
ORTOOLS_DIR=ortools
CMD ["/bin/bash"]
# Install requirements : update repo
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo &&\
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo &&\
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo &&\
yum install -y epel-release &&\
yum install -y git redhat-lsb-core make wget centos-release-scl scl-utils python3 &&\
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo &&\
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo &&\
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y git redhat-lsb-core make wget centos-release-scl scl-utils rpm-build && \
yum install -y devtoolset-11 && \
yum install -y rh-git227-git ccache
RUN yum install -y unzip libuuid-devel wxGTK3-devel
RUN yum install -y python3-pip && python3 -m pip install --upgrade pip && pip3 install pytest numpy pandas
# Install requirements
RUN rm -rf /var/cache/yum
RUN echo "source /opt/rh/devtoolset-11/enable" >> /etc/bashrc
SHELL ["/bin/bash", "--login", "-c"]
# Install CMake
RUN pip3 install cmake==3.28.4