How to pass custom options??
marcellov7
PROOP

2 years ago

Hi
maybe trivial question, but i can't figure out how to pass cache=0 to my deploy directly from railway.

I am using this template
https://railway.app/template/a_Rgxz

thanks

docker run -p 8080:8080 pixboost/transformimgs cache=0

Closed

7 Replies

brody
EMPLOYEE

2 years ago

Please explain your usecase.


marcellov7
PROOP

2 years ago

I don't know what else to add, I would like to be able to pass the "cache" parameter as a docker run {option}, as described in the template, but I don't understand how it is possible to do this through Railway, given that the docker run is managed by Railway.


brody
EMPLOYEE

2 years ago

I understand what you want to do, but since this feels more like an XY question, please explain your usecase,


marcellov7
PROOP

2 years ago

Hi Brody,

Thanks for your response. Let me clarify my use case:

I'm deploying aservice(https://hub.docker.com/r/pixboost/transrmimgs on Railway. The service is intended to process images, and I need to ensure that it doesn’t cache the transformations to always provide fresh results, which is why I want to set `cache=0`

-Why I Need `cache=0`

My application requires processing images in real-time with the most current data, without using any cached results. This is essential for ensuring that users always see the latest updates.

The issue I'm facing is that Railway manages the Docker run command internally, which seems to limit the ability to pass command-line arguments directly. I’m looking for a way to specify this `cache` parameter through the deployment process on Railway.

Thanks for your help!


brody
EMPLOYEE

2 years ago

Please do not use chat gpt.

If you are experiencing any issues please communicate them.


marcellov7
PROOP

2 years ago

I don't know how to explain the use case better. And I find it hard to believe that what I'm saying isn't understandable. Thanks anyway.


brody
EMPLOYEE

2 years ago

What issues are you experiencing by not being able to set that, if you are not experiencing any issues then there's nothing you need to do.

Edit, cache=0 isn't a valid flag, and with no real reason on why it's needed I'll be closing out this thread, please open a new thread if you are experiencing issues with the platform.


Status changed to Closed brody over 1 year ago


Loading...