Skip to content

Commit

Permalink
Infrastructure: Push schema lists to Iglu Central (close #1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
istreeter committed Nov 1, 2021
1 parent 8533574 commit 8a68cf3
Show file tree
Hide file tree
Showing 2 changed files with 18 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
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 8a68cf3

Please sign in to comment.