Skip to content

Commit

Permalink
generate-openshift-repo: make atomic-openshift repo
Browse files Browse the repository at this point in the history
This queries a repo file from a well known location for signed
`atomic-openshift` RPMs and drops a truncated version in the current
directory. (It drops the debug and source RPM portion of the repo)
  • Loading branch information
miabbott committed Sep 27, 2018
1 parent 51a8524 commit a683a4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generate-openshift-repo
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
set -xeuo pipefail

LATEST_OPENSHIFT_REPO=`curl https://storage.googleapis.com/origin-ci-test/releases/openshift/origin/master/.latest-rpms`
LATEST_ATOMIC_OPENSHIFT_REPO='http://download-node-02.eng.bos.redhat.com/rcm-guest/puddles/RHAOS/AtomicOpenShift-signed/3.11/latest/RH7-RHAOS-3.11.repo'

echo "[openshift]
name=openshift
baseurl=${LATEST_OPENSHIFT_REPO}
type=rpm
enabled=1
gpgcheck=0" > openshift.repo

curl -L -s "${LATEST_ATOMIC_OPENSHIFT_REPO}" | head -n 5 > atomic-openshift.repo
sed -i "1s|.*|[atomic-openshift]|" atomic-openshift.repo

0 comments on commit a683a4c

Please sign in to comment.