Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move image build into scripts/benchmark for improved visibility..makes Makefile only responsible for gathering necessary external artifacts - Use WORKDIR in Dockerfile to clarify where commands are being run TODO: Fixup commented out new git code in build.sbt
- Loading branch information
1 parent
3d1d5ea
commit 8dcf15d
Showing
5 changed files
with
54 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ -n "${GEOTRELLIS_CONTRIB_DEBUG}" ]]; then | ||
set -x | ||
fi | ||
|
||
function usage() { | ||
echo -n \ | ||
"Usage: $(basename "$0") | ||
Run GeoTrellis Contrib benchmarks | ||
" | ||
} | ||
|
||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then | ||
if [[ "${1:-}" == "--help" ]]; then | ||
usage | ||
else | ||
echo "Executing GeoTrellis Contrib benchmarks" | ||
make -f Makefile.benchmark | ||
docker build -t benchmark -f Dockerfile.benchmark . | ||
docker run -it --rm benchmark ./sbt "project benchmark" "jmh:run" | ||
fi | ||
fi |