Skip to content

Commit

Permalink
[docker] added argument '--help' to docker.build.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
sschoen committed Jul 2, 2022
1 parent 3347646 commit e44c21f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker/docker.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,28 @@ if ! [ -z $1 ]; then
OVERRIDE_TAGS="true";
shift 1;
;;
--help)
__usage="\n
Usage: ./$(basename ${0}) [OPTIONS] [BUILD ARGUMENTS]\n
\n
Options:\n
\t--log \t\twrite output to build.log file\n
\t--no-tags \tdo not use default tags (meshcentral:latest and meshcentral:%VERSION%)\n
\t--prune \tWARNING: This will remove:\n
\t\t\t - all stopped docker containers\n
\t\t\t - all docker networks not used by at least one container\n
\t\t\t - all docker images without at least one container associated to them\n
\t\t\t - all docker build cache\n
\n
Build arguments: \tAll build arguments are forwarded to the docker build command, so you can use any option accepted by 'docker build'\n
\t\t\t(https://docs.docker.com/engine/reference/commandline/build/#options)\n\n
\t--build-arg INCLUDE_MONGODBTOOLS=yes \tIncludes mongodb-tools (mongodump, ...) in the image\n
\t--build-arg DISABLE_MINIFY=yes \t\tDisables minification of files\n
\t--build-arg DISABLE_TRANSLATE=yes \tDisables translation of files\n
";
echo -e $__usage;
exit 0;
;;
*)
break;
;;
Expand Down

0 comments on commit e44c21f

Please sign in to comment.