Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dd-decaf/pip-compile
A minimal Docker image that provides pip-tools in order to lock Python dependencies.
https://github.com/dd-decaf/pip-compile
Last synced: 6 days ago
JSON representation
A minimal Docker image that provides pip-tools in order to lock Python dependencies.
- Host: GitHub
- URL: https://github.com/dd-decaf/pip-compile
- Owner: DD-DeCaF
- License: apache-2.0
- Created: 2019-04-25T11:30:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T12:34:33.000Z (over 5 years ago)
- Last Synced: 2024-11-09T14:25:53.154Z (2 months ago)
- Language: Makefile
- Size: 7.81 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minimal Python Environment for `pip-compile`
This repository defines a minimal [Docker image](Dockerfile) based on Alpine
Linux 3.8 and Python 3.6 that provides a minimal environment with
[`pip-tools`](https://pypi.org/project/pip-tools/) in order to lock requirements
files.## Usage
Simply mount your requirements file to `/opt` and run the container. The [Docker
entrypoint](https://docs.docker.com/engine/reference/builder/#entrypoint) is
`pip-compile --verbose --generate-hashes`.```bash
docker run --rm --mount "source=.,target=/opt,type=bind" pip-compile:3.6-alpine3.8 requirements.in
```This will create a corresponding compiled `.txt` file in the mounted directory;
in this example `./requirements.txt`.## Copyright
* Copyright © 2019, Novo Nordisk Foundation Center for Biosustainability,
Technical University of Denmark.
* Free software licensed under the [Apache License, Version 2.0](LICENSE).