Skip to content

chuckleheads/on-prem-depot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Habitat Builder API

This is a PoC of using Rocket and Diesel to replace the current Habitat Builder API.

Prerequisites

Postgres must be running and have the builder db created

Setup

cargo run -- --config habitat/default.toml
curl localhost:8000/hello -d '{"name":"bar"}' -H "Content-Type: application/json"
curl localhost:8000/world

Development

This project uses Habitat for development. Follow the instructions on setting up Habitat locally and come back.

  • Run hab studio enter to enter a development clean room.
  • build-api - Build a new version of the api
    • It will automatically be reloaded for you

Build with your own Habitat origin

  • Run HAB_STUDIO_NOSTUDIORC=1 hab studio enter
  • build
  • hab pkg upload $HAB_ORIGIN/rocket-diesel-demo

About

PoC of a service monolith for Habitat Builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published