Skip to content

Commit 90b0ae8

Browse files
committed
--prebuilt flag
1 parent 0ad49e8 commit 90b0ae8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ With this command you will download firegex.py, and run it, it will require you
1717

1818
Or, you can start in a similar way firegex, cloning this repository and executing this command
1919
```bash
20-
python3 start.py
20+
python3 start.py start --prebuilt
2121
```
2222
Cloning the repository start.py will automatically build the docker image of firegex from source, and start it.
2323
Image building of firegex will require more time, so it's recommended to use the version just builded and available in the github packages.

start.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def gen_args(args_to_parse: list[str]|None = None):
105105
parser_start.add_argument('--port', "-p", type=int, required=False, help='Port where open the web service of the firewall', default=4444)
106106
parser_start.add_argument('--logs', required=False, action="store_true", help='Show firegex logs', default=False)
107107
parser_start.add_argument('--version', '-v', required=False, type=str , help='Version of the firegex image to use', default=None)
108+
parser_start.add_argument('--prebuilt', required=False, action="store_true", help='Use prebuilt docker image', default=False)
108109

109110
#Stop Command
110111
parser_stop = subcommands.add_parser('stop', help='Stop the firewall')
@@ -121,6 +122,9 @@ def gen_args(args_to_parse: list[str]|None = None):
121122
if "version" not in args or not args.version:
122123
args.version = "latest"
123124

125+
if "prebuilt" in args and args.prebuilt:
126+
g.build = False
127+
124128
if "clear" not in args:
125129
args.clear = False
126130

0 commit comments

Comments
 (0)