-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-push-local.sh
executable file
·29 lines (24 loc) · 1.04 KB
/
build-push-local.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
#!/usr/bin/bash
(
SCRIPT_DIR=$(realpath -- "$(dirname -- "${BASH_SOURCE[0]}")")
# shellcheck disable=SC2164
cd -P -- "$SCRIPT_DIR"
docker build -f Dockerfile.app -t app-build .
docker build -f Dockerfile.controller -t k8s-insider-controller:latest .
docker build -f Dockerfile.network-manager -t k8s-insider-network-manager:latest .
docker build -f Dockerfile.router -t k8s-insider-router:latest .
minikube image load k8s-insider-controller:latest --overwrite --daemon
minikube image load k8s-insider-network-manager:latest --overwrite --daemon
minikube image load k8s-insider-router:latest --overwrite --daemon
if [[ $1 = "install" ]]
then
cd app/k8s-insider || exit
cargo run -- install \
--controller-image k8s-insider-controller \
--controller-image-tag latest \
--network-manager-image k8s-insider-network-manager \
--network-manager-image-tag latest \
--router-image k8s-insider-router \
--router-image-tag latest
fi
)