How to link private repositories to railway?
vasallius
HOBBYOP

2 months ago

Our dockerfile pulls private images and builds on top of that, would love to know how to do that

32 Replies

vasallius
HOBBYOP

2 months ago

context: we are migrating from aws to railway


vasallius
HOBBYOP

2 months ago

so images are in ecr


vasallius
HOBBYOP

2 months ago

im told that railway supports private registries


vasallius
HOBBYOP

2 months ago

i just cant figure out where it is


medim
MODERATOR

2 months ago

You'd have to be on the Pro plan to use private registries.
https://docs.railway.com/guides/services#deploying-a-private-docker-image


vasallius
HOBBYOP

2 months ago

we are in the pro plan


vasallius
HOBBYOP

2 months ago

this one deploys a standalone private image


vasallius
HOBBYOP

2 months ago

but our dockerfile pulls private images (so need auth)


brody
EMPLOYEE

2 months ago

They ask asking about private images that are defined via FROM in a Dockerfile, something we do not support.


medim
MODERATOR

2 months ago

yeah…


medim
MODERATOR

2 months ago

I might have a workaround on this but I would need to test it first


vasallius
HOBBYOP

2 months ago

would it be better to just have one dockerfile


vasallius
HOBBYOP

2 months ago

and layers will be just cached right


brody
EMPLOYEE

2 months ago

Yeah we will cache layers


vasallius
HOBBYOP

2 months ago

so only the first build should be slow and subsequent builds will be very fast already


vasallius
HOBBYOP

2 months ago

ok o


brody
EMPLOYEE

2 months ago

Yes, or if we cycle the builder that previously ran your build.


brody
EMPLOYEE

2 months ago

We don't have a global cache for builders yet.


medim
MODERATOR

2 months ago

I will try to put together my workaround, I'll test with GHCR


medim
MODERATOR

2 months ago

one min


vasallius
HOBBYOP

2 months ago

hmmm


vasallius
HOBBYOP

2 months ago

looks like i can't use single dockerfile


vasallius
HOBBYOP

2 months ago

have a dependency that we bake in a base image


vasallius
HOBBYOP

2 months ago

so yarn installing it won't work


vasallius
HOBBYOP

2 months ago

hmm not sure how we would make this work <:think:1169350591718379670>


medim
MODERATOR

2 months ago

my workaround didn't work


medim
MODERATOR

2 months ago

it was basically logging with the docker-cli on a step in the dockerfile before pulling the private image


medim
MODERATOR

2 months ago

had to give it a try


vasallius
HOBBYOP

2 months ago

yeah


vasallius
HOBBYOP

2 months ago

my end can't get it to work too


vasallius
HOBBYOP

2 months ago

i guess the journey is over before it even started


vasallius
HOBBYOP

2 months ago

rip


Loading...