summaryrefslogtreecommitdiffstats
path: root/ci/kubernates/fetch-charms.sh
blob: 2a3d7536f60bb043d10afde89afded8e3aa4efd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -ex

distro=$1
mkdir -p $distro

function build {
    sudo apt-get install charm-tools -y
    (cd $distro/charm-$1; charm build -s $distro  -obuild src)
    mv $distro/charm-$1/build/$distro/$1 $distro
}

# openstack
charm pull cs:~containers/kubernetes-master $distro/kubernetes-master
charm pull cs:~containers/kubernetes-worker $distro/kubernetes-worker
charm pull cs:~containers/flannel $distro/flannel
charm pull cs:~containers/etcd $distro/etcd
charm pull cs:~containers/easyrca $distro/easyrca