From e0dd86dfd299f4829d3a26c39c451b0934ce1494 Mon Sep 17 00:00:00 2001 From: Elke Kreim <elke.kreim@hs-hannover.de> Date: Tue, 14 Feb 2023 11:07:05 +0100 Subject: [PATCH] Raise goemaxima version to 2023010400 and golang to 1.20 --- goemaxima.service | 13 +++++++++++++ hsh-custom-build.sh | 7 +++++++ hsh-custom-run.sh | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 goemaxima.service create mode 100755 hsh-custom-build.sh create mode 100644 hsh-custom-run.sh diff --git a/goemaxima.service b/goemaxima.service new file mode 100644 index 0000000..3105784 --- /dev/null +++ b/goemaxima.service @@ -0,0 +1,13 @@ +[Unit] +Description=GoeMaximaPool Docker Image Thing +After=network-online.target +Wants=network-online.target +After=remote-fs.target + +[Service] +Restart=on-failure +RestartSec=1s +ExecStart=/usr/bin/docker run --rm --name goemaximapool --env GOEMAXIMA_QUEUE_LEN=16 --publish 0.0.0.0:8080:8080 goemaxima:2023010400-dev + +[Install] +WantedBy=multi-user.target diff --git a/hsh-custom-build.sh b/hsh-custom-build.sh new file mode 100755 index 0000000..5c83de1 --- /dev/null +++ b/hsh-custom-build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# We need Go 1.13 for this to compile properly +docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.20 bash -c './buildweb.sh' + +# Build container with custom added version 2023010400 +./buildimage.sh 2023010400 diff --git a/hsh-custom-run.sh b/hsh-custom-run.sh new file mode 100644 index 0000000..2f7b6e2 --- /dev/null +++ b/hsh-custom-run.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker run -d -p 0.0.0.0:80:8080/tcp goemaxima:2023010400-dev -- GitLab