Some fish utility functions for an application run with docker-compose. Where
applicable the docker-compose exec
command is used. For dcomp-django
is
falls back to the the docker-compose run --rm
command. dcomp-test
always issues the docker-compose run --rm
command.
Usage:
dcomp-django <service name> <django command> [args] [kwargs]
Run django commands in the docker container. The first argument is the service name defined in the docker-compose file. The second is the django command you want to execute. If that command takes further arguments just pass them in as args or kwargs.
Example:
dcomp-django machine-manager runserver 0.0.0.0:5004
Usage:
dcomp-superv <service name> <supervisorctl command> [args]
Run supervisorctl commands in the docker container. The first argument is the service name defined in the docker-compose file. The second is the supervisorctl command you want to execute. If that command takes further arguments just pass them in as args or kwargs.
Example:
dcomp-superv machine-manager fg gunicorn
Usage:
dcomp-test <service name> [args] [kwargs]
Run bin/test in the docker container. The first argument is the service name defined in the docker-compose file. You can pass in further arguments as args or kwargs.
Example:
dcomp-test lib