https://github.com/jayfk/docker-pypi-cache
A simple pypi cache server for local development with docker
https://github.com/jayfk/docker-pypi-cache
Last synced: 26 days ago
JSON representation
A simple pypi cache server for local development with docker
- Host: GitHub
- URL: https://github.com/jayfk/docker-pypi-cache
- Owner: jayfk
- Created: 2016-04-07T10:22:45.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-09T11:11:05.000Z (over 9 years ago)
- Last Synced: 2025-06-19T22:44:57.537Z (12 months ago)
- Language: Nginx
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an **experimental** approach to create a simple local cache for PyPi packages.
To start the cache server
docker run -d -v /data/pypi-cache:/data/nginx/cache -p 4000:4000 jayfk/docker-pypi-cache
Use the cache server during build time in your `Dockerfile` by adding two environment variables.
For docker 1.9 and above:
ENV PIP_INDEX_URL=http://172.17.0.1:4000/simple/
ENV PIP_TRUSTED_HOST=172.17.0.1
For docker 1.8 and lower:
ENV PIP_INDEX_URL=http://172.17.42.1:4000/simple/
ENV PIP_TRUSTED_HOST=172.17.42.1