Skip to content

Tectonic CLI allows you to create and control Tectonic based deployments.

Notifications You must be signed in to change notification settings

bedrockio/tectonic-cli

Repository files navigation

Bedrock CLI

Run Tests

The Bedrock Command Line Interface can be used to manage Bedrock projects:

  • Create a new Project
  • Generate Code: Models, Routes, CRUD UIs, etc.
  • Installing Plugins into your Project
  • Provisioning new infrastructure on Google Cloud using Terraform
  • Deploying and controlling a Kubernetes cluster

Installation

curl -s https://install.bedrock.io | bash

Create a New Project

bedrock create

Quick create:

bedrock create \
  --domain seltzerbox.com \
  --repository github.com/dominiek/seltzer-box \
  seltzer-box

Cloud Deployment

To use the bedrock cloud commands, check the bedrock-core Deployment README.md, which includes: gcloud setup, deployment and provisioning.

More

bedrock --help

Slack integration

The bedrock cloud deploy command supports posting message on a Slack channel when starting and finishing the deploy. This requires the following steps:

  • Create a new Slack App at api.slack.com for your workspace
  • Optional: Update your Slack with a nice Icon and description
  • Create incoming webhook. Select this feature in the menu, and hit Add New Webhook to Workspace. It will ask you to select the Slack channel in your workspace to post messages to.
  • Copy the generated Webhook URL, which includes the api token
  • Paste the Webhook URL in your project's deployment environment config.json (See Deployment README.md). Example deployment/environments/staging/config.json (replace webhook value with your own Webhook URL):
{
  "gcloud": {
    "envName": "staging",
    "bucketPrefix": "bedrock-foundation",
    "project": "bedrock-foundation",
    "computeZone": "us-east1-c",
    "kubernetes": {
      "clusterName": "cluster-2",
      "nodePoolCount": 1,
      "minNodeCount": 1,
      "maxNodeCount": 3,
      "machineType": "n2-standard-2"
     },
    "label": "app"
  },
  "slack" : {
    "webhook": "https://hooks.slack.com/services/xxxxxxxx/xxxxxxxx"
  }
}

Each environment can use the same webhook for the same channel, or you can set up a different channel and webhook for each environment.

About

Tectonic CLI allows you to create and control Tectonic based deployments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published