Skip to content

Commit

Permalink
fix(ozone-profile): add script to build ozone profile offline package
Browse files Browse the repository at this point in the history
  • Loading branch information
pwambach committed Sep 10, 2020
1 parent a870935 commit 3f96be4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/zip-ozone-profile.sh
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

0 comments on commit 3f96be4

Please sign in to comment.