Revert "feat: pass private key as argument to start.sh"
This reverts commit 5a2cab497c155cf4260fb0a36729f0fc0d88f223.
This commit is contained in:
parent
0e53249507
commit
c84f7ec54f
@ -118,7 +118,6 @@ start_container_if_needed() {
|
||||
if ! podman container exists "$WORKSPACE"; then
|
||||
log INFO "Creating container '$WORKSPACE'"
|
||||
generate_gitconfig "$PERSON"
|
||||
read -r -d '' key <"$HOME"/secrets/"$WORKSPACE"/id_ed25519
|
||||
podman run -dit \
|
||||
--name "$WORKSPACE" \
|
||||
--userns=keep-id:uid=1000,gid=1000 \
|
||||
@ -132,7 +131,7 @@ start_container_if_needed() {
|
||||
-v "$HOME/secrets/$WORKSPACE/id_ed25519:/home/$DEV_USER/.ssh/id_ed25519:ro,Z" \
|
||||
-v "$HOME/secrets/$WORKSPACE/id_ed25519.pub:/home/$DEV_USER/.ssh/id_ed25519.pub:ro,Z" \
|
||||
--entrypoint "/home/$DEV_USER/start.sh" \
|
||||
"$IMAGE" "$TMUX_SESSION" "$key"
|
||||
"$IMAGE" "$TMUX_SESSION"
|
||||
elif ! podman inspect -f '{{.State.Running}}' "$WORKSPACE" | grep -q true; then
|
||||
log INFO "Starting existing container '$WORKSPACE'"
|
||||
podman start "$WORKSPACE" >/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user