From bf210baa12db2b7d959a7c9222acafe703bcf961 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 1 Aug 2024 21:50:43 -0400 Subject: [PATCH] so dope, no need to spin up containers manually --- docker/scripts/kasm.sh | 10 ---------- terraform/kasm.tf | 4 +++- 2 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 docker/scripts/kasm.sh diff --git a/docker/scripts/kasm.sh b/docker/scripts/kasm.sh deleted file mode 100644 index e287f43..0000000 --- a/docker/scripts/kasm.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Navigate to the directory -cd /home/mafyuh/iac/docker/kasm - -# Pull the latest changes -git pull - -# Run docker compose up -d -dcu \ No newline at end of file diff --git a/terraform/kasm.tf b/terraform/kasm.tf index ad4c440..7429341 100644 --- a/terraform/kasm.tf +++ b/terraform/kasm.tf @@ -62,7 +62,9 @@ resource "proxmox_virtual_environment_vm" "Kasm" { provisioner "remote-exec" { inline = [ - "sudo bash /home/mafyuh/iac/docker/scripts/kasm.sh" + "cd /home/mafyuh/iac/docker/kasm", + "git pull", + "docker compose up -d" ] connection { type = "ssh"