github.com/cptmikhailov/conmon@v2.0.20+incompatible/contrib/cirrus/packer/fedora_setup.sh (about) 1 #!/bin/bash 2 3 # This script is called by packer on the subject fedora VM, to setup the conmon 4 # build/test environment. It's not intended to be used outside of this context. 5 6 set -e 7 8 # Load in library (copied by packer, before this script was run) 9 source $SRC/$SCRIPT_BASE/lib.sh 10 11 req_env_var " 12 SRC $SRC 13 SCRIPT_BASE $SCRIPT_BASE 14 PACKER_BASE $PACKER_BASE 15 BUILT_IMAGE_SUFFIX $BUILT_IMAGE_SUFFIX 16 CRIO_REPO $CRIO_REPO 17 CRIO_SLUG $CRIO_SLUG 18 " 19 20 install_ooe 21 22 echo "Updating packages" 23 ooe.sh sudo dnf update -y 24 25 ooe.sh sudo dnf -y module install cri-o:1.13 26 27 echo "Installing dependencies" 28 29 ooe.sh sudo dnf -y install \ 30 atomic-registries \ 31 btrfs-progs-devel \ 32 buildah \ 33 container-selinux \ 34 containernetworking-plugins \ 35 cri-o \ 36 cri-tools \ 37 curl \ 38 device-mapper-devel \ 39 e2fsprogs-devel \ 40 findutils \ 41 gcc \ 42 git \ 43 glib2-devel \ 44 glibc-devel \ 45 glibc-static \ 46 golang \ 47 gpgme \ 48 gpgme-devel \ 49 grubby \ 50 hostname \ 51 iproute \ 52 iptables \ 53 krb5-workstation \ 54 kubernetes \ 55 libassuan \ 56 libassuan-devel \ 57 libblkid-devel \ 58 libffi-devel \ 59 libgpg-error-devel \ 60 libguestfs-tools \ 61 libseccomp-devel \ 62 libselinux-devel \ 63 libselinux-python \ 64 libsemanage-python \ 65 libvirt-client \ 66 libvirt-python \ 67 libxml2-devel \ 68 libxslt-devel \ 69 make \ 70 mlocate \ 71 nfs-utils \ 72 nmap-ncat \ 73 oci-register-machine \ 74 oci-systemd-hook \ 75 oci-umount \ 76 openssl \ 77 openssl-devel \ 78 ostree-devel \ 79 pkgconfig \ 80 podman \ 81 policycoreutils \ 82 python2-devel \ 83 python3-PyYAML \ 84 redhat-rpm-config \ 85 rpcbind \ 86 rsync \ 87 runc \ 88 sed \ 89 skopeo \ 90 socat \ 91 tar \ 92 vim \ 93 wget \ 94 zlib-devel 95 96 setup_gopath 97 98 install_crio_repo # git-repo for test-content 99 100 echo "Enabling localnet routing" 101 echo "net.ipv4.conf.all.route_localnet = 1" | sudo tee /etc/sysctl.d/route_localnet.conf 102 103 echo "Enabling container management of cgroups" 104 ooe.sh sudo setsebool -P container_manage_cgroup 1 105 106 rh_finalize # N/B: Halts system! 107 108 echo "SUCCESS!"