summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.claude/settings.local.json3
-rw-r--r--docker_build/Dockerfile3
-rwxr-xr-xpodman_launch_devenv.py4
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")