https://github.com/malexer/python-build-env
One more way to deploy python in docker - python build environment as a docker image
https://github.com/malexer/python-build-env
Last synced: 10 months ago
JSON representation
One more way to deploy python in docker - python build environment as a docker image
- Host: GitHub
- URL: https://github.com/malexer/python-build-env
- Owner: malexer
- License: mit
- Created: 2016-03-04T19:07:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-04T23:32:49.000Z (almost 10 years ago)
- Last Synced: 2025-01-11T16:31:04.815Z (12 months ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-build-env
Python build environment as a Docker image.
## Overview
Deploying python applications as a Docker containers stimulate you to minimize
the image size and keep only required stuff inside running container.
At the same time we need some flexible way to deliver specific versions of
python packages with minimum overhead.
Pip is a great tool to solve the first part but we don't really want to have
it in a running container.
One of the options is to create debs for required packages.
Idea: use separate Docker image to build debs: start, build, autoremove.
[Fabric](http://www.fabfile.org) will be used for automation of the whole workflow.
## Quick-start
1. Install Docker and Fabric.
2. Update `docker/requirements.txt` with your list of python packages.
3. Run `fab build`
4. Check `debs/` directory for all required deb files (including extra
dependencies).
5. Use this repo as an example to build your own deployment workflow:
* `*.deb` can be used in Dockerfile: `RUN dpkg -Ri /path/to/debs`
* use it to automate building you own base images