From d6eb567da3e6d2e64ebf22adf1fc6d21c47090f8 Mon Sep 17 00:00:00 2001 From: hc Date: Sat, 31 May 2025 23:44:40 +0800 Subject: hehe --- podman_launch_devenv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'podman_launch_devenv.py') diff --git a/podman_launch_devenv.py b/podman_launch_devenv.py index 2473404..3d0b5b0 100755 --- a/podman_launch_devenv.py +++ b/podman_launch_devenv.py @@ -15,9 +15,9 @@ import subprocess, argparse, os, glob def run(cmd): return subprocess.run(cmd, shell=True, capture_output=True, text=True) def build(): - if not glob.glob("ssh-keys/*.pub"): os.makedirs("ssh-keys", exist_ok=True); open("ssh-keys/dummy.pub", "w").write("# dummy") + if not glob.glob("docker_build/ssh-keys/*.pub"): os.makedirs("docker_build/ssh-keys", exist_ok=True); open("docker_build/ssh-keys/dummy.pub", "w").write("# dummy") result = run("podman build -f docker_build/Dockerfile -t rocky_dev:latest .") - if os.path.exists("ssh-keys/dummy.pub"): os.remove("ssh-keys/dummy.pub") + if os.path.exists("docker_build/ssh-keys/dummy.pub"): os.remove("docker_build/ssh-keys/dummy.pub") return result.returncode == 0 def launch(): @@ -48,6 +48,6 @@ elif args.command == "run": else: print("❌ Image rocky_dev:latest not found") else: - print("Usage: python3 launcher.py {run|list|cleanup} [-p PORT]") + print("Usage: python3 podman_launch_devenv.py {run|list|cleanup} [-p PORT]") print("🐚 Shell: podman exec -it rocky_dev- /bin/bash") print("💡 Tip: For direct shell without port forwarding, use: podman run -it rocky_dev:latest /bin/bash") -- cgit v1.2.3-70-g09d2