refactor(structure): reorganize monorepo with projects, terraform hierarchy, and strict k8s namespace rules
This commit is contained in:
+7
-7
@@ -678,7 +678,7 @@ kubectl create ns migrate
|
||||
# backup on moritzgraf.de
|
||||
ssh moritzgraf.de "sudo su - docker -c 'cd /home/docker/mailu && docker-compose stop' && sudo su - root -c 'cd /home/docker && tar czvf mailu.tar.gz ./mailu && mv mailu.tar.gz /home/moritz/ && chown moritz. /home/moritz/mailu.tar.gz' && scp mailu.tar.gz haumdaucher.de:/home/moritz/"
|
||||
# terraform change
|
||||
cd ../terraform && terraform apply
|
||||
cd ../terraform/infrastructure && terraform apply
|
||||
# helm apply
|
||||
cd ../k8s
|
||||
helm upgrade --create-namespace --install mailu mailu/mailu -n mailu -f mailu/mailu.secret.yml
|
||||
@@ -873,13 +873,13 @@ Grabengasse 7 home website and backend service deployed in the `grabengasse` nam
|
||||
# Login to local registry (if not already logged in)
|
||||
docker login registry.haumdaucher.de -u moritz -p "PPf10musSh!!"
|
||||
|
||||
# Build and push backend image
|
||||
cd website/grabengasse_backend
|
||||
make all
|
||||
# Build and push images via root projects/grabengasse Makefile
|
||||
cd projects/grabengasse
|
||||
make build push
|
||||
|
||||
# Build and push frontend image
|
||||
cd ../grabengasse_frontend
|
||||
make all
|
||||
# Or build individual components:
|
||||
cd projects/grabengasse/frontend && make all
|
||||
cd ../backend && make all
|
||||
```
|
||||
|
||||
### Deploy to Kubernetes
|
||||
|
||||
Reference in New Issue
Block a user