Created
February 8, 2016 20:54
-
-
Save jayunit100/c830343981aa814ed491 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
sudo dnf install golang tito | |
git clone https://github.com/openshift/ose | |
git clone https://github.com/kubernetes/kubernetes | |
cd ose | |
git checkout -b cherrypickin | |
git --git-dir=../kubernetes/.git format-patch -k -1 --stdout dc42d25f4a5648e96dd069ce674502dd4d2a7ddb | git am -3 -k | |
vi origin.spec # Append Release | |
git commit -am cherrypickin | |
sudo dnf-builddep -y origin.spec | |
mkdir /var/www/html/pub/rosmith/rpm/ose/cherrypickin | |
tito build --rpm --test -o /var/www/html/pub/rosmith/rpm/ose/cherrypickin | |
createrepo /var/www/html/pub/rosmith/rpm/ose/cherrypickin | |
cat << EOF > /etc/yum.repos.d/test-ose.repo | |
[ose-cherrypickin] | |
name=ose-cherrypickin | |
baseurl=http://perf1.perf.lab.eng.bos.redhat.com/pub/rosmith/rpm/ose/cherrypickin | |
enabled=1 | |
sslverify=0 | |
gpgcheck=0 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment