diff options
author | baigk <baiguoku@huawei.com> | 2015-09-08 07:47:19 -0400 |
---|---|---|
committer | baigk <baiguoku@huawei.com> | 2015-09-08 08:24:09 -0400 |
commit | cf87d3067a63cb8be315a3addfd9c27d86be3b5a (patch) | |
tree | 861d46aebc75c73cc13a19fecfb5c48aa88a56a1 /build/templates/Debian_juno.tmpl | |
parent | 633175ed2c5d0ab339027ba0a542bcdd4d3769c0 (diff) |
Build improvement for speedup and using public repo
JIRA: COMPASS-19
Change-Id: Iba101807e1bd2f843f1253791b7e87e1acb7934b
Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'build/templates/Debian_juno.tmpl')
-rw-r--r-- | build/templates/Debian_juno.tmpl | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/build/templates/Debian_juno.tmpl b/build/templates/Debian_juno.tmpl new file mode 100644 index 00000000..2f88cb2e --- /dev/null +++ b/build/templates/Debian_juno.tmpl @@ -0,0 +1,45 @@ +#!/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 0xcbcb082a1bb943db +#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main' +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' +# add oracle java8 ppa +sudo add-apt-repository ppa:webupd8team/java +# add open java7 repo +sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main' + +sudo apt-get update + +sudo apt-get install reprepro -y + +#download packages +#set packages = $getVar('default_packages', []) +#for pkg in $packages +sudo apt-get -d install $pkg -y +#end for +#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 <<EOF > 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 |