A simple tools to log the server ip address
Project description
Build
pip install -r requirements.txt
rm -fr dist
python -m build
python -m twine upload dist/* -u __token__ -p $(PYPI_TOKEN)
configuration
device-name: server992
kafka-config:
type: 1 # 1 is for default sasl_ssl
value:
bootstrap_servers:
- { host }
sasl_mechanism: SCRAM-SHA-256
security_protocol: SASL_SSL
sasl_plain_username: { username }
sasl_plain_password: { password }
kafka-config:
type: 1
value:
bootstrap_servers:
- { host }
sasl_mechanism: SCRAM-SHA-256
security_protocol: SASL_SSL
sasl_plain_username: { username }
sasl_plain_password: { password }
consumer:
group_id: {group-id}
topic: {topic-name}
Docker
Build
- Download the Dockerfile for build
mkdir sipc pushd sipc curl https://gist.githubusercontent.com/xh-dev/3359450fd15f843016cc6f0babd8bfc0/raw/Dockerfile -O
- Create
config.yaml
base on template inConfiguration
section. - build the docker image
docker build --no-cache -t sipc:latest .
Execute
push to kafka
docker run --rm -it -v $(pwd)/config.yaml:/app/config.yaml sipc:latest
# or
# docker run --rm -it -v $(pwd)/config.yaml:/app/config.yaml sipc:latest python -m sipc-xethhung12 --publish
pull from kafka
docker run --rm -it -v $(pwd)/config.yaml:/app/config.yaml sipc:latest python -m sipc-xethhung12 --subscribe
gen env meta file
docker run --rm -it -v $(pwd)/config.yaml:/app/config.yaml sipc:latest python -m sipc-xethhung12 --cast
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sipc_xethhung12-0.0.6.tar.gz
(2.4 MB
view hashes)
Built Distribution
Close
Hashes for sipc_xethhung12-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94f5384db6ef635d00cf821fa3f74dea2c2f8cee478683aa5e65d4d9f84820dd |
|
MD5 | cbe029714e92d27550aedcfe9ea3ffc1 |
|
BLAKE2b-256 | e7a7957f24dbbf19cdf94fdb606ad565f004603ec94295f237cd4c6324e012de |