From 6e00303558beec0f4f3815dbd7b5365c665b9a50 Mon Sep 17 00:00:00 2001 From: martin molli <martin.molli@inria.fr> Date: Tue, 18 Mar 2025 16:15:17 +0100 Subject: [PATCH] Update ci --- .gitlab-ci.yml | 6 +++--- services/camera/Dockerfile | 5 +++-- services/motion_detector/Dockerfile | 2 +- services/object_recognizer/Dockerfile | 5 +++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f687666..ba04f9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,6 @@ build-job: # This job runs in the build stage, which runs first. - docker build -t motion_detector:latest ./services/motion_detector - docker build -t object_recognizer:latest ./services/object_recognizer - - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing camera:latest - - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing motion_detector:latest - - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing object_recognizer:latest + - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing/camera:latest + - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing/motion_detector:latest + - docker push registry.gitlab.inria.fr/stack-research-group/software/edge-to-cloud-video-processing/object_recognizer:latest diff --git a/services/camera/Dockerfile b/services/camera/Dockerfile index 1a9d251..9f1e547 100644 --- a/services/camera/Dockerfile +++ b/services/camera/Dockerfile @@ -1,5 +1,5 @@ # Use the official Python image as base -FROM python:3.8-slim as build +FROM python:3.12-slim as build # Set the working directory inside the container WORKDIR /app @@ -12,7 +12,8 @@ WORKDIR /app COPY . . # Install required Python packages -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir --upgrade pip \ + pip install --no-cache-dir -r requirements.txt # Set environment variables with default values ENV CAMERA="false" \ diff --git a/services/motion_detector/Dockerfile b/services/motion_detector/Dockerfile index cbd10aa..1c40c56 100644 --- a/services/motion_detector/Dockerfile +++ b/services/motion_detector/Dockerfile @@ -1,5 +1,5 @@ # Use the official Python image as base -FROM python:3.8-slim as build +FROM python:3.12-slim as build # Set the working directory inside the container WORKDIR /app diff --git a/services/object_recognizer/Dockerfile b/services/object_recognizer/Dockerfile index 5ef2651..a8d24df 100644 --- a/services/object_recognizer/Dockerfile +++ b/services/object_recognizer/Dockerfile @@ -1,5 +1,5 @@ # Use the official Python image as base -FROM python:3.8-slim as build +FROM python:3.12-slim as build # Set the working directory inside the container WORKDIR /app @@ -12,7 +12,8 @@ WORKDIR /app COPY . . # Install required Python packages -RUN pip install -r requirements.txt +RUN pip install --no-cache-dir --upgrade pip && \ + pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 -- GitLab