Open abitrolly opened 4 years ago
Looks like serve
was not needed. Maybe rename that to serve-bares
? This seems to work.
podman run --rm -p 127.0.0.1:3434:3434 -v "${PWD}:/var/opt/localrepo":Z,ro sourcegraph/src-expose:latest /var/opt/localrepo
Without serve
it doesn't serve anything. =/
We rely on a RW filesystem since we currently rely on git's "dumb" server via git update-server-info
.
However, we should really be using a smarter protocol and gain other benefits (like protocol v2/etc). This will require additional feature work (I think we may have looked into it slightly with some work in #10045).
cc @unknwon @tsenart
Something like https://git-scm.com/docs/git-daemon or https://gitlab.com/gitlab-org/gitaly?
I am porting src-expose serve
to the src-cli. There is a PR out which fixes this issue https://github.com/sourcegraph/src-cli/pull/251
Once we tag a release of src-cli supporting this feature I'll comment back here and close this out.
Looks like
src-expose
is unable to share repo that it can not write to.Steps to reproduce:
podman run -v "${PWD}:/var/opt/localrepo":Z,ro sourcegraph/src-expose:latest serve /var/opt/localrepo
Expected behavior:
See repo served with some defaults.
Actual behavior: