rap
is a dev environment management tool.
Based on docker
and docker-compose
, help developers to rapidly set up and easily manage development enviroments, e.g. mysql
mongodb
redis
...
rap
use rap.yaml
to manage environment dependencies.
# rap.yaml
# env. depns
depns:
mysql: [email protected]
mongo: [email protected]
cache: [email protected]
...
# [optional] extra configs for each env
configs:
mysql: # depns name
volumes: # specify storages, default is `.rap/vol/[name]`
- .rap/vol/mysql:/var/lib/mysql
ports: # specify ports map
- "3306:3306"
environment: # specify container enviroment variables
MYSQL_ROOT_PASSWORD: 123
...
# start|stop|restart all depns as rap.yaml described
$ rap start|stop|restart
# interactivley add a new depn info
$ rap add
# start a web server to manage rap
$ rap serve
# show all services
$ rap ps
# download & build images specified in docker-compose file
$ rap download
# rap [FLAGS] [COMMAND]
## FLAGS
## COMMAND