Minimalistic NuGet Server running on a Raspberry Pi via Docker
sudo docker run --name nupyserver --env NPS_IP=[YOUR DOCKER HOST IP] -p 5000:5000 -v /srv/nupyserver:/nupyserver --restart always bxniom/nupyserver:0.2.1-arm
sudo docker run --name nupyserver --env NPS_IP=[YOUR DOCKER HOST IP] -p 5000:5000 -v /srv/nupyserver:/nupyserver --restart always bxniom/nupyserver:0.2.1-amd
git clone https://github.com/BxNiom/Python.NuPyServer.git
cd Python.NuPyServer
sudo docker build -t nupyserver:0.2.1 .
sudo docker run --name nupyserver --env NPS_IP=[YOUR DOCKER HOST IP] -p 5000:5000 -v /srv/nupyserver:/nupyserver --restart always nupyserver:0.2.1
git clone https://github.com/BxNiom/Python.NuPyServer.git
cd Python.NuPyServer
sudo docker build --build-arg ARCH=amd64 -t nupyserver:0.2.1 .
sudo docker run --name nupyserver --env NPS_IP=[YOUR DOCKER HOST IP] -p 5000:5000 -v /srv/nupyserver:/nupyserver --restart always nupyserver:0.2.1
Add a new NuGet source to your favorite IDE (or command client). The NuPyServer source url is:
without SSL:
http://[CONTAINER-IP]:[PORT]/v3/index.json
with SSL:
https://[CONTAINER-IP]:[PORT]/v3/index.json
Now you can put your NuGet packages (.nupkg) files to the checkout directory in server storage. The server automatically checkout for new packages every 5 minutes (by default). If you can't wait, just restart the docker container ;)
| Name | Default | Description |
|---|---|---|
| NPS_IP | 127.0.0.1 | IP of the server (normally your docker machine IP e.g. 192.168.178.x) |
| NPS_STORAGE | /nupyserver | Storage path in container |
| NPS_CHECKOUT | 5 | Interval in minutes to run checkout |
| NPS_SSL_KEY | None | Path to ssl key file in container |
| NPS_SSL_CERT | None | Path to ssl certificate file in container |
| NPS_DEV | 0 | print some extra info's 0 = off, 1 = on |
By default, the server runs on port 5000. So be sure you bind this port when creating container.
version 0.2.1:
* Added environment variable NPS_IP
* Minor fixes
version 0.2:
* Added checkout
* Added Dockerfile for ARM and AMD64
* Update README.md
version 0.1:
* First release
Content type
Image
Digest
Size
95.2 MB
Last updated
about 5 years ago
docker pull bxniom/nupyserver:0.2.2-arm64v8