Dockerize a Pipeline
Docker files are amazing, and you shouldn't write them.
Last updated
Was this helpful?
Docker files are amazing, and you shouldn't write them.
Last updated
Was this helpful?
How to build Docker containers for your pipeline
How to specify Python package dependencies (just use setup.py!)
How to send the container to AWS ECR (if you've set up your AWS )
The Disdat dockerizer will build a container based on your project's setup.py
It will install any Python dependencies it finds in that setup.py
file. If you're project can create a source distribution via pip setup.py sdist
then you can use Disdat to dockerize your pipeline.
Have you installed Docker on your dev box? Do first!
Change into your project's directory.
Run dsdt dockerize <your project's directory>
Note: Disdat names of your container based on the name
field in your setup.py file.
Pro Tip: By default we build containers with based on Python 3.6.8-slim. If you're in desperate need of Python 2.7, something has gone wrong with your dev process. If you're in desperate need for Python 3.6.8 +, then you'll need to make a PR to the project for another version of slim that looks like this .