Skip to content

Commit

Permalink
Remove EPEL mirror manually from image
Browse files Browse the repository at this point in the history
Remove EPEL mirrors and galera from images,
also always build DIB

Change-Id: I58dde61a903c38960256ad3de3bfbe616dfdb16a
  • Loading branch information
sshnaidm committed Sep 13, 2016
1 parent fb59994 commit c96a620
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/common_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ function update_image(){
sudo cp /etc/yum.repos.d/delorean* $MOUNTDIR/etc/yum.repos.d
sudo mv $MOUNTDIR/etc/resolv.conf{,_}
echo -e "nameserver 10.1.8.10\nnameserver 8.8.8.8" | sudo dd of=$MOUNTDIR/etc/resolv.conf
sudo yum remove -y galera
sudo cp /etc/yum.repos.d/delorean* $MOUNTDIR/etc/yum.repos.d
sudo rm -f $MOUNTDIR/etc/yum.repos.d/epel*
sudo chroot $MOUNTDIR /bin/yum update -y
sudo yum install -y galera
sudo rm -f $MOUNTDIR/etc/yum.repos.d/delorean*
sudo mv -f $MOUNTDIR/etc/resolv.conf{_,}

Expand Down Expand Up @@ -265,6 +268,10 @@ function delorean_build_and_serve {
$TRIPLEO_ROOT/tripleo-ci/scripts/tripleo.sh --delorean-build $DELOREAN_BUILD_REFS
fi

# Always build DIB, remove this once Iceff0d5bedd9816adfd2990970e7c216b67b6bd0
# is in the DIB release
$TRIPLEO_ROOT/tripleo-ci/scripts/tripleo.sh --delorean-build diskimage-builder

# kill the http server if its already running
ps -ef | grep -i python | grep SimpleHTTPServer | awk '{print $2}' | xargs --no-run-if-empty kill -9 || true
pushd $TRIPLEO_ROOT/delorean/data/repos
Expand Down

0 comments on commit c96a620

Please sign in to comment.