Expose docker-compose through diaspora-dev script
As the docker-compose.yml contains variables, it can't just be used with docker-compose directly. So this manually use docker-compose commands with all the required environment variables set.
This commit is contained in:
parent
a4d45358a2
commit
1358f6fbb8
1 changed files with 28 additions and 20 deletions
|
|
@ -44,6 +44,10 @@ print_usage() {
|
|||
print_usage_header "clean [options]" \
|
||||
" --config Delete configuration files as well"
|
||||
;;
|
||||
docker-compose)
|
||||
echo; echo "Run docker-compose commands with the required environment variables"
|
||||
print_usage_header "docker-compose [options]"
|
||||
;;
|
||||
# test & development
|
||||
cucumber)
|
||||
echo; echo "Run cucumber tests"
|
||||
|
|
@ -143,6 +147,7 @@ print_usage_full() {
|
|||
echo " logs Follow log output of diaspora*"
|
||||
echo " status Show current instance status of diaspora*"
|
||||
echo " clean Reset diaspora* instance"
|
||||
echo " docker-compose Run docker-compose commands"
|
||||
echo
|
||||
echo "Test and Development Commands:"
|
||||
echo " cucumber Run cucumber tests"
|
||||
|
|
@ -556,6 +561,9 @@ case "$dia_command" in
|
|||
cucumber)
|
||||
dia_cucumber "$@"
|
||||
;;
|
||||
docker-compose)
|
||||
dia_docker_compose "$@"
|
||||
;;
|
||||
exec)
|
||||
dia_exec "$@"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue