forked from OpenXiangShan/xs-env
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcentos.Dockerfile
More file actions
24 lines (19 loc) · 984 Bytes
/
Copy pathcentos.Dockerfile
File metadata and controls
24 lines (19 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM centos:7
# WARNING:
# This Docker image is only for NEMU/SPIKE compilation.
# You CANNOT use this image to BUILD XiangShan.
# use baseurl instead of mirrorlist
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
RUN yum clean all && yum makecache
RUN yum install -y centos-release-scl
# use baseurl instead of mirrorlist in CentOS-SCLo-scl.repo
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
RUN yum clean all && yum makecache
RUN yum install -y git dtc devtoolset-11 llvm-toolset-7 bison flex
RUN echo "source /opt/rh/devtoolset-11/enable" >> /etc/profile
RUN echo "source /opt/rh/llvm-toolset-7/enable" >> /etc/profile
CMD [ "/bin/bash" ]