Giter Site home page Giter Site logo

broadinstitute / sherlock Goto Github PK

View Code? Open in Web Editor NEW
1.0 42.0 0.0 4.67 MB

DSP DevOps's deployment source-of-truth service

Home Page: https://sherlock.dsp-devops.broadinstitute.org/

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 0.03% Go 78.05% Makefile 0.16% TypeScript 21.72% HTML 0.01% PLpgSQL 0.03%
golang gorm postgres

sherlock's Introduction

Sherlock

codecov Go Report Card latest build Quality Gate Status

DSP DevOps's Source-of-Truth Service

Sherlock stores information about our Kubernetes-based deployments, including Helm Chart versions and application versions. Sherlock doesn't do the deploying itself--it offers an API that other tools can use to understand our infrastructure.

The primary clients are Beehive, a UI for changing the information stored in Sherlock, and Thelma, a CLI that combines Sherlock's knowledge with Helm, ArgoCD, and Kubernetes APIs to directly manage infrastructure.

Project Structure

Sherlock is a Golang server relying on a Postgres database.

An overview of interactions:

Sherlock
API Endpoint :8080/api
Swagger Endpoint :8080/swagger/index.html
Prometheus Endpoint :8080/metrics
Go Client Library ./sherlock-go-client
TypeScript Client Library ./sherlock-typescript-client
CLI Via Thelma
GitHub Actions Via Thelma and ./.github/workflows/client-*
UI Via Beehive

Sherlock is meant to be deployed behind Google Cloud's Identity-Aware Proxy. It connects to Google Workspace's Admin API to evaluate permissions of the calling users.

Developing Locally

GoLand should be able to understand the monorepo structure and should download dependencies appropriately.

Some key makefile commands:

  • make install-pact will ask for sudo credentials to install the Pact FFI library necessary for running those tests
  • make pg-up will run a blank local database so that GoLand can run tests for you
    • make pg-down will tear it down if it gets in a bad state
  • make local-up will run Sherlock locally (different database from make pg-up's, so you can add state there)
    • make local-stop will shut down Sherlock so you can rebuild it without wiping your database state
    • make local-down will wipe your database state

There's more in the makefile.

sherlock's People

Contributors

broadbot avatar jack-r-warren avatar dependabot[bot] avatar mflinn-broad avatar katiewelch avatar choover-broad avatar jyang-broad avatar knapii-developments avatar dmohs avatar dspjenkins avatar ichengchang avatar

Stargazers

chernistry avatar

Watchers

Greg Jordan avatar Hoon Cho avatar Karthik Manimaran avatar Tom Lyons avatar  avatar Valentin Ruano Rubio avatar James Cloos avatar  avatar Mahnaz avatar Lee Lichtenstein avatar Joel Thibault avatar Geraldine Van der Auwera avatar Kiran V Garimella avatar  avatar Jesus Aguilar avatar  avatar Janet Gainer-Dewar avatar Charlotte Tolonen avatar Morg avatar Andrew avatar Timothy Tickle avatar  avatar  avatar Mike Neville avatar Rhian Anthony avatar  avatar Henry Ferrara avatar  avatar  avatar  avatar Brice Wang avatar Kevin Lydon avatar  avatar  avatar  avatar  avatar Ruchi avatar  avatar Austin Pardo avatar Saloni Shah avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.