Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 12 days 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 (over 5 years ago)
- Default Branch: stable
- Last Pushed: 2020-07-03T15:27:01.000Z (over 4 years ago)
- Last Synced: 2024-11-09T14:47:19.565Z (2 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`
[![Docker image CI](https://github.com/Midnighter/pip-compile/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/Midnighter/pip-compile/actions)
[![Docker image pulls](https://img.shields.io/docker/pulls/midnighter/pip-compile)](https://hub.docker.com/r/midnighter/pip-compile)
[![License](https://img.shields.io/badge/license-Apache--2.0-blueviolet)](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).