From 5344af4ab68c946339adb63311988ca735d31305 Mon Sep 17 00:00:00 2001 From: Valentin Date: Wed, 18 Dec 2024 18:46:44 +0100 Subject: [PATCH] fix: update app installation in sqa --- .sqa/docker-compose.yml | 10 +++++----- .sqa/dockerfile | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.sqa/docker-compose.yml b/.sqa/docker-compose.yml index d618ea63..cd321d38 100644 --- a/.sqa/docker-compose.yml +++ b/.sqa/docker-compose.yml @@ -2,13 +2,13 @@ version: "3.6" services: testing: + image: "ai4oshub/ai4os-ai4life-loader:cicd" container_name: "${BUILD_TAG}" hostname: "${BUILD_TAG}" - working_dir: /srv - build: - context: ./.sqa - args: - branch: ${GIT_BRANCH} + working_dir: /srv/app + command: > + sh -c "pip3 install --no-cache-dir -e . && + sleep infinity" volumes: - type: bind source: ./ diff --git a/.sqa/dockerfile b/.sqa/dockerfile index 2eadb78d..95996645 100644 --- a/.sqa/dockerfile +++ b/.sqa/dockerfile @@ -1,10 +1,10 @@ # Docker image for CI testing of the DEEPaaS API # Note there is probably no gpu in the CI server -FROM ai4oshub/ai4os-ai4life-loader:cicd -# What user branch to clone [!] -ARG branch=main -# install user app as python package -RUN git clone -b $branch --depth 1 https://github.com/ai4os/ai4os-ai4life-loader.git app/ && \ - cd app/ && pip3 install --no-cache-dir -e . && \ - cd .. -CMD ["sleep", "infinity"] +#FROM ai4oshub/ai4os-ai4life-loader:cicd +## What user branch to clone [!] +#ARG branch=main +## install user app as python package +#RUN git clone -b $branch --depth 1 https://github.com/ai4os/ai4os-ai4life-loader.git app/ && \ +# cd app/ && pip3 install --no-cache-dir -e . && \ +# cd .. +#CMD ["sleep", "infinity"]