Revert "feat: mount podman socket of user mypodmanuser"
This reverts commit 99aac09f75
.
This commit is contained in:
@ -6,7 +6,6 @@ WORKSPACE="${SSH_ORIGINAL_COMMAND:-}"
|
|||||||
IMAGE="localhost/analytics-backend-workspace:latest"
|
IMAGE="localhost/analytics-backend-workspace:latest"
|
||||||
DEV_USER="devuser"
|
DEV_USER="devuser"
|
||||||
XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
||||||
PODMAN_SOCKET="/run/user/$(id -u mypodmanuser)"
|
|
||||||
LOG_FILE="/tmp/.ssh-router-${PERSON}.log"
|
LOG_FILE="/tmp/.ssh-router-${PERSON}.log"
|
||||||
|
|
||||||
# ─────────────────────────────────────────────
|
# ─────────────────────────────────────────────
|
||||||
@ -125,7 +124,6 @@ start_container_if_needed() {
|
|||||||
--user "$DEV_USER" \
|
--user "$DEV_USER" \
|
||||||
--hostname "$WORKSPACE" \
|
--hostname "$WORKSPACE" \
|
||||||
--label auto-cleanup=true \
|
--label auto-cleanup=true \
|
||||||
-v "${PODMAN_SOCKET}/podman/podman.sock:/run/podman/podman.sock:z" \
|
|
||||||
-v "$HOME/data/$WORKSPACE:/app:Z" \
|
-v "$HOME/data/$WORKSPACE:/app:Z" \
|
||||||
-v "$HOME/secrets/$WORKSPACE/gitconfig:/home/$DEV_USER/.gitconfig:ro,Z" \
|
-v "$HOME/secrets/$WORKSPACE/gitconfig:/home/$DEV_USER/.gitconfig:ro,Z" \
|
||||||
-v "$HOME/secrets/$WORKSPACE/id_ed25519:/home/$DEV_USER/.ssh/id_ed25519:ro,Z" \
|
-v "$HOME/secrets/$WORKSPACE/id_ed25519:/home/$DEV_USER/.ssh/id_ed25519:ro,Z" \
|
||||||
|
Reference in New Issue
Block a user