Skip to content

Conversation

@mnapoli
Copy link
Member

@mnapoli mnapoli commented May 24, 2025

This is an exploration for Bref v3: replace the 3 types of layers (function, fpm, console) with a single layer and single Docker image.

(actually to be clear: one per PHP version)

That would simplify and reduce the layers we have to publish and maintain.

Layers today are already very similar, most of the difference in logic happens in the Bref codebase already. So the main difference with today would be that we'd include php-fpm in the function layer.

From a user's perspective, there wouldn't really be a visible change: the serverless.yml config would stay the same, it's just that under the hood Bref would include the same layer every time.

Related to brefphp/bref#1950

@mnapoli mnapoli changed the base branch from main to v3 May 24, 2025 20:21
@mnapoli mnapoli merged commit 414a787 into v3 May 24, 2025
7 of 11 checks passed
@mnapoli mnapoli deleted the single-layer branch May 24, 2025 20:27
This was referenced May 24, 2025
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.

2 participants