From 43ce3b473958d26938417cf9a091f74fa3171389 Mon Sep 17 00:00:00 2001 From: Adrian Altenhoff Date: Wed, 31 Jul 2024 08:50:11 +0200 Subject: [PATCH] alternative way of passing loading secrets in container --- containers/darwin/Dockerfile | 2 +- containers/oma/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/containers/darwin/Dockerfile b/containers/darwin/Dockerfile index 8e635ce..e84a6c8 100644 --- a/containers/darwin/Dockerfile +++ b/containers/darwin/Dockerfile @@ -14,7 +14,7 @@ RUN mkdir -m 700 /root/.ssh/ \ WORKDIR /src RUN --mount=type=ssh \ --mount=type=secret,id=labgit \ - . /run/secrets/labgit && \ + LABGIT=$(cat /run/secrets/labgit) && \ git clone ${LABGIT}/OMA && \ git clone ${LABGIT}/browser && \ git clone -b nf-convert ${LABGIT}/pyoma && \ diff --git a/containers/oma/Dockerfile b/containers/oma/Dockerfile index 2e03382..8ccd573 100644 --- a/containers/oma/Dockerfile +++ b/containers/oma/Dockerfile @@ -29,8 +29,8 @@ RUN pip install --upgrade pipenv pip COPY Pipfile Pipfile.lock ./ RUN --mount=type=ssh \ --mount=type=secret,id=labgit \ - . /run/secrets/labgit && \ - pipenv sync + LABGIT=$(cat /run/secrets/labgit ) \ + pipenv sync FROM basis as runtime RUN apt-get update \