forked from cloud-bulldozer/metadata-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_container.sh
executable file
·32 lines (24 loc) · 1.01 KB
/
create_container.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -ex
## Clone stockpile
sudo rm -rf stockpile
git clone https://github.com/cloud-bulldozer/stockpile.git
sudo rm -f stockpile-wrapper.py
wget https://raw.githubusercontent.com/cloud-bulldozer/bohica/master/stockpile-wrapper/stockpile-wrapper.py
sudo rm -rf scribe
git clone https://github.com/cloud-bulldozer/scribe.git
# Get kubectl
sudo rm -f kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
cp Dockerfile stockpile/
cp all.yml stockpile/group_vars/all.yml
cp kubernetes.yml stockpile/group_vars/kubernetes.yml
cp stockpile_hosts stockpile/hosts
cp ansible.cfg stockpile/ansible.cfg
cp stockpile-wrapper.py stockpile/stockpile-wrapper.py
cp -r scribe stockpile/
cp kubectl stockpile/
cp oc stockpile/
cd stockpile
# Modify this to whatever image repo to use
sudo podman build --tag=quay.io/cloud-bulldozer/backpack:latest . && sudo podman push quay.io/cloud-bulldozer/backpack:latest