-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54e3cc9
commit fe547da
Showing
23 changed files
with
68 additions
and
44 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export WORKSPACE=/workspace/app-package-training-bids23 | ||
|
||
podman \ | ||
build \ | ||
--format docker \ | ||
-t localhost/stage:latest \ | ||
${WORKSPACE}/mastering-app-package-/water-bodies/command-line-tools/stage-in | ||
${WORKSPACE}/water-bodies/command-line-tools/stage-in |
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
podman build --format docker -t localhost/crop:latest ${WORKSPACE}/ogc-eo-application-package-hands-on/water-bodies/command-line-tools/crop | ||
podman build --format docker -t localhost/norm-diff:latest ${WORKSPACE}/ogc-eo-application-package-hands-on/water-bodies/command-line-tools/norm_diff | ||
podman build --format docker -t localhost/otsu:latest ${WORKSPACE}/ogc-eo-application-package-hands-on/water-bodies/command-line-tools/otsu | ||
podman build --format docker -t localhost/stac:latest ${WORKSPACE}/ogc-eo-application-package-hands-on/water-bodies/command-line-tools/stac | ||
export WORKSPACE=/workspace/app-package-training-bids23 | ||
export RUNTIME=/workspace/runs | ||
mkdir -p ${RUNTIME} | ||
cd ${RUNTIME} | ||
|
||
podman build --format docker -t localhost/crop:latest ${WORKSPACE}/water-bodies/command-line-tools/crop | ||
podman build --format docker -t localhost/norm-diff:latest ${WORKSPACE}/water-bodies/command-line-tools/norm_diff | ||
podman build --format docker -t localhost/otsu:latest ${WORKSPACE}/water-bodies/command-line-tools/otsu | ||
podman build --format docker -t localhost/stac:latest ${WORKSPACE}/water-bodies/command-line-tools/stac |
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 |
---|---|---|
@@ -1,27 +1,13 @@ | ||
podman build --format docker -t ghcr.io/terradue/ogc-eo-application-package-hands-on/crop:bids23 ${WORKSPACE}/mastering-app-package-/water-bodies/command-line-tools/crop | ||
podman push ghcr.io/terradue/ogc-eo-application-package-hands-on/crop:bids23 | ||
|
||
podman build --format docker -t ghcr.io/terradue/ogc-eo-application-package-hands-on/norm-diff:bids23 ${WORKSPACE}/mastering-app-package-/water-bodies/command-line-tools/norm_diff | ||
podman push ghcr.io/terradue/ogc-eo-application-package-hands-on/norm:bids23 | ||
|
||
podman build --format docker -t ghcr.io/terradue/ogc-eo-application-package-hands-on/otsu:bids23 ${WORKSPACE}/mastering-app-package-/water-bodies/command-line-tools/otsu | ||
podman push ghcr.io/terradue/ogc-eo-application-package-hands-on/otsu:bids23 | ||
|
||
podman build --format docker -t ghcr.io/terradue/ogc-eo-application-package-hands-on/stac:bids23 ${WORKSPACE}/mastering-app-package-/water-bodies/command-line-tools/stac | ||
podman push ghcr.io/terradue/ogc-eo-application-package-hands-on/stac:bids23 | ||
|
||
|
||
yq eval '(.$graph[] | select (.id == "crop") ).hints.DockerRequirement.dockerPull = "ghcr.io/terradue/ogc-eo-application-package-hands-on/crop:aaa"' /workspace/mastering-app-package-/cwl-workflow/app-water-bodies-cloud-native.cwl | ||
|
||
WORKSPACE=/workspace | ||
WORKSPACE=/workspace/app-package-training-bids23 | ||
|
||
version="bids23" | ||
repo="ghcr.io/terradue/ogc-eo-application-package-hands-on" | ||
repo="ghcr.io/terradue/${REPO}" | ||
|
||
for step in crop norm_diff otsu stac | ||
do | ||
tag=${repo}/${step}:${version} | ||
podman build --format docker -t ${tag} ${WORKSPACE}/mastering-app-package-/water-bodies/command-line-tools/crop | ||
podman build --format docker -t ${tag} ${WORKSPACE}/water-bodies/command-line-tools/crop | ||
podman push ${tag} | ||
|
||
t="$tag" s="$step" yq eval -i '(.$graph[] | select (.id == env(s)) ).hints.DockerRequirement.dockerPull = env(t)' /workspace/mastering-app-package-/cwl-workflow/app-water-bodies-cloud-native.cwl | ||
t="$tag" s="$step" yq eval -i '(.$graph[] | select (.id == env(s)) ).hints.DockerRequirement.dockerPull = env(t)' ${WORKSPACE}/cwl-workflow/app-water-bodies-cloud-native.cwl | ||
done |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
cwltool \ | ||
--podman \ | ||
--outdir /workspace/runs \ | ||
otsu.cwl \ | ||
${WORKSPACE}/cwl-cli/otsu.cwl \ | ||
--raster \ | ||
/workspace/runs/norm_diff.tif |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
cwltool \ | ||
--podman \ | ||
--outdir /workspace/runs \ | ||
app-water-body-cloud-native.cwl \ | ||
${WORKSPACE}/cwl-workflow/app-water-body-cloud-native.cwl \ | ||
--item "https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2B_10TFK_20210713_0_L2A" \ | ||
--aoi="-121.399,39.834,-120.74,40.472" \ | ||
--epsg "EPSG:4326" |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version="1.4.1" | ||
|
||
wget https://github.com/Terradue/ogc-eo-application-package-hands-on/releases/download/$version/app-water-bodies-cloud-native.$version.cwl | ||
wget https://github.com/Terradue/app-package-training-bids23/releases/download/$version/app-water-bodies-cloud-native.$version.cwl |
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
export WORKSPACE=/workspace/app-package-training-bids23 | ||
export RUNTIME=/workspace/runs | ||
mkdir -p ${RUNTIME} | ||
cd ${RUNTIME} | ||
|
||
python \ | ||
${WORKSPACE}/ogc-eo-application-package-hands-on/water-bodies/command-line-tools/norm_diff/app.py \ | ||
${WORKSPACE}/water-bodies/command-line-tools/norm_diff/app.py \ | ||
crop_green.tif \ | ||
crop_nir.tif |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
export WORKSPACE=/workspace/app-package-training-bids23 | ||
export RUNTIME=/workspace/runs | ||
mkdir -p ${RUNTIME} | ||
cd ${RUNTIME} | ||
|
||
python \ | ||
${WORKSPACE}/ogc-eo-application-package-hands-on/water-bodies/command-line-tools/otsu/app.py \ | ||
${WORKSPACE}/water-bodies/command-line-tools/otsu/app.py \ | ||
norm_diff.tif |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export WORKSPACE=/workspace | ||
export WORKSPACE=/workspace/app-package-training-bids23 | ||
export RUNTIME=/workspace/runs | ||
mkdir -p ${RUNTIME} | ||
cd ${RUNTIME} |
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
export WORKSPACE=/workspace/app-package-training-bids23 | ||
export RUNTIME=/workspace/runs | ||
mkdir -p ${RUNTIME} | ||
cd ${RUNTIME} | ||
|
||
python \ | ||
${WORKSPACE}/ogc-eo-application-package-hands-on/water-bodies/command-line-tools/stac/app.py \ | ||
${WORKSPACE}/water-bodies/command-line-tools/stac/app.py \ | ||
--input-item "https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2B_10TFK_20210713_0_L2A" \ | ||
--water-body otsu.tif |