Skip to content

Commit

Permalink
alternative way of passing loading secrets in container
Browse files Browse the repository at this point in the history
  • Loading branch information
alpae committed Jul 31, 2024
1 parent 6837460 commit 43ce3b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion containers/darwin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
4 changes: 2 additions & 2 deletions containers/oma/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 43ce3b4

Please sign in to comment.