serverless-scaleway-functions icon indicating copy to clipboard operation
serverless-scaleway-functions copied to clipboard

Serverless container based on private image can not be deployed

Open korridor opened this issue 2 years ago • 2 comments

I want to deploy a serverless container that uses a Dockerfile that is based on a image in the Scaleway Docker registry.

The image that I want to deploy looks something like this:

FROM rg.nl-ams.scw.cloud/some/registry:tag

RUN something

COPY . .

This fails because the build command is not authenticated in the code, only the push command.

Code for build: https://github.com/scaleway/serverless-scaleway-functions/blob/master/deploy/lib/pushContainers.js#L40 Code for push: https://github.com/scaleway/serverless-scaleway-functions/blob/master/deploy/lib/pushContainers.js#L43

korridor avatar Aug 14 '22 11:08 korridor

Hello :wave:

Thanks for reporting the issue. The linked PR should solve this. After the reviews are done, we'll release a new version with the fix!

norbjd avatar Aug 26 '22 15:08 norbjd

Thanks, the pull request should work for my use case! 👍

korridor avatar Aug 29 '22 09:08 korridor

Hello @korridor, a new version (0.4.2) have been released and fixes this issue. Tell us if you are still facing this issue and we'll reopen it.

norbjd avatar Sep 09 '22 15:09 norbjd