-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
Add recipe for bref/symfony-bridge #1129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request does not pass validation.
edb11bd
to
e4e9abc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request does not pass validation.
e4e9abc
to
c108994
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
@@ -0,0 +1,8 @@ | |||
{ | |||
"copy-from-recipe": { | |||
"serverless.yaml": "serverless.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be serverless.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are valid for Serverless and the choice to use .yaml
may be because of the Validation applied to PRs here
YAML files suffix must be
.yaml
, not.yml
But the standard for Serverless Framework is indeed .yml
. Maybe this could be used as a "workaround"
"serverless.yaml": "serverless.yaml" | |
"serverless.yml": "serverless.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW it's already accepted for docker-compose.yml
if that may help and I think we are in the same situation because it's not Symfony config we are talking about but standard in a third-party tool
See for example : https://github.com/symfony/recipes/blob/master/doctrine/doctrine-bundle/1.6/manifest.json#L24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, i used the .yaml
extension to pass validation!
@t-richard wouldn't it be rather
"serverless.yaml": "serverless.yaml" | |
"serverless.yaml": "serverless.yml" |
?
The other solution would be to store the serverless.yml
into the package and use copy-from-package
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it would be "serverless.yaml": "serverless.yml"
🤦
IMHO it makes more sense to have all here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good to merge for me 👍
Thank you!
handler: public/index.php | ||
timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds) | ||
layers: | ||
- ${bref:layer.php-80-fpm} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use the bridge with PHP 7.3, 7.4, but everything in the recipe contains php 8 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't see the problem with that 🤔
IMHO We're just providing a decent default (7.3 is EOL and 8.0 is now supported by a fair amount of packages)
If they want, users can replace this line with a previous version this way and it will work
- ${bref:layer.php-80-fpm} | |
- ${bref:layer.php-74-fpm} |
Co-authored-by: Oskar Stark <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Thank you @ker0x 👍 |
Following #1127, this is the first draft of the recipe.
Ping @t-richard, @mnapoli