REFACTOR ALL APIs fix 1

This commit is contained in:
Urtzi Alfaro
2025-10-07 07:15:07 +02:00
parent 38fb98bc27
commit 7c72f83c51
47 changed files with 1821 additions and 270 deletions

View File

@@ -35,12 +35,24 @@ docker_build(
context='.',
dockerfile='./gateway/Dockerfile',
live_update=[
# Fall back to full rebuild if Dockerfile or requirements change
fall_back_on(['./gateway/Dockerfile', './gateway/requirements.txt']),
# Sync Python code changes
sync('./gateway', '/app'),
sync('./shared', '/app/shared'),
# Restart on Python file changes
run('kill -HUP 1', trigger=['./gateway/**/*.py', './shared/**/*.py']),
],
# Ignore common patterns that don't require rebuilds
ignore=[
'.git',
'**/__pycache__',
'**/*.pyc',
'**/.pytest_cache',
'**/node_modules',
'**/.DS_Store'
]
)
@@ -55,6 +67,10 @@ def build_python_service(service_name, service_path):
context='.',
dockerfile='./services/' + service_path + '/Dockerfile',
live_update=[
# Fall back to full image build if Dockerfile or requirements change
fall_back_on(['./services/' + service_path + '/Dockerfile',
'./services/' + service_path + '/requirements.txt']),
# Sync service code
sync('./services/' + service_path, '/app'),
@@ -74,6 +90,15 @@ def build_python_service(service_name, service_path):
'./services/' + service_path + '/**/*.py',
'./shared/**/*.py'
]),
],
# Ignore common patterns that don't require rebuilds
ignore=[
'.git',
'**/__pycache__',
'**/*.pyc',
'**/.pytest_cache',
'**/node_modules',
'**/.DS_Store'
]
)
@@ -263,7 +288,35 @@ k8s_resource('frontend',
# =============================================================================
# Update check interval - how often Tilt checks for file changes
update_settings(max_parallel_updates=3, k8s_upsert_timeout_secs=60)
update_settings(
max_parallel_updates=3,
k8s_upsert_timeout_secs=60
)
# Watch settings - configure file watching behavior
watch_settings(
# Ignore patterns that should never trigger rebuilds
ignore=[
'.git/**',
'**/__pycache__/**',
'**/*.pyc',
'**/.pytest_cache/**',
'**/node_modules/**',
'**/.DS_Store',
'**/*.swp',
'**/*.swo',
'**/.venv/**',
'**/venv/**',
'**/.mypy_cache/**',
'**/.ruff_cache/**',
'**/.tox/**',
'**/htmlcov/**',
'**/.coverage',
'**/dist/**',
'**/build/**',
'**/*.egg-info/**'
]
)
# Optimize for local development
# - Automatically stream logs from services with errors