caffeinum
Accessing files inside the volume
what's the best way to export build artifacts from one service to another? during build process, a tls.cert and a .macaroon file are generated, which i need to pass to another service to be able to connect them
as i understand, volumes can't be shared, they are scoped per-service, right?
Brody — Today at 14:23
correct, if you could share a volume to multiple services (you will be able to at some point, its planned) then you just write those files to the volume and read them back from the other service, but thats not currently possible
so maybe make those files available via a local only api? then your service can just download the files from the other service
i am using a pre-built docker image for that piece of the system, so that's gonna be tricky
is there a way to mount a volume remotely? i can just generate artifacts once and manually send them using env variable
Brody — Today at 14:28
like you could just generate those files locally and upload them into the volume?
no, the opposite way, that service autogenerates them on start, if they're not present, but then i can keep the volume in place so that the artifacts don't change
Brody — Today at 14:31
unless im misunderstanding something, that is what a volume is for, persistent storage
yeah, but i also need to be able to pass those files to another service
using volume can help me not needing to pass them on each restart
is there any way to read files from a volume, other that editing the code of the service?
42 replies