Public Repository

Last pushed: 2 years ago
Short Description
Python program with paho-mqtt, mysql-python, pymongo, redis, pykafka supports.
Full Description

Usage

Suppose you have a python source file in '$PWD'.

docker run -t -v "$PWD":/home physicso/allocator:1.0 python /home/hello.py

Support ENVs (example)

-e MYSQL_HOST=$mysql_host
-e MYSQL_INSTANCE_NAME=$database_name
-e MYSQL_USERNAME=$username
-e MYSQL_PASSWORD=$password
-e MYSQL_HOST_PORT=$mysql_port
-e MONGODB_HOST=$mongodb_host (username:password@host_url)
-e MONGODB_HOST_PORT=$mongodb_port
-e KAFKA_HOST=$kafka_host
-e KAFKA_HOST_PORT=$kafka_port
-e BROKER_HOST=$broker_host
-e BROKER_HOST_PORT=$broker_port

Docker Pull Command
Owner
physicso