From bdddd872dd16344bcbca26a865e085db4bc3e8c2 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 7 May 2023 09:57:16 +0000 Subject: [PATCH] Setup cmdainer and workstation --- workstation/setup.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/workstation/setup.py b/workstation/setup.py index 98bd778..76d1c5c 100755 --- a/workstation/setup.py +++ b/workstation/setup.py @@ -10,7 +10,7 @@ def _(t): print("Installing some packages...") -subprocess.run(["sudo", "dnf", "install", "-y", "rclone", "fuse", "git"], check=True) +subprocess.run(["sudo", "dnf", "install", "-y", "rclone", "fuse", "git", "podman-docker", "wget"], check=True) if not (pathlib.Path.home() / ".config" / "rclone" / "rclone.conf").exists(): print(_(""" @@ -52,3 +52,12 @@ for dotfile in dotfiles_dir.glob("*"): if not replaced_dotfile.exists(): subprocess.run(["ln", "-s", dotfile, replaced_dotfile], check=True) + +(pathlib.Path.home() / ".local" / "bin").mkdir(exist_ok=True, parents=True) + +subprocess.run(["wget", "https://github.com/alexpdp7/cmdainer/releases/latest/download/cmdainer-linux", "-O", "/home/alex/.local/bin/cmdainer"], check=True) +subprocess.run(["chmod", "+x", "/home/alex/.local/bin/cmdainer"], check=True) + +if not shutil.which("cmdainer"): + subprocess.run(["cmdainer", "add-wrapper", "workstation", "/bin/bash", "quay.io/alexpdp7/workstation:latest"], check=True) + -- 2.47.3