-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add support for Podman OCI #829
Comments
Hey @schinnaswamy 👋 Thanks for reporting and sorry you've run into trouble. Is |
@pgrzesik Yes I tried aliasing Podman to docker. But after making couple of modifications in the following .js files and removing :z from bind path syntax in the docker run command since Podman has some issues with extended attribute was getting error
Step 1:
Even though I have added alias but still for some reason the command was trying to connect to the docker daemon via API. So I have to modify explicitly the following js files in the serverless-python-requirements Step 2 : Modified docker.js Line No : 13.
Step 3: Modified pip.js Line No: 269 & 371 & 416
Step 4: Removed :z in the pip.js file [ Line No: 269, 278, 280, 282 & 311 ] With the above following modifications managed to run the serverless deploy with Python requirements without any issues. |
Hey @schinnaswamy - thanks a lot for more details. That's interesting that the compatibility doesn't seem to be universal, at least in case of use via the plugin. I will try to find some time to run it myself via |
Also experiencing this, found a simpler workaround is to symlink docker to Podman. |
Is there an existing issue for this?
Use case description
When we tried running the Serverless-python-requirments plugin with Podman OCI runtime we are unable to build the pythonrequirments.zip
Getting the below error when I tried running the below command
sls requirements install
Tried modifying directly in the docker.js with command as
podman
instead ofdocker
inError stack:
Environment: darwin, node 20.5.1, framework 3.34.0 (local) 3.34.0v (global), plugin 6.2.3, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Proposed solution (optional)
No response
The text was updated successfully, but these errors were encountered: