diff --git a/goemaxima.service b/goemaxima.service new file mode 100644 index 0000000000000000000000000000000000000000..3105784199e2bed4cb362d4f3996059c82706fcb --- /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 0000000000000000000000000000000000000000..5c83de1d1f5f93043f04cdf614c3f00e8384b59d --- /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 0000000000000000000000000000000000000000..2f7b6e2838c7dae144aaf94653651bfe3b252b08 --- /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