Skip to content

Commit

Permalink
WIP: node/php updates from serverlesswp-node
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchmac committed Feb 9, 2025
1 parent 14cf402 commit a35f48b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "",
"license": "MIT",
"dependencies": {
"serverlesswp": "^0.1.2"
"serverlesswp": "^0.1.3"
},
"engines": {
"node": "18.x"
"node": "22.x"
}
}
2 changes: 1 addition & 1 deletion test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM public.ecr.aws/lambda/nodejs:18
FROM public.ecr.aws/lambda/nodejs:22

COPY package.json ${LAMBDA_TASK_ROOT}/
RUN npm install --omit=optional --omit=dev
Expand Down
9 changes: 6 additions & 3 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

./build-test.sh

docker run -p 9000:8080 -d -e FQDBDIR='/tmp/db' --name serverlesswp-test serverlesswp-test
docker run -p 9000:8080 -d --name serverlesswp-test serverlesswp-test

curl -s -o /dev/null -w "%{http_code}" -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/installer.php"}'
curl -s -o /dev/null -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/installer.php"}'

#sleep 180

curl -s -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/"}'

curl -s -o /dev/null -w "%{http_code}" -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"/"}'

docker stop serverlesswp-test
docker rm serverlesswp-test

0 comments on commit a35f48b

Please sign in to comment.