Skip to content

Commit

Permalink
Merge pull request #1182 from snowplow/feature/push-schema-lists
Browse files Browse the repository at this point in the history
Infrastructure: Push schema lists to Iglu Central (close #1181)
  • Loading branch information
jbeemster authored Nov 1, 2021
2 parents 8533574 + d5a2db6 commit 4ee98cc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

# Vagrant
.vagrant/
igluctl
igluctl*.zip
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Release 129 (2021-11-01)
------------------------
Infrastructure: Push schema lists to Iglu Central (#1181)

Release 128 (2021-10-12)
------------------------
Add com.apple/notification_event/jsonschema/1-0-1 (#1173)
Expand Down
17 changes: 16 additions & 1 deletion vagrant/push.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ function die() {
echo "$@" 1>&2 ; exit 1;
}

function install_igluctl() {
if [ ! -f igluctl ]
then
echo "igluctl not found, downloading..."
wget https://github.com/snowplow-incubator/igluctl/releases/download/0.8.0/igluctl_0.8.0.zip
unzip igluctl_0.8.0.zip
chmod u+x igluctl
echo "done!"
else
echo "igluctl is already downloaded!"
fi
}

s3_bucket=iglucentral.com
s3_region=us-east-1

Expand All @@ -18,5 +31,7 @@ while [ -h "${source}" ] ; do source="$(readlink "${source}")"; done
dir="$( cd -P "$( dirname "${source}" )/.." && pwd )"
cd ${dir}

install_igluctl

# Note - this runs on HOST: https://groups.google.com/forum/#!topic/vagrant-up/LgqE-JFAqZc
aws s3 cp schemas/ s3://${s3_bucket}/schemas/ --include "." --recursive --region=${s3_region}
./igluctl static s3cp --region=${s3_region} schemas/ $s3_bucket

0 comments on commit 4ee98cc

Please sign in to comment.