From 1c99aa36f69319b6d487740254e8b461afcabd96 Mon Sep 17 00:00:00 2001 From: Jed Hazaymeh Date: Sun, 12 Nov 2023 20:56:44 +0000 Subject: [PATCH 1/2] Add webgroup/blockbot job --- jobs/webgroup/blockbot.hcl | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 jobs/webgroup/blockbot.hcl diff --git a/jobs/webgroup/blockbot.hcl b/jobs/webgroup/blockbot.hcl new file mode 100644 index 0000000..75b3298 --- /dev/null +++ b/jobs/webgroup/blockbot.hcl @@ -0,0 +1,32 @@ +job "blockbot" { + datacenters = ["aperture"] + + type = "service" + + group "blockbot" { + count = 1 + + task "blockbot" { + driver = "docker" + + config { + image = "ghcr.io/redbrick/blockbot" + entrypoint = ["python3", "src/main.py"] + } + + resources { + cpu = 500 + memory = 256 + } + + template { + data = < Date: Mon, 13 Nov 2023 11:09:55 +0000 Subject: [PATCH 2/2] Remove redundant entrypoint --- jobs/webgroup/blockbot.hcl | 1 - 1 file changed, 1 deletion(-) diff --git a/jobs/webgroup/blockbot.hcl b/jobs/webgroup/blockbot.hcl index 75b3298..776b0c5 100644 --- a/jobs/webgroup/blockbot.hcl +++ b/jobs/webgroup/blockbot.hcl @@ -11,7 +11,6 @@ job "blockbot" { config { image = "ghcr.io/redbrick/blockbot" - entrypoint = ["python3", "src/main.py"] } resources {