Build the docker containers using the Dockerfiles provided in the subfolders of this repo.
$ docker build -t beam .
$ docker-compose up
#$ docker container run -p 8888:8888 -name beam beam
$ source env/bin/activate
$ gcloud beta emulators pubsub start --project=myproject
$ $(gcloud beta emulators pubsub env-init)
$ cd /opt/python-pubsub/samples/snippets
$ python publisher.py myproject create mytopic
$ python subscriber.py myproject create mytopic mysubscription
$ python publisher.py myproject publish mytopic
$ python subscriber.py myproject receive mysubscription