diff options
| author | hc <hc@email.ch> | 2025-05-30 23:07:58 +0800 |
|---|---|---|
| committer | hc <hc@email.ch> | 2025-05-30 23:07:58 +0800 |
| commit | 3a824121c7338ec395cf027156ea83f29fe1e6a4 (patch) | |
| tree | 9a86e70487b58d2958ff94dda9771709fd55b2f5 | |
| parent | 1de3097b9e7ac4c37734e1d6fbefeb46f7826e43 (diff) | |
updatedstuff
| -rw-r--r-- | .claude/settings.local.json | 3 | ||||
| -rw-r--r-- | docker_build/Dockerfile | 3 | ||||
| -rwxr-xr-x | podman_launch_devenv.py | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/.claude/settings.local.json b/.claude/settings.local.json index f689325..eb8ba96 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -5,5 +5,6 @@ "Bash(chmod:*)" ], "deny": [] - } + }, + "enableAllProjectMcpServers": false }
\ No newline at end of file diff --git a/docker_build/Dockerfile b/docker_build/Dockerfile index 644b18f..f5d0a46 100644 --- a/docker_build/Dockerfile +++ b/docker_build/Dockerfile @@ -13,7 +13,8 @@ RUN mkdir -p /var/run/sshd && \ ssh-keygen -A && \ sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config && \ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \ - sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config + sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && \ + echo "AllowAgentForwarding yes" >> /etc/ssh/sshd_config # Setup SSH directory for root and ensure root has valid shell RUN mkdir -p /root/.ssh && \ diff --git a/podman_launch_devenv.py b/podman_launch_devenv.py index 8896c02..2473404 100755 --- a/podman_launch_devenv.py +++ b/podman_launch_devenv.py @@ -26,6 +26,8 @@ def launch(): if result.returncode == 0: ip = run("hostname -I | awk '{print $1}'").stdout.strip() or "localhost" print(f"🐳 SSH: ssh root@{ip} -p {port}") + print(f"🐚 Shell: podman exec -it rocky_dev-{port} /bin/bash") + print(f"💡 Tip: For direct shell without port forwarding, use: podman run -it rocky_dev:latest /bin/bash") return result.returncode == 0 parser = argparse.ArgumentParser(epilog=""" @@ -47,3 +49,5 @@ elif args.command == "run": print("❌ Image rocky_dev:latest not found") else: print("Usage: python3 launcher.py {run|list|cleanup} [-p PORT]") + print("🐚 Shell: podman exec -it rocky_dev-<port> /bin/bash") + print("💡 Tip: For direct shell without port forwarding, use: podman run -it rocky_dev:latest /bin/bash") |
