From 303d9ad2eb5dbc26df7f58dbb5e8b60a0282f48c Mon Sep 17 00:00:00 2001 From: yeti Date: Fri, 18 Apr 2025 18:55:06 +0100 Subject: [PATCH] feat(ssh): add secrets and git files --- ssh_router.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssh_router.sh b/ssh_router.sh index 0cf1d41..42333de 100755 --- a/ssh_router.sh +++ b/ssh_router.sh @@ -82,6 +82,10 @@ start_container_if_needed() { --hostname "$WORKSPACE" \ --label auto-cleanup=true \ -v "${XDG_RUNTIME_DIR}"/podman/podman.sock:/run/podman/podman.sock \ + -v /home/infilytics/data/"$WORKSPACE":/app \ + -v /home/infilytics/secrets/"$WORKSPACE"/.gitconfig:/home/"$DEV_USER"/.gitconfig:ro \ + -v /home/infilytics/secrets/"$WORKSPACE"/id_ed25519:/opt/secure/ssh/id_ed25519:ro \ + -v /home/infilytics/secrets/"$WORKSPACE"/id_ed25519.pub:/opt/secure/ssh/id_ed25519.pub:ro \ --entrypoint "/home/$DEV_USER/start.sh" \ "$IMAGE" "${TMUX_SESSION}" elif ! podman inspect -f '{{.State.Running}}' "$WORKSPACE" | grep -q true; then