Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
358 changes: 21 additions & 337 deletions php-82/Dockerfile

Large diffs are not rendered by default.

358 changes: 21 additions & 337 deletions php-83/Dockerfile

Large diffs are not rendered by default.

362 changes: 22 additions & 340 deletions php-84/Dockerfile

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions tests/test_2_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
// https://github.com/brefphp/aws-lambda-layers/issues/53
'curl-openssl-certificates' => file_exists(openssl_get_cert_locations()['default_cert_file']),
// Check its location has not changed (would be a breaking change)
'curl-openssl-certificates-location' => openssl_get_cert_locations()['default_cert_file'] === '/opt/bref/ssl/cert.pem',
// Make sure we are using curl with our compiled libssh
'curl-libssh' => version_compare(str_replace('libssh2/', '', curl_version()['libssh_version']), '1.10.0', '>='),
'curl-openssl-certificates-location' => openssl_get_cert_locations()['default_cert_file'] === '/etc/pki/tls/cert.pem',
// Check the file in previous Bref versions is still here (would be a breaking change)
'curl-openssl-certificates-backwards-compatibility' => file_exists('/opt/bref/ssl/cert.pem'),
'openssl' => (function() {
$private_key = openssl_pkey_new(['private_key_bits' => 2048]);
if ($private_key === false) {
Expand Down Expand Up @@ -121,6 +121,8 @@
'sockets' => function_exists('socket_connect'),
'spl' => class_exists(\SplQueue::class),
'sqlite3' => class_exists(\SQLite3::class),
// Drupal 11 requires SQLite >= 3.45.0
'sqlite_version' => version_compare('3.45.0', \SQLite3::version()['versionString'], '<='),
'tokenizer' => function_exists('token_get_all'),
'libxml' => function_exists('libxml_get_errors'),
'xml' => function_exists('xml_parse'),
Expand Down
2 changes: 2 additions & 0 deletions utils/available-packages/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
update:
docker compose run --rm update
26,332 changes: 26,332 additions & 0 deletions utils/available-packages/al2023-packages.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions utils/available-packages/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:

# List all packages that AL2023 provides with their version
update:
image: public.ecr.aws/lambda/provided:al2023-arm64
entrypoint: /bin/sh
command: [ "-c", "microdnf repoquery | sort > /tmp/al2023-packages.txt" ]
volumes:
- .:/tmp
8 changes: 4 additions & 4 deletions utils/lib-copy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ services:

# List all files from `/lib64` into `libs-x86.txt`
update-x86:
image: public.ecr.aws/lambda/provided:al2-x86_64
image: public.ecr.aws/lambda/provided:al2023-x86_64
entrypoint: /bin/sh
command: [ "-c", "find /lib64/ -maxdepth 1 -not -type d -printf '%f\n' | sort > /libs-x86.txt" ]
command: [ "-c", "dnf install -y findutils && find /lib64/ -maxdepth 1 -not -type d -printf '%f\n' | sort > /libs-x86.txt" ]
# Alternative approach from https://gist.github.com/vladgolubev/439559fc7597a4fb51eaa9e97b72f319
# but it seems to list less files, so I'm not sure we should use that alternative
# command: [ "-c", "/sbin/ldconfig -p | awk '{print $$1}' | sort > /al2-x64.txt" ]
Expand All @@ -15,8 +15,8 @@ services:

# List all files from `/lib64` into `libs-arm.txt`
update-arm:
image: public.ecr.aws/lambda/provided:al2-arm64
image: public.ecr.aws/lambda/provided:al2023-arm64
entrypoint: /bin/sh
command: [ "-c", "find /lib64/ -maxdepth 1 -not -type d -printf '%f\n' | sort > /libs-arm.txt" ]
command: [ "-c", "dnf install -y findutils && find /lib64/ -maxdepth 1 -not -type d -printf '%f\n' | sort > /libs-arm.txt" ]
volumes:
- ./libs-arm.txt:/libs-arm.txt
Loading