From d5129e8ebb194f0d4ad772c9fe829844bef8b4b1 Mon Sep 17 00:00:00 2001 From: calvin681 Date: Fri, 28 Jul 2023 11:17:08 -0700 Subject: [PATCH] Create script to build mantisagent docker image locally (#500) * Trigger shutdown if TaskExecutor cannot start successfully * throw exception * Create script to build docker image locally * update comments --------- Co-authored-by: Calvin Cheung --- .../mantis-server-agent/buildDockerImage.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 mantis-server/mantis-server-agent/buildDockerImage.sh diff --git a/mantis-server/mantis-server-agent/buildDockerImage.sh b/mantis-server/mantis-server-agent/buildDockerImage.sh new file mode 100755 index 000000000..fad4b89ea --- /dev/null +++ b/mantis-server/mantis-server-agent/buildDockerImage.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# build the mantis-server-agent fat jar +../../gradlew clean installDist + +# create sample job artifact to include in the image +../../gradlew :mantis-examples:mantis-examples-sine-function:mantisZipArtifact + +mkdir build/distributions +cp ../../mantis-examples/mantis-examples-sine-function/build/distributions/* build/distributions/ + +# build the Docker image that packages the mantis-server-agent +docker build -t netflixoss/mantisagent . + +echo "Created Docker image 'netflixoss/mantisagent'"