CS repo directory problems in container deployment #700
sfayer
started this conversation in
Developer discussions
Replies: 1 comment 4 replies
-
|
Cloning a local directory with different ownership requires this delightful incantation: git -c safe.directory="*" \
clone \
-u 'git -c safe.directory="*" upload-pack' \
... |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We're working on the non-k8s diracx container deployment recipe and have run into some issues with loading the CS store... We've exported our existing CS into the diracx format and have it in a local git repo directory which we're initially bind mounting in as a read-only mount at /cs_store and setting
DIRACX_CONFIG_BACKEND_URL="git+file:///cs_store?branch=master".This doesn't work: The git+file handler runs into a number of issues:
diracx/diracx-core/src/diracx/core/config/sources.py
Lines 251 to 252 in c265a47
We modified the code, to use the git+https "RemoteGitConfigSource" handler for the git+file case too and this works (and I suspect would also work better if this directory was shared across multiple hosts).
Our questions for discussion are:
We're not really sure how this is all going to work out if it needs to start pushing commits back: Getting the permissions all correct for writing a bind-mount on any platform seems to be its own challenge (but perhaps that isn't planned for a while and we can worry about that later?).
Regards,
Simon
Mentioning @marianne013
Beta Was this translation helpful? Give feedback.
All reactions