Browse Source

Show docker examples

Brett Langdon 9 years ago
parent
commit
076ad1f296
No known key found for this signature in database GPG Key ID: A2ECAB73CE12147F
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      README.md

+ 18
- 1
README.md View File

@ -3,7 +3,6 @@ PyPIHub
PyPI server for serving Python packages out of GitHub.
## Installing
```bash
@ -41,6 +40,24 @@ export PYPIHUB_REPOS="brettlangdon/flask-env brettlangdon/flask-defer [... <owne
pypihub
```
## Docker
```bash
docker run --rm -it -p "8287:8287" -e PYPIHUB_USERNAME="<username>" -e PYPIHUB_ACCESS_TOKEN="<github-acess-token>" -e PYPIHUB_REPOS="<owner>/<repo> ..." brettlangdon/pypihub:latest
```
### Using an env file
```
PYPIHUB_USERNAME=<username>
PYPIHUB_ACCESS_TOKEN=<github-access-token>
PYPIHUB_REPOS=<owner>/<repo> ...
```
```bash
docker run --rm -it -p "8287:8287" --env-file ./.env brettlangdon/pypihub:latest
```
## Endpoints
* `/` - Page containing all links for all projects/assets


Loading…
Cancel
Save