File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,32 @@ REPO="sudo yum -y install https://download.postgresql.org/pub/repos/yum/reporpms
36
36
if [ " ${OS} " = " centos:7" ]; then
37
37
# install and set up components missing in docker image (sudo, wget, bc, unzip)
38
38
yum clean all
39
+ cat << REPO > /etc/yum.repos.d/CentOS-Base.repo
40
+ [base]
41
+ name=CentOS-\$ releasever - Base
42
+ baseurl=http://vault.centos.org/7.9.2009/os/\$ basearch/
43
+ gpgcheck=1
44
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
45
+
46
+ [updates]
47
+ name=CentOS-\$ releasever - Updates
48
+ baseurl=http://vault.centos.org/7.9.2009/updates/\$ basearch/
49
+ gpgcheck=1
50
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
51
+
52
+ [extras]
53
+ name=CentOS-\$ releasever - Extras
54
+ baseurl=http://vault.centos.org/7.9.2009/extras/\$ basearch/
55
+ gpgcheck=1
56
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
57
+
58
+ [centosplus]
59
+ name=CentOS-\$ releasever - Plus
60
+ baseurl=http://vault.centos.org/7.9.2009/centosplus/\$ basearch/
61
+ gpgcheck=1
62
+ enabled=0
63
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
64
+ REPO
39
65
yum update -y
40
66
yum install -y sudo
41
67
PACKAGE_MANAGER_INSTALL=" sudo yum -y install"
You can’t perform that action at this time.
0 commit comments