Skip to content

Commit

Permalink
Merge pull request replicatedhq#585 from replicatedhq/mike-rhel8-pack…
Browse files Browse the repository at this point in the history
…ages

ADD build for rhel-8 packages
  • Loading branch information
mzaneri committed Jul 7, 2020
2 parents 25f1a3e + 36fd128 commit 003c4a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bin/save-manifest-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ while read -r line; do
sudo chown -R $UID $OUT_DIR/ubuntu-16.04
;;
yum)
mkdir -p $OUT_DIR/rhel-7
mkdir -p $OUT_DIR/rhel-7 $OUT_DIR/rhel-8
package=$(echo $line | awk '{ print $2 }')

docker rm -f rhel-7-${package} 2>/dev/null || true
Expand All @@ -72,6 +72,16 @@ while read -r line; do
yumdownloader --resolve --destdir=/packages/archives -y $package"
docker cp rhel-7-${package}:/packages/archives $OUT_DIR/rhel-7
sudo chown -R $UID $OUT_DIR/rhel-7

docker rm -f rhel-8-${package} 2>/dev/null || true
docker run \
--name rhel-8-${package} \
centos:8 \
/bin/bash -c "\
mkdir -p /packages/archives && \
yumdownloader --resolve --destdir=/packages/archives -y $package"
docker cp rhel-8-${package}:/packages/archives $OUT_DIR/rhel-8
sudo chown -R $UID $OUT_DIR/rhel-8
;;
*)
echo "Unknown kind $kind in line: $line"
Expand Down

0 comments on commit 003c4a4

Please sign in to comment.