-
Notifications
You must be signed in to change notification settings - Fork 1
/
MPP-devtoolset7-centos6-x86_64-v1.def
95 lines (82 loc) · 3.46 KB
/
MPP-devtoolset7-centos6-x86_64-v1.def
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright (C) 2021 Andrii Verbytskyi [email protected]
bootstrap: docker
From: centos:6
%post
cat /etc/yum.repos.d/CentOS-Base.repo
cat <<EOF > /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the #mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-\$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=os&infra=\$infra
baseurl=http://vault.centos.org/centos/\$releasever/os/\$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-\$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=updates&infra=\$infra
baseurl=http://vault.centos.org/centos/\$releasever/updates/\$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-\$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=extras&infra=\$infra
baseurl=http://vault.centos.org/centos/\$releasever/extras/\$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-\$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=centosplus&infra=\$infra
baseurl=http://mirror.centos.org/centos/\$releasever/centosplus/\$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-\$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=contrib&infra=\$infra
baseurl=http://mirror.centos.org/centos/\$releasever/contrib/\$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
EOF
cat /etc/yum.repos.d/CentOS-Base.repo
yum -y update
yum -y install centos-release-scl
cat /etc/yum.repos.d/*repo
ls /etc/yum.repos.d/*repo
sed -i 's/^mirrorlist=/#/g' /etc/yum.repos.d/CentOS-SCLo-scl.repo
sed -i 's/^#\ baseurl/baseurl/g' /etc/yum.repos.d/CentOS-SCLo-scl.repo
sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/CentOS-SCLo-scl.repo
sed -i 's/mirror/vault/g' /etc/yum.repos.d/CentOS-SCLo-scl.repo
sed -i 's/^mirrorlist=/#/g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
sed -i 's/^#\ baseurl/baseurl/g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
sed -i 's/mirror/vault/g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
cat /etc/yum.repos.d/CentOS-SCLo-*.repo
yum -y install https://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org//epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y install scl-utils
yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-binutils
yum -y install cmake3 pythia8* HepMC*
#scl enable devtoolset-7 bash
#gcc --version
#cmake --version
%environment
export LC_ALL=C
%runscript
#Here can be some random stuff
date