R
Railway

✋|help

Accessing files inside the volume

Ccaffeinum9/7/2023
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?
Ccaffeinum9/7/2023
fdd52bdc-3766-40b0-9727-44e1356a5da3
BBrody9/7/2023
woah how did you do the transcription
Ccaffeinum9/7/2023
hahah manually copied the messages...
BBrody9/7/2023
haha
Ccaffeinum9/7/2023
No description
Ccaffeinum9/7/2023
No description
Ccaffeinum9/7/2023
so that's how i had it in my docker-compose
BBrody9/7/2023
so at the end of the day, two services still need to be able to access the same file system right?
Ccaffeinum9/7/2023
and I need to have these two files to connect
No description
Ccaffeinum9/7/2023
macaroon is basically a cookie, and tls.cert is a custom signed ssl cert required to connect them lnd is not a service i control, i can edit docker file slightly, but i don't wanna change the source code accessing the same file system is not super required, it's just how it's done in docker compose, cause that was the easiest i can pass the file content using env variables, it's not a problem cause it's only two files
BBrody9/7/2023
right but both services still need to access the same filesystem
Ccaffeinum9/7/2023
no, the only interaction was passing these two files on init on go-stroom boot, it needs to have these two files
BBrody9/7/2023
i cant see how that doesnt mean the same thing as what im saying
Ccaffeinum9/7/2023
i mean if it's possible, yes, they need to access the same file system but you said it's not, so i am thinking of other ways to pass this data e.g. during runtime, there's no need to access the same file system, it's only a boot-time requirement
BBrody9/7/2023
i think youll need to combine the two services into one for now, with something like multirun or parallel
Ccaffeinum9/7/2023
i don't want to mix two codebases, it's gonna be a too much of a mess again, i don't need to access the same filesystem, i just need to be able to download the file once from the volume
BBrody9/7/2023
aren't they both docker images?
Ccaffeinum9/7/2023
oh, so you mean create another docker image that bundles them together into one docker image, and run that docker image?
BBrody9/7/2023
indeed
Ccaffeinum9/7/2023
ooooph
Brody — Today at 14:28 like you could just generate those files locally and upload them into the volume?
Okay, and is this possible?
BBrody9/7/2023
yes https://railway.app/template/Nan7Bs
By default, the storage location is set to the storage subdirectory in the root of the volume, but by setting a service variable USE_VOLUME_ROOT to 1 you can opt to use the root of the volume as the storage location instead
Ccaffeinum9/7/2023
is there the same thing, but w/ bash access so that i can ping local services? wait, so you're telling me i can actually connect a volume to one service, let it generate files, then disconnect the volume and reconnect to another service?
BBrody9/7/2023
yes
Ccaffeinum9/7/2023
this would actually solve my problem
BBrody9/7/2023
oh i though you knew that
Ccaffeinum9/7/2023
that's why i was saying i don't need simultaneous filesystem acces i didn't know that cause i didn't reliase it's possible to move them
BBrody9/7/2023
i see
Ccaffeinum9/7/2023
ok thanks i will play around with that

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
How usage-based resource management works ?Hello, how Railway manages resource scaling ? like how are vCPU and RAM scaled up and down automaticHow to dynamically scale the replicas of an APIs deployed via Railway based on demand?I have API service with a certain number of replicas, whats the recommended way to scale the number Laravel application failed to respondI am unsure what is causing the issue but the after deploying my laravel app, it still does not starRailway credits gone??I had $15.46 in credits, and now $5 is gone. I have a single project, and I know for a fact my projeInstalling apt packages for puppeteerHi, im trying to run puppeteer on Railway but am getting an error that it cant find some packages. IIs it possible to set permissions on volumes?Dockerfile is using user id of 1000,and the WORKDIR which they own is /app. A Volume is mounted at /Trying to pg_dump and getting this weird error:Hi guys I am following this tutorial: https://blog.railway.app/p/postgre-backup and i am getting thHow to check which region is the database in and how to request to change it (if needed)?We started on the hobby plan and now we are Pro plan. For GDPR compliance we need to check which regDjango projects loading issuesI have two Django projects that I have deployed and both projects are facing similar issues (most liClicking 'Observability' button goes to the wrong projectExpected Flow - You click on a project, go to 'Observability' and view the logs. - You then click onTell Nixpack to include public folder in buildI have an Axum build on Rust that is are web socket chat rooms, which also serves static files. When.NET 6.0 Deployment Failed during build processProject ID f8a04cde-c088-4000-923e-0de1e0d144aa I can not deploy my backend, this is the error NETSMonorepoIf I am inside monorepo how will assigning domain work I wanna asign domain in two aspectsI can not deploy angular project, killedI do not know what is the problem I hope someone can help me, Project ID dd70810d-29a4-4c5e-b7b4-f2NPM ssh dependancyHi I'm running into an issue where I'm using a private github npm dependancy and the build step is How to set mailgun to Ghost(docker) + SqliteI had used Ghost with mysql, but currently I try to use a new Ghost template with Sqlite. I did not Timeout while waiting for registry?All of my deploys have been building successfully but failing to deploy for the past ~hour or so. TContainer is failing to start.Everything was working fine, I just added a few new features to the app and now it is failing to depSeeing failures in deploying saying container shut down, but cannot find the container logs.Need help figuring out how to debug this issue with deploying to prod. From my end I don't think theHow to Delete Project?How do I delete a project I created so it doesn't show up in my homepage? Railway's documentation ju