/docker_fish

Primary LanguageShellGNU General Public License v3.0GPL-3.0

docker_fish

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.

dcomp-django

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

dcomp-superv

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

dcomp-test

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