Cache mounts MUST be in the format --mount=type=cache,id=<cache-id>
New to railway, trying to deploy a docker image which builds a Node app. The quickstart from github immediately detected the Dockerfile -- yet it seems to immediately fail with the full build log below:
My dockerfile does not contain mounts with type cache, it only uses mounts with secrets. Is this unsupported by railway?
14 Replies
Project ID:
1b92ecef-196c-4c1a-9ecf-09a0fd5d9a1b
1b92ecef-196c-4c1a-9ecf-09a0fd5d9a1b
https://www.answeroverflow.com/m/1163144590686175393
it seems this lad got recommended to use build args -- why no secrets?
hi, im unfamiliar with --mount-type, why do you need it? can't you just use environment variables?
build args persist in the final image
https://docs.docker.com/build/building/secrets/
like these secrets would just be used for building the image
I will probably as a workaround continue to build/publish to docker hub from github actions, then just use the image in railway directly
brings me to my next roadblock, possibility of using a private docker hub image? Seems like there's no way to enter a token anywhere / link the account?
https://discord.com/channels/713503345364697088/1180037087483920495/1180037087483920495
π’
and it seems for a ghcr.io private package no logs at all, just error after 7 mins
which is weird since you connect your github to railway? so why can't it fetch the private packages
ah okay railway doesnt include the packages scope...
railway does not support that kind of mount.
all service variables are available as build args and then environment variables during runtime, there's no concept of separation.
private images are not supported yet.
okay, i dont want build secrets to be bundled/accessible from the docker image, so that leaves the last option, using private docker images. Is there an eta on this feature? Should be relatively simple to add right?
it's planned, but I have no ETA for you, sorry
is this available in enterprise plans?
it's not implemented at all, but if someone on the enterprise plan where to request it, it would absolutely get it kickstarted
I have contacted email support for this issue, I am currently on the pro plan and pretty much blocked by this
that would be the most appropriate channel for this request!
Is email support really 2-3 business days? π
on the pro plan yes, on enterprise plans it's same day, or so I've heard
https://docs.railway.app/reference/support#business-class-slos
yes if I'm interpreting this correctly, it looks like it would be same business day for your current type of question