myos/README.md

116 lines
1.6 KiB
Markdown
Raw Normal View History

2021-05-16 22:26:45 +02:00
# myos - Make Your Own Stack
2021-02-08 14:52:49 +01:00
2022-06-30 23:37:10 +02:00
Docker paas based on docker compose files.
2021-02-08 14:52:49 +01:00
## Disclaimer
2021-05-16 22:26:45 +02:00
This is work in progress ;)
2021-02-08 14:52:49 +01:00
2022-07-06 23:27:41 +02:00
## Requirements
You need `git` and `make`.
2021-02-08 14:52:49 +01:00
## Usage
2022-06-30 23:37:10 +02:00
### Examples
2022-07-06 23:27:41 +02:00
* Configure myos for domain `domain.tld` and stack `zen`
2022-06-30 23:37:10 +02:00
```shell
2022-07-06 23:27:41 +02:00
$ make bootstrap DOMAIN=domain.tld STACK=zen
2022-06-30 23:37:10 +02:00
```
* Start myos stacks
```shell
2022-07-06 23:27:41 +02:00
$ make node up
2022-06-30 23:37:10 +02:00
```
2022-07-06 23:27:41 +02:00
`make node` starts the stack `node` with docker host services :
2022-06-30 23:37:10 +02:00
- consul (service discovery)
- fabio (load balancer)
- ipfs (inter planetary file system)
- registrator (docker/consul bridge)
2022-07-06 23:27:41 +02:00
`make up` starts the stack `zen` with docker services :
- ipfs (mount ~/.ipfs)
- zen (mount ~/.zen)
2022-06-30 23:37:10 +02:00
* Stop myos
```shell
$ make shutdown
```
* Install myos
2021-02-08 14:52:49 +01:00
```shell
$ make install
```
2022-06-30 23:37:10 +02:00
### Variables
2021-06-12 03:13:01 +02:00
2022-06-30 23:37:10 +02:00
* DEBUG
2021-06-12 03:13:01 +02:00
2022-06-30 23:37:10 +02:00
Show executed commands
2021-06-12 03:13:01 +02:00
```shell
2022-06-30 23:37:10 +02:00
$ make up DEBUG=true
2021-06-12 03:13:01 +02:00
```
2022-06-30 23:37:10 +02:00
* DRYRUN
Do nothing, show commands instead of executing it
```shell
$ make up DRYRUN=true
```
* VERBOSE
Show called functions
```shell
$ make up VERBOSE=true
```
* Show variable VARIABLE
```shell
$ make print-VARIABLE
```
### Debug
* Show docker compose yaml config
```shell
$ make config
```
2022-07-06 23:27:41 +02:00
`make config` show docker compose yaml config for stack `STACK`
`make node-config` show docker compose yaml config for stack `node`
`make user-config` show docker compose yaml config for stack `User`
`make stack-elastic-config` show docker compose yaml config for stack `elastic`
2022-06-30 23:37:10 +02:00
* Show debug variables
```shell
$ make debug
```
* Generate self documentation
```shell
$ make doc
```
2021-06-12 03:13:01 +02:00
2022-06-30 23:37:10 +02:00
* Show env args
2021-06-12 03:13:01 +02:00
```shell
2022-06-30 23:37:10 +02:00
$ make print-env_args
2021-06-12 03:13:01 +02:00
```
2021-02-08 14:52:49 +01:00
## Status
2022-07-06 23:27:41 +02:00
Beta software, use it at your own risks.