Mirror of https://github.com/roostorg/osprey
github.com/roostorg/osprey
1#!/bin/bash
2set -e
3
4echo "Creating Bigtable instance and tables"
5
6export BIGTABLE_EMULATOR_HOST=bigtable:8361
7
8echo "Creating Bigtable instance"
9cbt -project=osprey-dev -instance=osprey-bigtable createinstance osprey-bigtable 'Osprey Development Instance' osprey-bigtable-cluster us-central1-a 1 SSD || true
10
11echo "Creating audit_log table..."
12cbt -project=osprey-dev -instance=osprey-bigtable createtable audit_log || true
13cbt -project=osprey-dev -instance=osprey-bigtable createfamily audit_log audit_log || true
14
15echo "Creating stored_execution_result table"
16cbt -project=osprey-dev -instance=osprey-bigtable createtable stored_execution_result || true
17cbt -project=osprey-dev -instance=osprey-bigtable createfamily stored_execution_result execution_result || true
18
19echo "Bigtable initialization complete"