Do not to use --stdout for relay credential generate#1267
Conversation
|
|
|
So we can see what uid/gid is running docker, try to change uid/gid of
But this is what I have thought of, @BYK @untitaker @chadwhitacre What do you think about this? Is it something obvious I'm missing which can handle this situation easily? Or redirecting and using |
|
Created It used to be like this: |
BYK
left a comment
There was a problem hiding this comment.
Seems like relay is still complaining about not being able to read credentials: https://github.com/getsentry/self-hosted/runs/4913039350?check_suite_focus=true#step:5:1026
There was a problem hiding this comment.
Why not put these in a custom entrypoint script and use $dcr instead?
I've made a change trying to read it, and it seems that user running docker which is https://github.com/getsentry/self-hosted/runs/4919429511?check_suite_focus=true#step:4:526 |
851bc12 to
d494dcd
Compare
Both are JSON blobs, just one is better formatted. Should be fine. |
There was a problem hiding this comment.
I'd say, in the final version, we can just use the mounter relay config dir for this?
There was a problem hiding this comment.
Can you elaborate please?
There was a problem hiding this comment.
We already mount the relay directory for the relay service and set that as the config folder so you should not need the --volume "$(pwd)/$RELAY_DIRECTORY:/tmp/relay" part and --config /tmp/relay part.
There was a problem hiding this comment.
We have this:
self-hosted/docker-compose.yml
Lines 340 to 358 in da8f490
which mounts relay directory read-only and AFAICS there is no
--config.
There was a problem hiding this comment.
We can mount it as writable for that run but yeah, I get your point :)
|
@aminvakil Can we switch this to a draft PR if it's still under active development? 😶 |
939fb44 to
61024e3
Compare
Sure, sorry for the noise these past days. |
5805d92 to
9c4b533
Compare
9c4b533 to
a624348
Compare
|
Considering current changes in relay generation, this |
First brought up in #1251 (comment)