🔧(tilt) use the same user as in production to facilitate testing

Use the same user as in production to facilitate local testing with
the production image.

Assign group 127 to the docker user to mirror CI and match production
practices, even though the rationale for this group mapping is unclear.
This commit is contained in:
lebaudantoine
2026-02-19 15:51:14 +01:00
committed by aleb_the_flash
parent 002c7c0e42
commit 5048005fc1

View File

@@ -18,6 +18,7 @@ docker_build(
'localhost:5001/meet-backend:latest', 'localhost:5001/meet-backend:latest',
context='..', context='..',
dockerfile='../Dockerfile', dockerfile='../Dockerfile',
build_args={'DOCKER_USER': '1001:127'},
only=['./src/backend', './src/mail', './docker'], only=['./src/backend', './src/mail', './docker'],
target = 'backend-production', target = 'backend-production',
live_update=[ live_update=[
@@ -33,6 +34,7 @@ clean_old_images('localhost:5001/meet-backend')
docker_build( docker_build(
'localhost:5001/meet-frontend-dinum:latest', 'localhost:5001/meet-frontend-dinum:latest',
context='..', context='..',
build_args={'DOCKER_USER': '1001:127'},
dockerfile='../docker/dinum-frontend/Dockerfile', dockerfile='../docker/dinum-frontend/Dockerfile',
only=['./src/frontend', './docker', './.dockerignore'], only=['./src/frontend', './docker', './.dockerignore'],
target = 'frontend-production', target = 'frontend-production',
@@ -57,6 +59,7 @@ clean_old_images('localhost:5001/meet-frontend-generic')
docker_build( docker_build(
'localhost:5001/meet-summary:latest', 'localhost:5001/meet-summary:latest',
context='../src/summary', context='../src/summary',
build_args={'DOCKER_USER': '1001:127'},
dockerfile='../src/summary/Dockerfile', dockerfile='../src/summary/Dockerfile',
only=['.'], only=['.'],
target = 'production', target = 'production',
@@ -69,6 +72,7 @@ clean_old_images('localhost:5001/meet-summary')
docker_build( docker_build(
'localhost:5001/meet-agents:latest', 'localhost:5001/meet-agents:latest',
context='../src/agents', context='../src/agents',
build_args={'DOCKER_USER': '1001:127'},
dockerfile='../src/agents/Dockerfile', dockerfile='../src/agents/Dockerfile',
only=['.'], only=['.'],
target = 'production', target = 'production',