From 3656b2525c9b4e8c5e1f45625adb1cd143425dc0 Mon Sep 17 00:00:00 2001 From: "Chigang(Justin)" Date: Thu, 13 Aug 2015 03:14:03 -0400 Subject: Generate ppa repositories automatically Openstack ppa repo will be generated by the patch.now we support openstack(juno) on trusty/centos7.1. there are two steps about how to generate the repo: 1. analyze the deployment script to find the deploying packages 2. use Docker as container to collect packages JIRA: COMPASS-15 Change-Id: I74ac57b70455643ecf9d32effd44a2e46f404f4e Signed-off-by: Chigang(Justin) --- ci/Debian_juno.tmpl | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ci/Debian_juno.tmpl (limited to 'ci/Debian_juno.tmpl') diff --git a/ci/Debian_juno.tmpl b/ci/Debian_juno.tmpl new file mode 100644 index 00000000..1a9a26a7 --- /dev/null +++ b/ci/Debian_juno.tmpl @@ -0,0 +1,36 @@ +#!/bin/bash +set -ex + +# add openstack juno repo +sudo apt-get update && apt-get install -y software-properties-common +sudo add-apt-repository -y cloud-archive:juno + +# add galeracluster repo +sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA +sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main' + +sudo apt-get update + +sudo apt-get install reprepro -y + +#download packages +#set packages = $getVar('packages', []) + +#for pkg in $packages +sudo apt-get -d install $pkg -y +#end for + +#make repo +mkdir -p trusty-juno-ppa/conf +cat < trusty-juno-ppa/conf/distributions +Codename: trusty +Components: main +Architectures: amd64 +EOF + +mkdir deb +find /var/cache/apt/ -name *.deb | xargs -i cp {} deb + +reprepro -b trusty-juno-ppa includedeb trusty deb/*.deb + +tar -zcvf /trusty-juno-ppa.tar.gz ./trusty-juno-ppa -- cgit 1.2.3-korg