-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.sh
28 lines (24 loc) · 862 Bytes
/
installer.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
#! /bin/bash
# Build images
echo "[+] Building needed images"
cd miniapiserver && docker build -t apiserver . -q && cd - >/dev/null
echo "[+] MiniApiServer image built successfully"
cd miniapiserver/dockerfiles && docker build -t minietcd . -q && cd - >/dev/null
echo "[+] MiniEtcd image built successfully"
docker pull -q kubernetes/pause
docker pull -q rabbitmq:3.8.0-management
# Prepare virtualenv for minikubelet
echo "[+] preparing virtualenv for minikubelet"
cd minikubelet
virtualenv -p python3 . >/dev/null
pip3 install -r requirements.txt >/dev/null
# Push etcd and apiserver manifests into minikubelet
echo "[+] Enabling etcd on minikubelet"
mkdir manifests
cp etcd.yaml manifests/
echo "[+] Enabling apiserver on minikubelet"
cp apiserver.yaml manifests/
# Finish
echo "[+] To start minikubelet, run:"
echo "source bin/activate
python3 main.py"