Skip to content
bedrockioPublic

About

Bedrock Data Lake & Analytics

Resources

Stars

0 stars

Watchers

4 watching

Forks

Repository files navigation

Tectonic Platform

More documentation about specific services and components can be found in the following sections:

  • services/api - Data API and data model layer that powers all applications
  • services/web - Web application and administration dashboard

Quick Start

Using Docker Compose you can build and run all services and dependencies as follows:

docker-compose up

Open the dashboard at http://localhost:3200/ - Admin login credentials can be seen in the API output.

Local development

Steps to run the full stack locally:

1) Make sure to have MongoDB and Elasticsearch running

Optinally run as docker containers:

# create local data folders for mongo and ES
sudo mkdir /root/data
sudo mkdir /root/esdata
chmod 777 -R /root/esdata

# run docker containers for mongo and ES
docker run --name mongo -d -p 27017:27017 -v /root/data:/data/db mongo:5.0.1
docker run --name elasticsearch -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -v /root/esdata:/usr/share/elasticsearch/data elasticsearch:7.12.0

2) Start API service

cd services/api
yarn install
yarn start

# Note: Reload fixtures with:
# ./scripts/fixtures/reload

3) Start Elasticsearch Pubsub sink worker

cd services/api
yarn elasticsearch-sink:start

4) Start Web service

cd services/web
yarn install
yarn start

5) Publish fixture events for the bar-purchases collection:

cd services/api
node scripts/publish-fixture-events.js

6) Check Dashboard Url

Login with admin@tectonic.io:tectonic.now at http://localhost:3200

API Documentation

Full portal with examples:

http://localhost:3200/docs/getting-started

Code documentation:

services/api

Web Documentation

services/web

Releases

In order to release a new Tectonic version, you need to create a release on github with an incremented version tag, e.g., v1.0.1, v1.2.4, v2.0.0, and release notes. Next you can checkout the release branch locally:

git pull origin master
git checkout v1.0.1

On this branch you can build the images and push the images to Docker Hub as follows:

bedrock cloud build # select all services
./docker-push all 1.0.1 # pass the branch/release version, without the `v` prefix

Release latest tag

To push the latest tag from the master branch and not a specific release version:

bedrock cloud build # select all services
./docker-push # pushes all services with the 'latest' tag
./docker-push api # pushes only the api service with the 'latest' tag
./docker-push api latest # same as above

Rollout Tectonic

Install tectonic-cli:

curl -s https://gist.githubusercontent.com/beatlevic/80c45c040bdb46c180af7b5557e1fca6/raw/1efebb3b17578e0a3849994dddd6fbb91055ddc8/install | bash

Create a new Tectonic environment:

tectonic create

Rollout deployment with latest version:

tectonic cloud authorize # Authorize tectonic environment or pass environment:
# tectonic cloud authorize production
tectonic cloud rollout # select environment and services to rollout or pass environment and service:
# tectonic cloud rollout production api

About

Bedrock Data Lake & Analytics

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages