summaryrefslogtreecommitdiff
path: root/podman_launch_devenv.py
diff options
context:
space:
mode:
Diffstat (limited to 'podman_launch_devenv.py')
-rwxr-xr-xpodman_launch_devenv.py6
1 files changed, 3 insertions, 3 deletions
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-<port> /bin/bash")
print("💡 Tip: For direct shell without port forwarding, use: podman run -it rocky_dev:latest /bin/bash")