[docker] added argument '--help' to docker.build.sh script
Simon Schön committed
Jul 2, 2022 at 19:54 UTC
e44c21fa360c6160240d045a8fecb9338d6a956b
1 file changed
+22
docker/docker.build.sh
+22
@@ -85,6 +85,28 @@ if ! [ -z $1 ]; then
85
OVERRIDE_TAGS="true";
86
shift 1;
87
;;
88
+ --help)
89
+ __usage="\n
90
+ Usage: ./$(basename ${0}) [OPTIONS] [BUILD ARGUMENTS]\n
91
+ \n
92
+ Options:\n
93
+ \t--log \t\twrite output to build.log file\n
94
+ \t--no-tags \tdo not use default tags (meshcentral:latest and meshcentral:%VERSION%)\n
95
+ \t--prune \tWARNING: This will remove:\n
96
+ \t\t\t - all stopped docker containers\n
97
+ \t\t\t - all docker networks not used by at least one container\n
98
+ \t\t\t - all docker images without at least one container associated to them\n
99
+ \t\t\t - all docker build cache\n
100
+ \n
101
+ Build arguments: \tAll build arguments are forwarded to the docker build command, so you can use any option accepted by 'docker build'\n
102
+ \t\t\t(https://docs.docker.com/engine/reference/commandline/build/#options)\n\n
103
+ \t--build-arg INCLUDE_MONGODBTOOLS=yes \tIncludes mongodb-tools (mongodump, ...) in the image\n
104
+ \t--build-arg DISABLE_MINIFY=yes \t\tDisables minification of files\n
105
+ \t--build-arg DISABLE_TRANSLATE=yes \tDisables translation of files\n
106
+ ";
107
+ echo -e $__usage;
108
+ exit 0;
109
+ ;;
110
*)
111
break;
112
;;