Skip to content
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

Skip container function with uri defined #877

Merged
merged 2 commits into from
Aug 25, 2021
Merged

Conversation

j0k3r
Copy link
Member

@j0k3r j0k3r commented Jun 10, 2021

It looks like a container function defined with a uri shouldn't be handled by the plugin because the image won't be handled by Serverless itself.
So we just skip the function in that case.

Fix #825

@j0k3r j0k3r added this to the 5.5.2 milestone Jun 10, 2021
@j0k3r j0k3r force-pushed the fix/skip-function-image-uri branch from 4f0f8ff to 3075e24 Compare June 14, 2021 13:48
@j0k3r j0k3r requested review from miguel-a-calles-mba and a team June 14, 2021 13:49
@j0k3r
Copy link
Member Author

j0k3r commented Jun 29, 2021

👋 @miguel-a-calles-mba

It looks like a container function defined with a `uri` shouldn't be handled by the plugin because the image won't be handled by Serverless itself.
So we just skip the function in that case.
Copy link
Member

@miguel-a-calles-mba miguel-a-calles-mba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@j0k3r j0k3r merged commit c15db42 into master Aug 25, 2021
@j0k3r j0k3r deleted the fix/skip-function-image-uri branch August 25, 2021 17:52
@gwdp
Copy link
Contributor

gwdp commented Sep 17, 2021

Sorry to reopen a finished discussion, but I guess this same fix could be applied when using simple strings on the image param.
The plugin I developed https://github.com/Hybridless/hybridless makes strong usage of that since it builds the image for the end users. This used to work on 5.5.0 but got broken. Opening PR for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

serverless-webpack 5.5.0 attempts to run Webpack on container images which are not JavaScript
3 participants