summaryrefslogtreecommitdiffstats
path: root/build/templates/Debian_liberty.tmpl
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-11-26 18:00:55 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-12-01 07:29:39 +0800
commite93d595baf9b3fbbc0ec213ad725ce438772d8a4 (patch)
treee9e2a5e6a3e5abc4cd9a44228e47796c5e86fc4b /build/templates/Debian_liberty.tmpl
parenta5d9a6384c09ff8e84c7e6bfefb9b9202b0c2341 (diff)
support libverty on ubuntu
JIRA: COMPASS-169 Change-Id: I4656cf43eb3db0ba61fae4b03416b9c0239bb50b Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'build/templates/Debian_liberty.tmpl')
-rw-r--r--build/templates/Debian_liberty.tmpl49
1 files changed, 49 insertions, 0 deletions
diff --git a/build/templates/Debian_liberty.tmpl b/build/templates/Debian_liberty.tmpl
new file mode 100644
index 00000000..ede5b51f
--- /dev/null
+++ b/build/templates/Debian_liberty.tmpl
@@ -0,0 +1,49 @@
+#!/bin/bash
+set -ex
+
+# add openstack liberty repo
+sudo apt-get update && apt-get install -y software-properties-common
+sudo add-apt-repository -y cloud-archive:liberty
+
+# 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-liberty-ppa/conf
+cat <<EOF > trusty-liberty-ppa/conf/distributions
+Codename: trusty
+Components: main
+Architectures: amd64
+EOF
+
+sudo apt-get install wget
+wget -O /var/cache/apt/python-pyasn1_0.1.8-2_all.deb http://us.archive.ubuntu.com/ubuntu/pool/main/p/pyasn1/python-pyasn1_0.1.8-2_all.deb
+rm -rf /var/cache/apt/python-pyasn1_0.1.7-1ubuntu2_all.deb
+
+mkdir deb
+find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
+
+reprepro -b trusty-liberty-ppa includedeb trusty deb/*.deb
+
+tar -zcvf /trusty-liberty-ppa.tar.gz ./trusty-liberty-ppa