cd ./project
docker build --tag lerero:0.1.0 .
Run nest.js container app with this command:
docker run --rm -p 3000:3000 lerero:0.1.0
Access nest.js project with this link http://localhost:3000
- kubectl
- terraform
- terragrunt
- k3d
This will deploy k3d along with local docker image repository.
k3d cluster create --config ./cluster/k3d.yaml
then check if cluster are running kubectl cluster-info
- Push nest.js demo project docker image into local registry
# tagging
docker tag lerero:0.1.0 registry.localhost:5000/lerero:0.1.0
# push
docker push registry.localhost:5000/lerero:0.1.0
- Provision with terragrunt. This command will install flux and neccessary file. Then flux will take care the rest.
terragrunt run-all apply --terragrunt-working-dir ./cluster/terraform
This list of dns need to set to localhost/127.0.0.1:
127.0.0.1 registry.localhost
127.0.0.1 grafana.lvh.me
127.0.0.1 lerero.lvh.me
- for windows you can set this by editing this file
C:\Windows\System32\drivers\etc\hosts