https://github.com/midnighter/pip-compile
A minimal Docker image that provides a Python environment with pip-tools in order to lock requirements files.
https://github.com/midnighter/pip-compile
alpine-image debian-image docker docker-image pip-tools py38 python
Last synced: 4 months ago
JSON representation
A minimal Docker image that provides a Python environment with pip-tools in order to lock requirements files.
- Host: GitHub
- URL: https://github.com/midnighter/pip-compile
- Owner: Midnighter
- License: apache-2.0
- Created: 2019-08-23T18:33:05.000Z (almost 6 years ago)
- Default Branch: stable
- Last Pushed: 2020-07-03T15:27:01.000Z (almost 5 years ago)
- Last Synced: 2025-01-04T20:15:09.562Z (5 months ago)
- Topics: alpine-image, debian-image, docker, docker-image, pip-tools, py38, python
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/midnighter/pip-compile
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minimal Environment for `pip-compile`
[](https://github.com/Midnighter/pip-compile/actions)
[](https://hub.docker.com/r/midnighter/pip-compile)
[](https://opensource.org/licenses/Apache-2.0)A minimal Docker image that provides a Python environment with
[`pip-tools`](https://pypi.org/project/pip-tools/) in order to lock requirements
files.## Usage
Simply mount your requirements file to `/opt/requirements` and run the
container. The [Docker
entrypoint](https://docs.docker.com/engine/reference/builder/#entrypoint) is
`pip-compile --generate-hashes`, for example,```
docker run --rm \
--mount "source=${PWD},target=/opt/requirements,type=bind" \
midnighter/pip-compile:3.8-alpine3.12 \
--upgrade --verbose requirements.in
```This will create a corresponding compiled `.txt` file in the mounted directory;
in this example `./requirements.txt`.## Python Environments
Images are generated for the following environments. Please [open an
issue](https://github.com/Midnighter/pip-compile/issues/new) if you require
others.| Tag | Python | Distribution |
| --- | ------ | ------------ |
| 3.8-alpine3.12 | 3.8 | [Alpine Linux 3.12](https://www.alpinelinux.org/) |
| 3.8-slim-buster | 3.8 | [Debian Buster](https://www.debian.org/) |## Copyright
* Copyright © 2019, Moritz E. Beber.
* Free software licensed under the [Apache Software License 2.0](LICENSE).