Skip to content

DevStream: the open-source DevOps toolchain manager (DTM).

License

Notifications You must be signed in to change notification settings

keepauto/stream

Repository files navigation



PRs Welcome Discord Test Go Report Card Downloads

DevStream

DevStream, What Is It Anyway?

TL;DR: DevStream (CLI tool named dtm) is an open-source DevOps toolchain manager.

Imagine you are in a new project. Before writing the first line of code, you would have to figure out the tools needed in the whole Software Development Life Cycle (SDLC). You would probably need the following pieces:

  • some kind of project management software or issue tracking tools (e.g., Jira);
  • someplace for source code management (GitHub and alike);
  • some tools for continuous integration (e.g., Jenkins, GitHub Actions, CircleCI, Travis CI);
  • some tools for continuous delivery or continuous deployment (e.g., fluxcd/flux2, ArgoCD, etc.);
  • someplace serving as the single source of truth for secrets and credentials (secrets manager, e.g., Vault by HashiCorp);
  • some tools for centralized logging and monitoring (for example, ELK, Prometheus/Grafana);

And maybe more. The list could go on for quite a bit.

And, there are multiple challenges in creating YOUR ideal SDLC workflow:

  • There are too many choices. Even for a particular field, there are too many. Which is best? There is no "one-size-fits-all" answer because it totally depends.
  • Integration between different pieces.
  • The software world (and the DevOps world) changes and it changes fast. What's best for today might not be the best tomorrow. You want to switch some parts out and get some new state-of-the-art pieces in so that you always keep your efficiency high.

To be fair, there are a few integrated products out there that may contain everything you might need, but they might not suit your specific requirements perfectly. So, the chance is, you will still want to go out and do your research, find the best pieces for you, and integrate them. And, it would be a lot of operational overhead if all you had to do all day was install and uninstall and integrate things.

You probably have already seen where we are going with this, and you are right: DevStream, an open-source DevOps toolchain manager, aims to be the solution here.

Think of the Linux kernel V.S. different distributions. Different distros offer different packages so that you can always choose the best for your need.

Or, Think of yum, apt, or apk. You can easily set it up with your favorite packages for any new environment using these package managers.

DevStream aims to be the package manager for DevOps tools. To be more ambitious, DevStream wants to be the Linux kernel, around which different distros can be created with various components so that you can always have the best components for each part of your SDLC workflow.

Why Using DevStream?

No more manual curl/wget download, apt install, helm install; no more local experiments and playing around just to get a piece of tool installed correctly.

Define your wanted DevOps tools in a single human-readable YAML config file, and at the press of a button (one single command), you will have your whole DevOps toolchain and SDLC workflow set up.

Want to install another different tool for a try? No problem. Want to remove or reinstall a specific piece in the whole workflow? Got your back.

Supported DevOps Tools

Type Plugin Note
Issue Tracking Trello - GitHub Trello/GitHub Integratoin
Source Code Management GitHub Repository Bootstrapping - Golang
CI GitHub Actions - Golang
CI GitHub Actions - Python
CI GitHub Actions - Node.js
CD/GitOps ArgoCD ArgoCD Installation
CD/GitOps ArgoCD App (manages the Application CRD of ArgoCD) ArgoCD Application Creation
Monitoring Prometheus/Grafana

Configuration

See examples/config.yaml.

Run

To install/reinstall/update, run:

./dtm apply -f examples/config.yaml

The command above will ask you for confirmation before actually executing the changes. To apply without confirmation (like apt-get -y update), run:

./dtm -y apply -f examples/config.yaml

To delete, run:

./dtm delete -f examples/config.yaml

Similarly, to delete without confirmation:

./dtm -y delete -f examples/config.yaml

To verify, run:

./dtm verify -f examples/config.yaml

Architecture

See docs/architecture.md.

Build

Dependencies:

  • go 1.17
  • the $GOPATH/bin directory should be in your PATH environment variable (we use goimports to update import lines)
$ make help

Usage:
  make <target>
  help                Display this help.
  build               Build dtm & plugins locally.
  build-core          Build dtm core only, without plugins, locally.
  build-release       Build for all platforms for release.
  build-darwin-arm64  Build for darwin/arm64 for release.
  build-darwin-amd64  Cross-platform build for darwin/amd64.
  build-linux-amd64   Cross-platform build for linux/amd64
  e2e                 Run e2e tests.
  fmt                 Run 'go fmt' & goimports against code.
  vet                 Run go vet against code.

Test

Unit/functional test:

go test ./...

Why dtm?

Q: The CLI tool is named dtm, while the tool itself is called DevStream. What the heck?! Where is the consistency?

A: Inspired by git, the name is (depending on your mood):

  • a symmetric, scientific acronym of devstream.
  • "devops toolchain manager": you're in a good mood, and it actually works for you.
  • "dead to me": when it breaks.

Contribute

See CONTRIBUTING.md.

About

DevStream: the open-source DevOps toolchain manager (DTM).

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.6%
  • HCL 5.9%
  • Shell 1.8%
  • Makefile 1.4%
  • Other 0.3%