summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/fah_setup.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-07 07:46:46 -0800
committerGitHub <noreply@github.com>2018-12-07 07:46:46 -0800
commitd4af59d57ce23747b255a466e1970f90d3e687fc (patch)
treeb8874e90303ec0f382b87448271d750b3b7a96cc /contrib/cirrus/packer/fah_setup.sh
parenta387c723a90a787a1d35c4a9b3b54347d5c08436 (diff)
parentcb900798ce63d8655740f93e0d0b9cc0ebd8144f (diff)
downloadpodman-d4af59d57ce23747b255a466e1970f90d3e687fc.tar.gz
podman-d4af59d57ce23747b255a466e1970f90d3e687fc.tar.bz2
podman-d4af59d57ce23747b255a466e1970f90d3e687fc.zip
Merge pull request #1788 from cevich/cirrus_base_images
Codify and document base-image production + Enable testing with Fedora
Diffstat (limited to 'contrib/cirrus/packer/fah_setup.sh')
-rw-r--r--contrib/cirrus/packer/fah_setup.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/cirrus/packer/fah_setup.sh b/contrib/cirrus/packer/fah_setup.sh
new file mode 100644
index 000000000..2e053b396
--- /dev/null
+++ b/contrib/cirrus/packer/fah_setup.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# This script is called by packer on the subject fah VM, to setup the podman
+# build/test environment. It's not intended to be used outside of this context.
+
+set -e
+
+# Load in library (copied by packer, before this script was run)
+source /tmp/libpod/$SCRIPT_BASE/lib.sh
+
+req_env_var "
+SCRIPT_BASE $SCRIPT_BASE
+"
+
+install_ooe
+
+ooe.sh sudo atomic host upgrade
+
+ooe.sh sudo rpm-ostree uninstall cloud-init
+
+rh_finalize
+
+echo "SUCCESS!"