Skip to content
Snippets Groups Projects
Commit 1ec62b5e authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

PIPELINE: Prepend venv to PATH env

parent 0b9fd2cd
No related branches found
No related tags found
2 merge requests!61Release 0.3.0,!57Fix deprecations + updates
Pipeline #55335 passed with warnings
Pipeline: caosdb-cppinttest

#55338

    FROM debian:bookworm FROM debian:bookworm
    # change to bash default for gitlab runner
    RUN unlink /bin/sh
    RUN ln -s /bin/bash /bin/sh
    RUN apt-get update RUN apt-get update
    RUN apt-get install -y cmake RUN apt-get install -y cmake
    RUN apt-get install -y lcov RUN apt-get install -y lcov
    ...@@ -13,11 +9,8 @@ RUN apt-get install -y python3-pip python3-venv ...@@ -13,11 +9,8 @@ RUN apt-get install -y python3-pip python3-venv
    RUN apt-get install -y git RUN apt-get install -y git
    RUN apt-get install -y curl zip unzip tar RUN apt-get install -y curl zip unzip tar
    RUN apt-get install -y perl pkg-config RUN apt-get install -y perl pkg-config
    RUN apt-get install -y openjdk-17-jdk-headless RUN apt-get install -y openjdk-17-jdk-headless
    WORKDIR / WORKDIR /
    RUN python3 -m venv ./venv RUN python3 -m venv ./venv
    RUN . ./venv/bin/activate RUN . ./venv/bin/activate
    ...@@ -27,9 +20,7 @@ COPY requirements.txt build-requirements.txt ...@@ -27,9 +20,7 @@ COPY requirements.txt build-requirements.txt
    RUN ./venv/bin/pip install -r build-requirements.txt RUN ./venv/bin/pip install -r build-requirements.txt
    RUN ./venv/bin/conan profile detect RUN ./venv/bin/conan profile detect
    # add venv with conan to .bashrc ENV PATH=/venv/bin:$PATH
    RUN echo "source /venv/bin/activate" >> /root/.bashrc
    COPY . /libcaosdb/ COPY . /libcaosdb/
    WORKDIR /libcaosdb WORKDIR /libcaosdb
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment