diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-09 16:03:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 16:03:11 -0400 |
commit | e1b47296daaf4148d9970b59757a86e71bf8bb10 (patch) | |
tree | 8193d7cc884d2b8242d7bf8c1acb8b0244829316 /contrib/cirrus/packer/image-builder-image_base-setup.sh | |
parent | 08b602043ec07601b9be23c449c7773067683d90 (diff) | |
parent | ed1e87ecb57d2280ef3b02e2b437ad9b378d21a2 (diff) | |
download | podman-e1b47296daaf4148d9970b59757a86e71bf8bb10.tar.gz podman-e1b47296daaf4148d9970b59757a86e71bf8bb10.tar.bz2 podman-e1b47296daaf4148d9970b59757a86e71bf8bb10.zip |
Merge pull request #7485 from cevich/migrate_packer
Cirrus: Obsolete CI:IMG process & related files
Diffstat (limited to 'contrib/cirrus/packer/image-builder-image_base-setup.sh')
-rw-r--r-- | contrib/cirrus/packer/image-builder-image_base-setup.sh | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/contrib/cirrus/packer/image-builder-image_base-setup.sh b/contrib/cirrus/packer/image-builder-image_base-setup.sh deleted file mode 100644 index 26fbe2903..000000000 --- a/contrib/cirrus/packer/image-builder-image_base-setup.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash - -# This script is called by packer on a vanilla CentOS VM, to setup the image -# used for building images FROM base images. It's not intended to be used -# outside of this context. - -set -e - -[[ "$1" == "post" ]] || exit 0 # pre stage not needed - -# Load in library (copied by packer, before this script was run) -source $GOSRC/$SCRIPT_BASE/lib.sh - -req_env_var TIMESTAMP GOSRC SCRIPT_BASE PACKER_BASE - -install_ooe - -echo "Updating packages" -ooe.sh sudo yum -y update - -echo "Configuring repositories" -ooe.sh sudo yum -y install centos-release-scl epel-release - -echo "Installing packages" -ooe.sh sudo yum -y install \ - genisoimage \ - golang \ - google-cloud-sdk \ - libvirt \ - libvirt-admin \ - libvirt-client \ - libvirt-daemon \ - make \ - python36 \ - python36-PyYAML \ - qemu-img \ - qemu-kvm \ - qemu-kvm-tools \ - qemu-user \ - rsync \ - rng-tools \ - unzip \ - util-linux \ - vim - -sudo systemctl enable rngd - -sudo ln -s /usr/libexec/qemu-kvm /usr/bin/ - -sudo tee /etc/modprobe.d/kvm-nested.conf <<EOF -options kvm-intel nested=1 -options kvm-intel enable_shadow_vmcs=1 -options kvm-intel enable_apicv=1 -options kvm-intel ept=1 -EOF - -echo "Installing packer" -sudo mkdir -p /root/$(basename $PACKER_BASE) -sudo cp $GOSRC/$PACKER_BASE/*packer* /root/$(basename $PACKER_BASE) -sudo mkdir -p /root/$(basename $SCRIPT_BASE) -sudo cp $GOSRC/$SCRIPT_BASE/*.sh /root/$(basename $SCRIPT_BASE) - -install_scl_git - -echo "Cleaning up" -cd / -rm -rf $GOSRC - -rh_finalize - -echo "SUCCESS!" |