harmonize docker commands

This commit is contained in:
leo
2026-02-24 16:16:56 +01:00
parent ce9f812a7e
commit 1d42dd26ed
6 changed files with 19 additions and 19 deletions
+4 -4
View File
@@ -152,7 +152,7 @@ jobs:
uses: numerique-gouv/action-trivy-cache@main uses: numerique-gouv/action-trivy-cache@main
continue-on-error: true continue-on-error: true
with: with:
docker-build-args: '-f src/summary/Dockerfile --target production' docker-build-args: '-f src/summary/Dockerfile --target summary-production'
docker-image-name: '${{ env.DOCKER_CONTAINER_REGISTRY_HOSTNAME }}/${{ env.DOCKER_CONTAINER_REGISTRY_NAMESPACE }}/meet-summary:${{ github.sha }}' docker-image-name: '${{ env.DOCKER_CONTAINER_REGISTRY_HOSTNAME }}/${{ env.DOCKER_CONTAINER_REGISTRY_NAMESPACE }}/meet-summary:${{ github.sha }}'
docker-context: './src/summary' docker-context: './src/summary'
- -
@@ -161,7 +161,7 @@ jobs:
with: with:
context: ./src/summary context: ./src/summary
file: ./src/summary/Dockerfile file: ./src/summary/Dockerfile
target: production target: summary-production
build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000 build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
@@ -191,7 +191,7 @@ jobs:
uses: numerique-gouv/action-trivy-cache@main uses: numerique-gouv/action-trivy-cache@main
continue-on-error: true continue-on-error: true
with: with:
docker-build-args: '-f src/agents/Dockerfile --target production' docker-build-args: '-f src/agents/Dockerfile --target agents-production'
docker-image-name: '${{ env.DOCKER_CONTAINER_REGISTRY_HOSTNAME }}/${{ env.DOCKER_CONTAINER_REGISTRY_NAMESPACE }}/meet-agents:${{ github.sha }}' docker-image-name: '${{ env.DOCKER_CONTAINER_REGISTRY_HOSTNAME }}/${{ env.DOCKER_CONTAINER_REGISTRY_NAMESPACE }}/meet-agents:${{ github.sha }}'
docker-context: './src/agents' docker-context: './src/agents'
- -
@@ -200,7 +200,7 @@ jobs:
with: with:
context: ./src/agents context: ./src/agents
file: ./src/agents/Dockerfile file: ./src/agents/Dockerfile
target: production target: agents-production
build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000 build-args: DOCKER_USER=${{ env.DOCKER_USER }}:-1000
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
+6 -6
View File
@@ -227,9 +227,9 @@ back-i18n-generate: ## create the .pot files used for i18n
@$(MANAGE) makemessages -a --keep-pot @$(MANAGE) makemessages -a --keep-pot
.PHONY: back-i18n-generate .PHONY: back-i18n-generate
shell: ## connect to database shell shell: ## open a Django Python shell
@$(MANAGE) shell #_plus @$(MANAGE) shell #_plus
.PHONY: dbshell .PHONY: shell
# -- Database # -- Database
@@ -348,16 +348,16 @@ build-k8s-cluster: ## build the kubernetes cluster using kind
install-external-secrets: ## install the kubernetes secrets from Vaultwarden install-external-secrets: ## install the kubernetes secrets from Vaultwarden
./bin/install-external-secrets.sh ./bin/install-external-secrets.sh
.PHONY: build-k8s-cluster .PHONY: install-external-secrets
start-tilt: ## start the kubernetes cluster using kind start-tilt: ## start the kubernetes cluster using kind
tilt up -f ./bin/Tiltfile tilt up -f ./bin/Tiltfile
.PHONY: build-k8s-cluster .PHONY: start-tilt
start-tilt-keycloak: ## start the kubernetes cluster using kind, without Pro Connect for authentication, use keycloak start-tilt-keycloak: ## start the kubernetes cluster using kind, without Pro Connect for authentication, use keycloak
DEV_ENV=dev-keycloak tilt up -f ./bin/Tiltfile DEV_ENV=dev-keycloak tilt up -f ./bin/Tiltfile
.PHONY: build-k8s-cluster .PHONY: start-tilt-keycloak
start-tilt-dinum: ## start the kubernetes cluster using kind, without Pro Connect for authentication, but with DINUM styles start-tilt-dinum: ## start the kubernetes cluster using kind, without Pro Connect for authentication, but with DINUM styles
DEV_ENV=dev-dinum tilt up -f ./bin/Tiltfile DEV_ENV=dev-dinum tilt up -f ./bin/Tiltfile
.PHONY: build-k8s-cluster .PHONY: start-tilt-dinum
+2 -2
View File
@@ -59,7 +59,7 @@ docker_build(
context='../src/summary', context='../src/summary',
dockerfile='../src/summary/Dockerfile', dockerfile='../src/summary/Dockerfile',
only=['.'], only=['.'],
target = 'production', target = 'summary-production',
live_update=[ live_update=[
sync('../src/summary', '/app'), sync('../src/summary', '/app'),
] ]
@@ -71,7 +71,7 @@ docker_build(
context='../src/agents', context='../src/agents',
dockerfile='../src/agents/Dockerfile', dockerfile='../src/agents/Dockerfile',
only=['.'], only=['.'],
target = 'production', target = 'agents-production',
live_update=[ live_update=[
sync('../src/agents', '/app'), sync('../src/agents', '/app'),
] ]
+4 -4
View File
@@ -161,7 +161,7 @@ services:
args: args:
VITE_API_BASE_URL: "http://localhost:8071" VITE_API_BASE_URL: "http://localhost:8071"
VITE_APP_TITLE: "LaSuite Meet" VITE_APP_TITLE: "LaSuite Meet"
image: meet:frontend-development image: meet:frontend-production
ports: ports:
- "3000:8080" - "3000:8080"
@@ -252,7 +252,7 @@ services:
app-summary-dev: app-summary-dev:
build: build:
context: src/summary context: src/summary
target: development target: summary-development
args: args:
DOCKER_USER: ${DOCKER_USER:-1000} DOCKER_USER: ${DOCKER_USER:-1000}
user: ${DOCKER_USER:-1000} user: ${DOCKER_USER:-1000}
@@ -270,7 +270,7 @@ services:
build: build:
context: ./src/summary context: ./src/summary
dockerfile: Dockerfile dockerfile: Dockerfile
target: production target: summary-production
command: celery -A summary.core.celery_worker worker --pool=solo --loglevel=debug -Q transcribe-queue command: celery -A summary.core.celery_worker worker --pool=solo --loglevel=debug -Q transcribe-queue
env_file: env_file:
- env.d/development/summary - env.d/development/summary
@@ -290,7 +290,7 @@ services:
build: build:
context: ./src/summary context: ./src/summary
dockerfile: Dockerfile dockerfile: Dockerfile
target: production target: summary-production
command: celery -A summary.core.celery_worker worker --pool=solo --loglevel=debug -Q summarize-queue command: celery -A summary.core.celery_worker worker --pool=solo --loglevel=debug -Q summarize-queue
env_file: env_file:
- env.d/development/summary - env.d/development/summary
+1 -1
View File
@@ -15,7 +15,7 @@ COPY pyproject.toml .
RUN mkdir /install && \ RUN mkdir /install && \
pip install --prefix=/install . pip install --prefix=/install .
FROM base AS production FROM base AS agents-production
WORKDIR /app WORKDIR /app
+2 -2
View File
@@ -16,7 +16,7 @@ COPY pyproject.toml .
RUN pip3 install --no-cache-dir . RUN pip3 install --no-cache-dir .
FROM base AS development FROM base AS summary-development
WORKDIR /app WORKDIR /app
COPY . . COPY . .
@@ -24,7 +24,7 @@ RUN pip3 install --no-cache-dir -e ".[dev]" || pip3 install --no-cache-dir -e .
CMD ["uvicorn", "summary.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] CMD ["uvicorn", "summary.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
FROM base AS production FROM base AS summary-production
WORKDIR /app WORKDIR /app