Install jq:
apt-get install jq
Configure deploy.env file - example
Run the script from the drive-project repo folder.
Run Command:
bash ./deployment.sh [flags]
-h / --helm - Run and update the z-helm charts tags
-z / --zip - Run and make a zip of the images
apt-get install p7zip
-k / --kubectl - Reinstall helm charts in kubernetes.
(KBS_DNS, KBS_NAMESPACE, HELM_DEPLOY_NAME)
-g | --git - git checkout all services tags
-f | --force - force rebuild local images
KBS_NAMESPACE="yaron" # The name of the k8s namespace
KBS_DNS="kbs-yaron" # The name of the k8s dns
HELM_DEPLOY_NAME="yaron-deploy" # Helm deployment name
JSON_FILE="services.dev.json" # name of json services file
HELM_DEPENDENCIES=true # reinstall helm dependencies
ACR_PASS="" # acr password from drivehub Access keys, in azure
when you want to add a service you need to add the service as git submodule.
git submodule add https://github.com/meateam/<service-name> # add service
git submodule init
for updating the commit in submodule:
git submodule foreach git pull origin develop #update all