Setting up a private PyPi Server

AnonymousTRIAL

a year ago

Hey there!

I am using this GitHub repo:
https://github.com/pypiserver/pypiserver

for setting up a dedicated PyPi server so I can host my own packages and VSC to get around hosting them on the official PyPi servers. I get the Volume error:

The `VOLUME` keyword is banned in Dockerfiles. Use Railway volumes instead. 

Has anyone got some advice or guidance on trying to achieve this goal with Railway?

0 Replies

AnonymousTRIAL

a year ago

e4bd86d5-aea6-4014-aca0-594c68697400


a year ago

you would need to remove line 77 from the Dockerfile, then manually mount a volume to that location


AnonymousTRIAL

a year ago

I will attempt this now and get back to you! Thank you :)


AnonymousTRIAL

a year ago

Okay so I think that's worked… thank you so much! Just a quick little extra question, what would you recommend as the best way of uploading files to the volume? Would I just use some TCP proxy or is there a better way of getting files into Railway volumes?


a year ago

its a bit of a dance, the service itself would need to provide upload functionality so you would need to juggle the volume between your desired service and the filebrowser template


AnonymousTRIAL

a year ago

I don't think PyPi comes with a built-in file upload system/online browser so would it make sense to build a simple one say in Django or Flask and upload my packages through that into the Volume? That will cause PyPi server to detect a new package and thus allow the package for download?


a year ago

as mentioned, use the filebrowser template


AnonymousTRIAL

a year ago

Ah my apologies! I didn't know there was a template, okay this could definitely work :)