How to link private repositories to railway?
vasallius
HOBBYOP

10 months ago

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

Closed

32 Replies

vasallius
HOBBYOP

10 months ago

context: we are migrating from aws to railway


vasallius
HOBBYOP

10 months ago

so images are in ecr


vasallius
HOBBYOP

10 months ago

im told that railway supports private registries


vasallius
HOBBYOP

10 months ago

i just cant figure out where it is


10 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

10 months ago

we are in the pro plan


vasallius
HOBBYOP

10 months ago

this one deploys a standalone private image


vasallius
HOBBYOP

10 months ago

but our dockerfile pulls private images (so need auth)


10 months ago

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


10 months ago

yeah...


10 months ago

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


vasallius
HOBBYOP

10 months ago

would it be better to just have one dockerfile


vasallius
HOBBYOP

10 months ago

and layers will be just cached right


10 months ago

Yeah we will cache layers


vasallius
HOBBYOP

10 months ago

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


vasallius
HOBBYOP

10 months ago

ok o


10 months ago

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


10 months ago

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


10 months ago

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


10 months ago

one min


vasallius
HOBBYOP

10 months ago

hmmm


vasallius
HOBBYOP

10 months ago

looks like i can't use single dockerfile


vasallius
HOBBYOP

10 months ago

have a dependency that we bake in a base image


vasallius
HOBBYOP

10 months ago

so yarn installing it won't work


vasallius
HOBBYOP

10 months ago

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


10 months ago

my workaround didn't work


10 months ago

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


10 months ago

had to give it a try


vasallius
HOBBYOP

10 months ago

yeah


vasallius
HOBBYOP

10 months ago

my end can't get it to work too


vasallius
HOBBYOP

10 months ago

i guess the journey is over before it even started


vasallius
HOBBYOP

10 months ago

rip


Welcome!

Sign in to your Railway account to join the conversation.

Loading...