forked from sprucedev/DockCI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockci_server
More file actions
executable file
·28 lines (21 loc) · 779 Bytes
/
Copy pathdockci_server
File metadata and controls
executable file
·28 lines (21 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python
import logging
from argparse import ArgumentParser
import dockci.server
PARSER = ArgumentParser(description="CI, but with that all important Docker twist")
PARSER.add_argument("--host",
help="Interface to listen on")
PARSER.add_argument("--port", "-p", type=int,
help="Port to listen on")
PARSER.add_argument("--debug", default=False, action='store_true',
help="Turn debug mode on")
def main():
args = PARSER.parse_args()
log_level = logging.DEBUG if args.debug else logging.INFO
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
level=log_level,
)
dockci.server.run(args.__dict__)
if __name__ == '__main__':
main()