-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_and_run.sh
executable file
·28 lines (25 loc) · 1.21 KB
/
build_and_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
PLUGIN=$1
if [[ $PLUGIN == "sst" ]]; then
echo building $PLUGIN
docker build . -t sst-plugin -f Dockerfile.sst
docker run --rm -it --env-file stormcloud/plugins/sst/.env sst-plugin:latest
elif [[ $PLUGIN == "temp_precip" ]]; then
echo building $PLUGIN
docker build . -t temp-precip-plugin -f Dockerfile.temp_precip
docker run --rm -it --env-file stormcloud/plugins/temp_precip/.env temp-precip-plugin:latest
elif [[ $PLUGIN == "doc_rank" ]]; then
echo building $PLUGIN
docker build . -t doc-rank-plugin -f Dockerfile.doc_rank
docker run --rm -it --env-file stormcloud/plugins/doc_rank/.env doc-rank-plugin:latest
elif [[ $PLUGIN == "hms_grid" ]]; then
echo building $PLUGIN
docker build . -t hms-grid-plugin -f Dockerfile.hms_grid
docker run --rm -it --env-file stormcloud/plugins/hms_grid/.env hms-grid-plugin:latest
elif [[ $PLUGIN == "standardize_meta" ]]; then
echo building $PLUGIN
docker build . -t standardize-meta-plugin -f Dockerfile.standardize_meta
docker run --rm -it --env-file stormcloud/plugins/standardize_meta/.env standardize-meta-plugin:latest
else
echo "plugin arg must be one of [sst, temp_precip, doc_rank, hms_grid, standardize_meta]"
fi