You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
1.1 KiB

#!/bin/bash
set -e;
function compose_pull(){ compose_exec pull; }
register 'compose' 'pull' 'update all docker images' compose_pull
function compose_logs(){ compose_exec logs $@; }
register 'compose' 'logs' 'display container logs' compose_logs
function compose_ps(){ compose_exec ps $@; }
register 'compose' 'ps' 'list containers' compose_ps
function compose_top(){ compose_exec top $@; }
register 'compose' 'top' 'display the running processes of a container' compose_top
function compose_exec(){ docker-compose $@; }
register 'compose' 'exec' 'execute an arbitrary docker-compose command' compose_exec
function compose_run(){ docker-compose run -T --rm $@; }
register 'compose' 'run' 'execute a docker-compose run command' compose_run
function compose_up(){ docker-compose up -d $@; }
register 'compose' 'up' 'start one or more docker-compose service(s)' compose_up
function compose_kill(){ docker-compose kill $@; }
register 'compose' 'kill' 'kill one or more docker-compose service(s)' compose_kill
function compose_down(){ docker-compose down; }
register 'compose' 'down' 'stop all docker-compose service(s)' compose_down