diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-09-19 04:54:42 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-09-19 05:01:16 +0300 |
commit | 1358f6fbb8ae4d180bb2723098e39358354c6510 (patch) | |
tree | 91b27f658e425ea7d80f66898fe5915b45f926bc | |
parent | a4d45358a2d0b2d66a5927f475f9c1910a5bf19f (diff) |
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.
-rwxr-xr-x | script/diaspora-dev | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/script/diaspora-dev b/script/diaspora-dev index cfc543e9f..1c5eace04 100755 --- a/script/diaspora-dev +++ b/script/diaspora-dev @@ -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" @@ -136,30 +140,31 @@ print_usage_full() { print_usage_header "$SCRIPT_NAME COMMAND" echo echo "Management Commands:" - echo " setup Prepare diaspora* to run for development" - echo " start Start diaspora*" - echo " stop Stop diaspora*" - echo " restart Restart of diaspora*" - echo " logs Follow log output of diaspora*" - echo " status Show current instance status of diaspora*" - echo " clean Reset diaspora* instance" + echo " setup Prepare diaspora* to run for development" + echo " start Start diaspora*" + echo " stop Stop diaspora*" + echo " restart Restart of diaspora*" + 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" - echo " jasmine Run jasmine tests" - echo " rspec Run rspec tests" - echo " pronto Run pronto checks" - echo " migrate Execute pending migrations" + echo " cucumber Run cucumber tests" + echo " jasmine Run jasmine tests" + echo " rspec Run rspec tests" + echo " pronto Run pronto checks" + echo " migrate Execute pending migrations" echo echo "Misc. Commands:" - echo " build Build basic diaspora* environment" - echo " bundle (Re-)Install gems for diaspora*" - echo " yarn (Re-)Install frontend dependencies for diaspora*" - echo " config Configure diaspora*" - echo " exec Execute a command in the run environment (advanced)" - echo " help Show help for commands" - echo " setup-rails Prepare diaspora* development environment (install dependencies, migrate db)" - echo " setup-tests Prepare diaspora* test environment" + echo " build Build basic diaspora* environment" + echo " bundle (Re-)Install gems for diaspora*" + echo " yarn (Re-)Install frontend dependencies for diaspora*" + echo " config Configure diaspora*" + echo " exec Execute a command in the run environment (advanced)" + echo " help Show help for commands" + echo " setup-rails Prepare diaspora* development environment (install dependencies, migrate db)" + echo " setup-tests Prepare diaspora* test environment" echo echo "Run '$SCRIPT_NAME help COMMAND' for more information on a command." } @@ -556,6 +561,9 @@ case "$dia_command" in cucumber) dia_cucumber "$@" ;; + docker-compose) + dia_docker_compose "$@" + ;; exec) dia_exec "$@" ;; |