https://github.com/msoedov/tw-diganostic
https://github.com/msoedov/tw-diganostic
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/msoedov/tw-diganostic
- Owner: msoedov
- Created: 2018-04-11T16:37:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T01:41:41.000Z (about 8 years ago)
- Last Synced: 2025-01-14T11:17:24.927Z (over 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Diagnostic tool
### Usage
```python
python app.py
Fire trace:
1. Initial component
2. ('The function received no value for the required argument:', 'servers_file')
Type: function
String form:
File: app.py
Line: 112
Docstring: Diagnostic cli app
Arguments:
servers_file {str} -- a plain text file with list of servers
Keyword Arguments:
workers {int} -- number of threads (default: {5})
Usage: app.py SERVERS_FILE [WORKERS]
app.py --servers-file SERVERS_FILE [--workers WORKERS]
```
### Inlined (flat) dockerfile
```
docker build -f Dockerfile.cli -t cli .
docker run -v `pwd`:/app -it cli python app.py --servers-file=...
```
### Regular dockerfile
```
docker build -f Dockerfile -t cli .
docker run -v `pwd`:/app -it cli python app.py --servers-file=...
```
### Run unit tests
```shell
sh test.sh
```