# wingo-parser **Repository Path**: wingo-power/wingo-parser ## Basic Information - **Project Name**: wingo-parser - **Description**: Communication testing tool between onsite server and onboard client. - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-22 - **Last Updated**: 2021-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wingo-parser This project is for testing connections between client and server. # 1 Usages For client side, you need to specify the IP and port of the target server. For example: ```bash $ python main.py --client 192.168.11.19:3270 ``` To sleep for a few seconds before the start: ```bash $ python main.py --client 192.168.11.19:3270 --sleep 120 ``` For server side, you need to specify the port bound for listening. For example: ```bash $ python main.py --server 3270 ``` # 2 Logging All messages exchanging between client and server are logged at `./log` # 3 Docker ## 3.1 Build from Dockerfile ```bash $ docker build -f ./Dockerfile -t siyangxie/wingo-parser:latest . ``` ## 3.2 Pull the image from docker hub ```bash $ docker pull siyangxie/wingo-parser:latest ``` ## 3.3 Create container For client side: ```bash $ docker run -d -P --name wingo-parser --restart=always -v /home/wingo/log:/usr/src/app/log siyangxie/wingo-parser:latest /bin/bash -c "python main.py --client 192.168.11.19:3270" ``` For server side, if the bound port is set up to 3270: ```bash $ docker run -d -P --network=host --name wingo-parser --restart=always -v /home/wingo/log:/usr/src/app/log siyangxie/wingo-parser:latest /bin/bash -c "python main.py --server 3270" ```