Skip to content

Commit

Permalink
update init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Dec 17, 2024
1 parent 7f47eb1 commit 7011199
Showing 1 changed file with 27 additions and 13 deletions.
40 changes: 27 additions & 13 deletions infra/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,50 @@ helm install bt-metallb metallb/metallb --version 0.14.3 --namespace=bt
helm install bt-cert-manager cert-manager/cert-manager --set installCRDs=true --version 1.14.1 --namespace=bt
helm install bt-ingress-nginx ingress-nginx/ingress-nginx --version 4.9.1 --namespace=bt

helm install bt-base ./base --namespace=bt
helm package ./infra/base --version 1.0.0 --dependency-update
helm push ./base-1.0.0.tgz oci://registry-1.docker.io/octoberkeleytime/bt-base
helm install bt-base oci://registry-1.docker.io/octoberkeleytime/bt-base --namespace=bt \
--version=1.0.0

# ==========
# DEPENDENCIES
# BUILD CHARTS AND PUSH TO REGISTRY
# ==========

helm dependencies build ./mongo
helm dependencies build ./redis
helm package ./infra/mongo --version 1.0.0 --dependency-update
helm push ./mongo-1.0.0.tgz oci://registry-1.docker.io/octoberkeleytime/bt-mongo
helm package ./infra/redis --version 1.0.0 --dependency-update
helm push ./redis-1.0.0.tgz oci://registry-1.docker.io/octoberkeleytime/bt-redis

# ==========
# PRODUCTION
# ==========

helm install bt-prod-mongo ./mongo --namespace=bt
helm install bt-prod-mongo oci://registry-1.docker.io/octoberkeleytime/bt-mongo --namespace=bt \
--version=1.0.0

helm install bt-prod-redis ./redis --namespace=bt
helm install bt-prod-redis oci://registry-1.docker.io/octoberkeleytime/bt-redis --namespace=bt \
--version=1.0.0

helm install bt-prod-app ./app --namespace=bt \
helm install bt-prod-app oci://registry-1.docker.io/octoberkeleytime/bt-app --namespace=bt \
--version=1.0.0 \
--set host=stanfurdtime.com

# ==========
# STAGING
# ==========

helm install bt-stage-mongo ./mongo --namespace=bt \
helm install bt-stage-mongo oci://registry-1.docker.io/octoberkeleytime/bt-mongo --namespace=bt \
--version=1.0.0 \
--set mongodb.commonLabels.env=stage \
--set hostPath=/data/stage/db \
--set mongodb.persistence.existingClaim=bt-stage-mongo-pvc

helm install bt-stage-redis ./redis --namespace=bt \
helm install bt-stage-redis oci://registry-1.docker.io/octoberkeleytime/bt-redis --namespace=bt \
--version=1.0.0 \
--set redis.commonLabels.env=stage

helm install bt-stage-app ./app --namespace=bt \
helm install bt-stage-app oci://registry-1.docker.io/octoberkeleytime/bt-app --namespace=bt \
--version=0.1.0-stage \
--set env=stage \
--set frontend.image.tag=latest \
--set backend.image.tag=latest \
Expand All @@ -62,15 +73,18 @@ helm install bt-stage-app ./app --namespace=bt \
# DEVELOPMENT
# ==========

helm install bt-dev-mongo ./mongo --namespace=bt \
helm install bt-dev-mongo oci://registry-1.docker.io/octoberkeleytime/bt-mongo --namespace=bt \
--version=1.0.0 \
--set mongodb.commonLabels.env=dev \
--set hostPath=/data/dev/db \
--set mongodb.persistence.existingClaim=bt-dev-mongo-pvc

helm install bt-dev-redis ./redis --namespace=bt \
helm install bt-dev-redis oci://registry-1.docker.io/octoberkeleytime/bt-redis --namespace=bt \
--version=1.0.0 \
--set redis.commonLabels.env=dev

helm install bt-dev-app ./app --namespace=bt \
helm install bt-dev-app oci://registry-1.docker.io/octoberkeleytime/bt-app --namespace=bt \
--version=0.1.0-dev \
--set env=dev \
--set ttl=24 \
--set frontend.image.tag=dev1 \
Expand Down

0 comments on commit 7011199

Please sign in to comment.