Merge pull request #1442 from SkynetLabs/ivo/dc_help

Add a docstring explaining the `dc` command.
This commit is contained in:
Ivaylo Novakov 2021-12-14 08:35:54 +01:00 committed by GitHub
commit 868bb4ee21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

5
dc
View File

@ -1,5 +1,10 @@
#!/bin/bash
# The dc command is an alias to docker-compose which also scans the current portal configuration (as defined in .env)
# and selects the right docker-compose files to include in the operation. You can use the command in the same way you
# would use docker-compose with the only difference being that you don't need to specify compose files. For more
# information you can run `./dc` or `./dc help`.
if [ -f .env ]; then
OLD_IFS=$IFS; IFS=$'\n'; for x in `grep -v '^#.*' .env`; do export $x; done; IFS=$OLD_IFS
fi