R
Railway7mo ago
jop

Setting up a private PyPi Server

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.
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?
GitHub
GitHub - pypiserver/pypiserver: Minimal PyPI server for uploading &...
Minimal PyPI server for uploading & downloading packages with pip/easy_install - pypiserver/pypiserver
Solution:
you would need to remove line 77 from the Dockerfile, then manually mount a volume to that location
Jump to solution
8 Replies
Percy
Percy7mo ago
Project ID: e4bd86d5-aea6-4014-aca0-594c68697400
jop
jopOP7mo ago
e4bd86d5-aea6-4014-aca0-594c68697400
Solution
Brody
Brody7mo ago
you would need to remove line 77 from the Dockerfile, then manually mount a volume to that location
jop
jopOP7mo ago
I will attempt this now and get back to you! Thank you :) 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?
Brody
Brody7mo 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
jop
jopOP7mo 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?
Brody
Brody7mo ago
as mentioned, use the filebrowser template https://railway.app/template/Nan7Bs
jop
jopOP7mo ago
Ah my apologies! I didn't know there was a template, okay this could definitely work :)
Want results from more Discord servers?
Add your server