From 52b3f67efd33c097f9383932d187a892efa411fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net> Date: Mon, 2 Jan 2023 17:11:35 +0100 Subject: [PATCH] build --with-backend MaggotUBA/20221228 --- recipes/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/recipes/Dockerfile b/recipes/Dockerfile index ed7f7b0..a810577 100644 --- a/recipes/Dockerfile +++ b/recipes/Dockerfile @@ -46,6 +46,22 @@ RUN if [ "$BACKEND" = "MaggotUBA/20221005-1" ]; then \ && rm -rf models/20221005 \ && poetry install --only main \ && poetry add "pynvml==11.4.1" \ + && rm -rf ~/.cache; \ + elif [ "$BACKEND" = "MaggotUBA/20221228" ]; then \ + cd $PROJECT_DIR \ + && julia -e "using Pkg; Pkg.add(url=\"https://gitlab.pasteur.fr/nyx/TaggingBackends\", rev=\"$BRANCH\")" \ + && git clone --depth 1 --no-tags --single-branch -b dev https://gitlab.pasteur.fr/nyx/MaggotUBA-adapter MaggotUBA \ + && cd MaggotUBA \ + && rm -rf .git \ + && poetry install --only main \ + && poetry add "pynvml==11.4.1" \ + && apt-get update \ + && apt-get install --no-install-recommends -y wget \ + && mkdir -p models \ + && cd models \ + && wget -O- https://gitlab.pasteur.fr/nyx/artefacts/-/raw/master/MaggotUBA/20221228.tar.gz?inline=false | tar zxv \ + && apt-get autoremove -y wget \ + && rm -rf /var/lib/apt/lists/* \ && rm -rf ~/.cache; \ fi -- GitLab