github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/tests/cloudinit/centos.cloudinit (about) 1 #!/bin/bash 2 set -e 3 set -x 4 5 groupadd rkt || true 6 gpasswd -a centos rkt || true 7 8 #yum update -y 9 yum -y -v groupinstall "Development Tools" 10 yum -y -v install wget squashfs-tools patch glibc-static gnupg libacl-devel openssl-devel bc 11 yum -y -v install java # for Jenkins 12 dnf -y -v install iptables intltool 13 14 pushd /tmp 15 wget -c https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz 16 popd 17 tar -C /usr/local -xzf /tmp/go1.5.3.linux-amd64.tar.gz 18 ln -sf /usr/local/go/bin/go /usr/local/bin/go 19 ln -sf /usr/local/go/bin/godoc /usr/local/bin/godoc 20 ln -sf /usr/local/go/bin/gofmt /usr/local/bin/gofmt 21 22 # sudo/su without tty is disabled on old CentOS. 23 # https://bugzilla.redhat.com/show_bug.cgi?id=1020147 24 # Cannot workaround with /usr/bin/expect because this would need expect > 2.27 25 sed -i 's/ requiretty$/ !requiretty/g' /etc/sudoers