This commit is contained in:
parent
80eeb49e5d
commit
aa5419824a
1 changed files with 8 additions and 3 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,5 +1,11 @@
|
|||
FROM python:3.13.1-bookworm
|
||||
|
||||
# lese secrets von pipeline ein
|
||||
RUN --mount=type=secret,id=GITUSERPW \
|
||||
--mount=type=secret,id=GITUSER \
|
||||
export GITUSERPW=$(cat /run/secrets/GITUSERPW) && \
|
||||
export GITUSER=$(cat /run/secrets/GITUSER)
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
# nötig damit die ansible-tools gefunden werden
|
||||
ENV PATH="$PATH:/home/ansible-dev/.local/bin"
|
||||
|
@ -45,12 +51,11 @@ USER ansible-dev
|
|||
|
||||
WORKDIR /home/ansible-dev/
|
||||
|
||||
RUN echo $forgejo_user $forgejo_user_pass
|
||||
RUN echo https://$forgejo_user:$forgejo_user_pass@git.mgrote.net/mg/dotfiles ~/dotfiles
|
||||
RUN echo https://$GITUSER:$GITUSERPW@git.mgrote.net/mg/dotfiles ~/dotfiles
|
||||
|
||||
# dotfiles, see: https://git.mgrote.net/mg/dotfiles/raw/branch/master/scripts/setup_minimal.sh
|
||||
# hadolint ignore=DL3001,SC1083
|
||||
RUN git clone https://$forgejo_user:$forgejo_user_pass@git.mgrote.net/mg/dotfiles ~/dotfiles
|
||||
RUN git clone https://$GITUSER:$GITUSERPW@git.mgrote.net/mg/dotfiles ~/dotfiles
|
||||
|
||||
COPY --chown=ansible-dev:ansible-dev start_tmux.sh .
|
||||
ENTRYPOINT []
|
||||
|
|
Loading…
Add table
Reference in a new issue