From 90b0ae81d6ee4f482cc4d809918dec84ad0d2068 Mon Sep 17 00:00:00 2001 From: Domingo Dirutigliano Date: Fri, 11 Apr 2025 11:51:30 +0200 Subject: [PATCH] --prebuilt flag --- README.md | 2 +- start.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e932cdc..519a0be 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ With this command you will download firegex.py, and run it, it will require you Or, you can start in a similar way firegex, cloning this repository and executing this command ```bash -python3 start.py +python3 start.py start --prebuilt ``` Cloning the repository start.py will automatically build the docker image of firegex from source, and start it. Image building of firegex will require more time, so it's recommended to use the version just builded and available in the github packages. diff --git a/start.py b/start.py index 78c76c5..805242f 100755 --- a/start.py +++ b/start.py @@ -105,6 +105,7 @@ def gen_args(args_to_parse: list[str]|None = None): parser_start.add_argument('--port', "-p", type=int, required=False, help='Port where open the web service of the firewall', default=4444) parser_start.add_argument('--logs', required=False, action="store_true", help='Show firegex logs', default=False) parser_start.add_argument('--version', '-v', required=False, type=str , help='Version of the firegex image to use', default=None) + parser_start.add_argument('--prebuilt', required=False, action="store_true", help='Use prebuilt docker image', default=False) #Stop Command parser_stop = subcommands.add_parser('stop', help='Stop the firewall') @@ -121,6 +122,9 @@ def gen_args(args_to_parse: list[str]|None = None): if "version" not in args or not args.version: args.version = "latest" + if "prebuilt" in args and args.prebuilt: + g.build = False + if "clear" not in args: args.clear = False