https://github.com/maxfreck/lxc-tmblr
An LXC orchestrator that allows you to start or stop containers based on their dependencies
https://github.com/maxfreck/lxc-tmblr
go golang lxc lxd orchestration
Last synced: 3 months ago
JSON representation
An LXC orchestrator that allows you to start or stop containers based on their dependencies
- Host: GitHub
- URL: https://github.com/maxfreck/lxc-tmblr
- Owner: maxfreck
- Created: 2025-01-06T22:19:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-09T19:53:54.000Z (5 months ago)
- Last Synced: 2025-01-09T20:37:05.116Z (5 months ago)
- Topics: go, golang, lxc, lxd, orchestration
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LXC Tumbler
LXC Tumbler is an LXC orchestrator that allows you to start or stop containers based on their dependencies.
## Usage
```sh
lxc-tmblr [commands]
```### Available Commands
```sh
-start Start the container with all the dependencies-stop Stop the container with all the dependencies
```### Flags
```sh
-n, -no-dependencies Ignore dependencies and work only with specified containers
```### Examples
Start `foo`, `bar` and stop `baz`
```sh
lxc-tmblr -start foo -start bar -stop baz
```## Defining dependencies
LXC Tumbler supports configuration files in YAML format. You can place config in one of the following files:
- `/etc/lxc-tmblr/config.yml`
- `$HOME/.config/lxc-tmblr/config.yml`
- `./config.yml`### Config example
```yaml
socket: /var/snap/lxd/common/lxd/unix.socket# A list of containers with dependencies.
# root is the actual name of the container. If root is not specified,
# the actual name of the container is equal to the name of the section.
#
# dependencies are the names of containers or sections that the current
# container depends on.
containers:foo:
dependencies:
- bar
- baz-with-subdependenciesbaz-with-subdependencies:
root: baz
dependencies:
- bar
- quux
```