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
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-06-30 23:37:10 +02:00
|
|
|
### Examples
|
|
|
|
|
|
|
|
* Configure myos for domain.tld
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ make bootstrap DOMAIN=domain.tld
|
|
|
|
```
|
|
|
|
|
|
|
|
* Start myos stacks
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ make node up STACK='zen'
|
|
|
|
```
|
|
|
|
|
|
|
|
`make node` starts the stack node with docker host services :
|
|
|
|
- consul (service discovery)
|
|
|
|
- fabio (load balancer)
|
|
|
|
- ipfs (inter planetary file system)
|
|
|
|
- registrator (docker/consul bridge)
|
|
|
|
`make User` starts the stack User with docker user services :
|
|
|
|
- myos (ssh-agent)
|
|
|
|
- ipfs (when STACK=zen)
|
|
|
|
`make up` starts the stack STACK
|
|
|
|
- zen (when STACK=zen)
|
|
|
|
|
|
|
|
* 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
|
|
|
|
```
|
|
|
|
|
|
|
|
`make config` show docker compose yaml config for stack STACK
|
|
|
|
`make stack-node-config` show docker compose yaml config for stack node
|
|
|
|
`make stack-User-config` show docker compose yaml config for stack User
|
|
|
|
`make stack-elastic-config` show docker compose yaml config for stack elastic
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2021-05-16 22:26:45 +02:00
|
|
|
Use it at your own risks.
|