🚚(k8s) move tilt config to bin

Move tilt config to bin directory
to keep the root directory clean.
Add makefile cmd about k8s.
This commit is contained in:
Anthony LC
2024-04-12 23:02:03 +02:00
committed by Anthony LC
parent 0575c0f086
commit 428cd74366
3 changed files with 17 additions and 8 deletions

View File

@@ -322,3 +322,12 @@ frontend-i18n-generate: \
frontend-i18n-compile: ## Format the crowin json files used deploy to the apps frontend-i18n-compile: ## Format the crowin json files used deploy to the apps
cd $(PATH_FRONT) && yarn i18n:deploy cd $(PATH_FRONT) && yarn i18n:deploy
.PHONY: frontend-i18n-compile .PHONY: frontend-i18n-compile
# -- K8S
build-k8s-cluster: ## build the kubernetes cluster using kind
./bin/start-kind.sh
.PHONY: build-k8s-cluster
start-tilt: ## start the kubernetes cluster using kind
tilt up -f ./bin/Tiltfile
.PHONY: build-k8s-cluster

View File

@@ -4,12 +4,12 @@ namespace_create('impress')
docker_build( docker_build(
'localhost:5001/impress-backend:latest', 'localhost:5001/impress-backend:latest',
context='.', context='..',
dockerfile='./Dockerfile', dockerfile='../Dockerfile',
only=['./src/backend', './src/mail', './docker'], only=['./src/backend', './src/mail', './docker'],
target = 'backend-development', target = 'backend-development',
live_update=[ live_update=[
sync('./src/backend', '/app'), sync('../src/backend', '/app'),
run( run(
'pip install -r /app/requirements.txt', 'pip install -r /app/requirements.txt',
trigger=['./api/requirements.txt'] trigger=['./api/requirements.txt']
@@ -19,17 +19,17 @@ docker_build(
docker_build( docker_build(
'localhost:5001/impress-frontend:latest', 'localhost:5001/impress-frontend:latest',
context='.', context='..',
dockerfile='./Dockerfile', dockerfile='../Dockerfile',
build_args={'ENV': 'dev'}, build_args={'ENV': 'dev'},
only=['./src/frontend', './src/mail', './docker'], only=['./src/frontend', './src/mail', './docker'],
target = 'frontend-builder-1', target = 'frontend-builder-1',
live_update=[ live_update=[
sync('./src/frontend', '/builder'), sync('../src/frontend', '/builder'),
] ]
) )
k8s_yaml(local('cd src/helm && helmfile -n impress -e dev template .')) k8s_yaml(local('cd ../src/helm && helmfile -n impress -e dev template .'))
migration = ''' migration = '''
set -eu set -eu