pypiserver / pypiserver

Minimal PyPI server for uploading & downloading packages with pip/easy_install

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why Read only volume not allowed

nanoric opened this issue · comments

I'm using pypi server inside docker with readonly volume.
But pypiserver says

Cannot start pypiserver: pypiserver user (UID 9898) or pypiserver group (GID 9898) must have read/write/execute access to /data/packages

I'm so superised that why there is not a read-only mode for a server? (If I don't need the server update packages by itself and don't permit user upload packages from that server.

Oh, thanks for bringing this issue up @nanoric! That's a good question and I can imagine that would be a logical configuration.

In my understanding (since I joined) pypiserver has evolved with a core focus on the minimal set of server features that work well and this storage aspect must have slipped through. I can't point to the reason why it is like this, but my intuition says it might be linked to our caching approach and/or other core features for package-file management.

I like the idea of digging into it to check what's causing this dependency though. If you would like to help in the investigation, I'd be really happy to collaborate 😃 Otherwise, I might be a little overloaded with some other things outside of this project to very quickly find an answer, but I hope it's not becoming a big issue yet. Let me know ✌️

Of cause, i'm happy to!