aboutsummaryrefslogtreecommitdiff
path: root/workstation
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-05-07 09:57:16 +0000
committeralex <alex@pdp7.net>2023-05-07 09:57:16 +0000
commitbdddd872dd16344bcbca26a865e085db4bc3e8c2 (patch)
tree574786873169ce7fce055c6af5710e1c9cfc000d /workstation
parente2275de318c8955915bff34873026bdf87898b11 (diff)
Setup cmdainer and workstation
Diffstat (limited to 'workstation')
-rwxr-xr-xworkstation/setup.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/workstation/setup.py b/workstation/setup.py
index 98bd7787..76d1c5c2 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)
+