forked from juice-shop/multi-juicer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-an-deploy.sh
executable file
·17 lines (11 loc) · 957 Bytes
/
build-an-deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
echo "This Script canbe used to 'easily' build all MultiJuicer Components and install them to a local kubernetes cluster"
echo "For this to work the local kubernetes cluster must have access to the same local registry / image cache which 'docker build ...' writes its image to"
echo "For example docker-desktop with its included k8s cluster"
echo "Usage: ./build-and-deploy.sh"
version="$(uuidgen)"
docker build -t local/juice-balancer:$version ./juice-balancer &
docker build -t local/cleaner:$version ./cleaner &
docker build -t local/progress-watchdog:$version ./progress-watchdog &
wait
helm upgrade --install mj ./helm/multi-juicer --set="imagePullPolicy=Never" --set="balancer.repository=local/juice-balancer" --set="balancer.tag=$version" --set="progressWatchdog.repository=local/progress-watchdog" --set="progressWatchdog.tag=$version" --set="juiceShopCleanup.repository=local/cleaner" --set="juiceShopCleanup.tag=$version"