From: alex Date: Sun, 7 May 2023 09:57:16 +0000 (+0000) Subject: Setup cmdainer and workstation X-Git-Tag: 20240214-emacs~358 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=bdddd872dd16344bcbca26a865e085db4bc3e8c2;p=alex.git Setup cmdainer and workstation --- 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) +