-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ozone-profile): add script to build ozone profile offline package
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Builds the ozon profile offline bundle because this one is not created | ||
# automatically in the data layer pipeline | ||
|
||
ID=ozone.ozone_profile | ||
mkdir -p ./download/$ID | ||
rm -rf ./download/$ID/* | ||
|
||
VERSION=0.8.2 | ||
|
||
# Download files | ||
gsutil -m cp gs://esa-cfs-tiles/$VERSION/$ID/metadata.json ./download/$ID/ | ||
gsutil -m cp -r gs://esa-cfs-tiles/$VERSION/$ID/tiles ./download/$ID/ | ||
|
||
# zip | ||
cd download/ | ||
zip -r ./$ID/package.zip ./$ID | ||
|
||
# upload new package | ||
gsutil -m cp -r ./$ID/package.zip gs://esa-cfs-tiles/$VERSION/$ID/package.zip |