Skip to content

Commit

Permalink
Create script to build mantisagent docker image locally (#500)
Browse files Browse the repository at this point in the history
* Trigger shutdown if TaskExecutor cannot start successfully

* throw exception

* Create script to build docker image locally

* update comments

---------

Co-authored-by: Calvin Cheung <[email protected]>
  • Loading branch information
calvin681 and calvin681 authored Jul 28, 2023
1 parent 02b19c5 commit d5129e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mantis-server/mantis-server-agent/buildDockerImage.sh
Original file line number Diff line number Diff line change
@@ -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'"

0 comments on commit d5129e8

Please sign in to comment.