serverless / serverless-python-requirements

⚡️🐍📦 Serverless plugin to bundle Python packages
MIT License
1.11k stars 290 forks source link

Allow customizing the image name for alpine ( used to get docker uid) #810

Open bhiravabhatla opened 10 months ago

bhiravabhatla commented 10 months ago

Are you certain it's a bug?

Are you using the latest plugin release?

Is there an existing issue for this?

Issue description

Using python requirements to develop in a airgapped environment. Before the pip dependencies are downloaded - we check for docker uid by using alpine image here - https://github.com/serverless/serverless-python-requirements/blob/4bbb80ed0c0150e04696513f37537eb3ab0002a4/lib/docker.js#L195

As there is no way to override this image - image name is hardcoded - unable to proceed. Deployment fails with docker error 125.

As a work around for now if retag the image from our registry to alpine:latest locally - it proceeds. But cant do the same in CI. Please help!

Service configuration (serverless.yml) content

N/A

Command name and used flags

N/A

Command output

N/A

Environment information

N/A