Skip to content

Instantly share code, notes, and snippets.

@JacobCallahan
Last active March 1, 2018 19:46
Show Gist options
  • Save JacobCallahan/4f09f161e6f3c9a5a9a46feccdf01337 to your computer and use it in GitHub Desktop.
Save JacobCallahan/4f09f161e6f3c9a5a9a46feccdf01337 to your computer and use it in GitHub Desktop.
Used to build RHEL 6, 7.2, 7.4 content host images as well as download suse images to be used in Satellite 6 testing.
#!/bin/bash
git clone https://github.com/JacobCallahan/content-host-d.git
cd content-host-d
eho "Building rhel images"
for i in rhel6 rhel7 rhel74; do
git checkout $i
docker build -t ch-d:$i .
done
echo "Downloading sles images"
for i in sles11 sles12 suse; do
docker pull jacobcallahan/content-host-d:$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment