I may have mentioned in the past that I like to keep most services running on 
my deskside server in containers.  This is mostly to keep the base OS 
installation as vanilla as possible to make it easy to replace.  Since I spent 
some time over the weekend to play with mComm Python and Kurt has blessed my 
prior attempts at repackaging mComm Python, I thought I'd share the bits needed 
to build my Docker container.

As per usual, it's on my S3 bucket:
http://public.nachomountain.com/files/m100/mComm-Python-docker.tar.gz

My work suffers from a substantial lack of documentation, but there are two 
places to configure the container:
1. By default, the container will use its own /mnt directory as the TPDD 
directory.  You'll want to bind a volume there if you're sharing a directory 
outside the container.  An example of how to do this is in the 
docker-compose.yaml
2. The user that the container will run as is defined in the docker-compose 
file as well
3. By default, the container will try to use /dev/ttyUSB0 as the serial 
interface.  To change this, set the SERIAL environment for the container, 
either in a .env file for docker-compose, or with the -e parameter to docker 
run.


Reply via email to