GeezerVison is showing github.com — Merge pull request #28 from xp-forge/migrate/al-2023 · xp-forge/lambda@4b2d378
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/main/php/xp/lambda/Dockerfile.runtime +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -FROM public.ecr.aws/lambda/provided:al2 as builder |
| 1 | +FROM public.ecr.aws/lambda/provided:al2023 AS builder |
2 | 2 |
|
3 | 3 | ARG php_version="?.?.?" |
4 | 4 | ARG xp_version="?.?.?" |
5 | 5 |
|
6 | | -RUN yum clean all && yum install -y \ |
| 6 | +RUN dnf clean all && dnf install -y \ |
7 | 7 | autoconf \ |
8 | 8 | gcc \ |
9 | 9 | gcc-c++ \ |
|
Collapse file
Copy file name to clipboard +5-4Lines changed: 5 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | ARG php_version="?.?.?" |
2 | 2 | ARG xp_version="?.?.?" |
3 | 3 |
|
4 | | -FROM lambda-xp-runtime:${php_version} as build |
| 4 | +FROM lambda-xp-runtime:${php_version} AS build |
5 | 5 |
|
6 | | -FROM public.ecr.aws/lambda/provided:al2 |
| 6 | +FROM public.ecr.aws/lambda/provided:al2023 |
7 | 7 |
|
8 | 8 | COPY --from=build /opt/php/bin/ /opt/bin/ |
9 | 9 |
|
@@ -14,8 +14,9 @@ RUN echo $'#!/bin/sh\n\n\ |
14 | 14 | export _HANDLER="$1"\n\ |
15 | 15 | /usr/local/bin/aws-lambda-rie /var/runtime/bootstrap --log-level error &\n\ |
16 | 16 | pid=$!\n\ |
17 | | -curl -s "http://localhost:8080/2015-03-31/functions/function/invocations" -d "$2"\n\ |
| 17 | +timeout 10 sh -c "until cat < /dev/null > /dev/tcp/127.0.0.1/9001 ; do sleep 0.1; done" 2>/dev/null\n\ |
| 18 | +curl -s "http://127.0.0.1:8080/2015-03-31/functions/function/invocations" -d "$2"\n\ |
18 | 19 | kill -2 $pid\n\ |
19 | 20 | echo' > /lambda-entrypoint.sh |
20 | 21 |
|
21 | | -ENV TZ UTC |
| 22 | +ENV TZ=UTC |