Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/queil/ring
Meta-orchestrator for developers
https://github.com/queil/ring
Last synced: about 1 month ago
JSON representation
Meta-orchestrator for developers
- Host: GitHub
- URL: https://github.com/queil/ring
- Owner: queil
- License: apache-2.0
- Created: 2022-08-17T10:08:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T20:35:37.000Z (11 months ago)
- Last Synced: 2024-01-17T23:20:41.036Z (11 months ago)
- Language: C#
- Homepage: https://queil.github.io/ring/
- Size: 1.44 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ring [![Build Status](https://dev.azure.com/queil/Ring/_apis/build/status/queil.ring?branchName=main)](https://dev.azure.com/Queil/Ring/_build/latest?definitionId=2&branchName=main) [![NuGet Badge](https://buildstats.info/nuget/ATech.Ring.Dotnet.Cli?includePreReleases=true)](https://www.nuget.org/packages/ATech.Ring.Dotnet.Cli)
## Meta-orchestrator for developers (cross-platform)
Ring brings order into the messy world of developing and debugging a cloud-ready microservice system side by side with
maintaining and migrating legacy ones where you may have many different types of services (ASP.NET Core, Topshelf,
WCF, ...) hosted in many different ways (Kubernetes, Docker, IIS Express, WindowsService, Exe) and scattered across many
solutions and repositories.# What is it?
Ring consists of the following parts:
* the meta-orchestrator (a dotnet CLI tool)
* [Visual Studio Extension](https://marketplace.visualstudio.com/items?itemName=account-technologies.ring-vsix) (2022,
also versions pre 4.0 support 2017, and 2019)
* [Visual Studio Code Extension](https://marketplace.visualstudio.com/items?itemName=queil.ring-vsce) (WIP)# How it works
Ring groups *apps* into *workspaces*. Workspaces are defined in [TOML](https://github.com/toml-lang/toml) files.
Workspaces are composed from apps and other workspaces. A workspace can be loaded and started.
Ring periodically runs a health check for every app, tries restarting the unhealthy ones, and reports the dead ones.
Ring also exposes a web socket interface. Visual Studio extensions use it mainly for visualizing workspace/apps states,
turning services off/on for build/debugging if they're a part of the currently loaded project/solution.# Basic facts
* You can run multiple instances of ring (serving different independent workspaces)
* There can be multiple clients (VS/VS Code extensions) interacting with a Ring instance at a time although mostly you'd
have just one
* Ring is meant to keep your workspace running even if you quit Visual Studio
* You can also run Ring in a stand-alone mode which just keeps your workspace running
* Ring exposes a web socket interface on port 7999# Supported runnables
* [kustomize](https://queil.github.io/ring/runnables/kustomize/) - Kubernetes apps managed
by [Kustomize](https://kustomize.io/)
* `dockercompose` - docker-compose files
* [aspnetcore](https://queil.github.io/ring/runnables/aspnetcore/) - .NET Core apps running in console (like ASP.NET
Core in Kestrel)
* `proc` - arbitrary native processesWindows-only:
* `iisxcore` - ASP.NET Core apps in IIS Express
* [iisexpress](https://queil.github.io/ring/runnables/iisexpress/) - WCF and other .NET Framework services hosted in IIS
Express
* `netexe` - full .NET Framework console apps (like TopShelf)# Installation
## Ring dotnet tool
```
dotnet tool install --global ATech.Ring.DotNet.Cli
```## Visual Studio Extension
*Make sure you installed the dotnet tool first.*
Download
here [ring! for Visual Studio](https://marketplace.visualstudio.com/items?itemName=account-technologies.ring-vsix)## Visual Studio Code Extension
Download an [early preview](https://marketplace.visualstudio.com/items?itemName=queil.ring-vsce)
## Troubleshooting
If ring does not work as expected you can use `--debug` or `-d` switch to enable a debug level output.
```
ring run -w .\path\to\your\workspace.toml -d
```# CLI commands
* `run` - runs a specified workspace in a stand-alone mode.
* `headless` - starts and awaits clients (VS Code / VS extension) connections. Once connected a client can load a
workspace and interact with it.
* `clone` - loads a workspace and clones configured repos for each runnable. The runnables must have the `sshRepoUrl`
parameter configured otherwise they'll be skipped.
* `config-*` commands - more info here - [configuration files](https://queil.github.io/ring/configuration/).# Vocabulary
* *app* (aka *runnable* - an application/service/process ring manages.
* *workspace* - a logical grouping of apps defined in TOML file(s).
Workspaces can be composed of other workspaces using the `import` tag.
Ring can only run a single workspace at a time.## Example workspace
```toml
# your workspace.toml
[[kustomize]]
path = "your/app"[[dockercompose]]
path = "app/2"[[import]]
path = "relative/path/to/your/workspace.toml"
```## Authoring workspaces
[Authoring workspaces docs](https://queil.github.io/ring/authoring-workspaces/)
# Release notes
[Here](RELEASENOTES.md)
# Working with the docs
Serve locally:
```bash
docker run -p 8089:8089 --rm -it -v ~/.ssh:/root/.ssh -v ${PWD}:/docs squidfunk/mkdocs-material serve -a 0.0.0.0:8089
```Publish
```bash
docker run --rm -it -v ~/.ssh:/root/.ssh -v ${PWD}:/docs squidfunk/mkdocs-material gh-deploy
```