Sign inSign up

bxniom/nupyserver

By bxniom

•Updated about 5 years ago

Minimal NuGet Server for Raspberry Pi

Image
0

547

bxniom/nupyserver repository overview

⁠NuPyServer version 0.2.1

MIT MIT Python
Docker Raspberry Pi

Minimalistic NuGet Server running on a Raspberry Pi via Docker

⁠Install from DockerHub

⁠Raspberry Pi (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-arm
⁠amd64
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

⁠Install from GitHub

⁠Raspberry PI (ARM)
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  
⁠amd64
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  

⁠Usage

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 ;)

⁠Environment variables:

NameDefaultDescription
NPS_IP127.0.0.1IP of the server (normally your docker machine IP e.g. 192.168.178.x)
NPS_STORAGE/nupyserverStorage path in container
NPS_CHECKOUT5Interval in minutes to run checkout
NPS_SSL_KEYNonePath to ssl key file in container
NPS_SSL_CERTNonePath to ssl certificate file in container
NPS_DEV0print 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.

⁠Changelog

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
⁠Todo
  • NuGet protocol version 2

Tag summary

Content type

Image

Digest

Size

95.2 MB

Last updated

about 5 years ago

docker pull bxniom/nupyserver:0.2.2-arm64v8