Python and NGS Running in Docker

Start a lightweight Docker container:
docker run --entrypoint /bin/bash -it python:3.8-slim-buster
Or you can also mount local creds via a volume:
docker run --entrypoint /bin/bash -v $HOME/.nkeys/creds/synadia/NGS/:/creds -it python:3.8-slim-buster
Install and dependencies to install nkeys:
apt-get update && apt-get install -y build-essential curl
pip install asyncio-nats-client[nkeys]
Get the Python examples using curl:
curl -o -O -L
curl -o -O -L
Create a subscription that lingers:
python --creds /creds/NGS.creds -s tls:// hello &
Publish a message:
python --creds /creds/NGS.creds -s tls:// hello -d world