Currently we can build a Py3-compatible container image with gradle by running:
This builds a docker container image like: valentyn-docker-apache.bintray.io/beam/python3
The code for this is defined in: https://github.com/apache/beam/blob/ae60a72b03f3a2b6b2a06667ec1868a7acc8e38f/sdks/python/container/py3/build.gradle#L48
To support portable runners that use a container (e.g. Flink) on multiple versions of Python 3, we should make it possible to build Python 3-compatible SDK harness containers bundled with any desired python version.
We could have several gradle projects:
and several Dockerfiles to support this:
The only difference right now would be the base image used in FROM field in Dockerfile.
Alternatively, we could have one parameterized Dockerfile that starts with :
I think the latter approach, may result in complications later if these containers will need to diverge down the road.