@@ -10,14 +10,51 @@ Before beginning this workshop, please ensure your environment is correctly set
1010
1111➡️ ** [ Prerequisites guide] ( https://github.com/daemon-labs-resources/prerequisites ) **
1212
13+ ### Retrieve Docker images
14+
15+ #### Load Docker images
16+
17+ > [ !WARNING]
18+ > This only works when attending a workshop in person.
19+ > Due to having a number of people trying to retrieve Docker images at the same time, this allows for a more efficient way.
20+
21+ Once the facilitator has given you an IP address, open ` http://<IP-ADDRESS>:8000 ` in your browser.
22+
23+ When you see the file listing, download the ` workshop-images.tar ` file.
24+
25+ > [ !WARNING]
26+ > Your browser may block the download initially, allow it to download.
27+
1328Run the following command:
1429
1530``` shell
16- docker pull ...
31+ docker load -i ~ /Downloads/workshop-images.tar
1732```
1833
19- > [ !TIP]
20- > Pulling the Docker images isn't a requirement, but it helps to have it pre-downloaded so we don't wait for everyone to do it at the same time.
34+ #### Pull Docker images
35+
36+ > [ !CAUTION]
37+ > Only use this approach if you are running through this workshop on your own.
38+
39+ Run the following command:
40+
41+ ``` shell
42+ docker pull public.ecr.aws/lambda/nodejs:24
43+ docker pull public.ecr.aws/lambda/python:3.14
44+ docker pull curlimages/curl
45+ docker pull localstack/localstack
46+ ```
47+
48+ ### Validate Docker images
49+
50+ Run the following command:
51+
52+ ``` shell
53+ docker images
54+ ```
55+
56+ > [ !NOTE]
57+ > You should now see four images listed.
2158
2259---
2360
@@ -44,7 +81,7 @@ mkdir -p ~/Documents/daemon-labs/docker-aws-lambda
4481Add the following content:
4582
4683``` Dockerfile
47- FROM public.ecr.aws/lambda/nodejs:22
84+ FROM public.ecr.aws/lambda/nodejs:24
4885```
4986
5087### Create ` docker-compose.yaml `
@@ -158,7 +195,7 @@ Add the following to the `scripts` section in your `package.json`:
158195Update the ` Dockerfile `
159196
160197``` Dockerfile
161- FROM public.ecr.aws/lambda/nodejs:22
198+ FROM public.ecr.aws/lambda/nodejs:24
162199
163200HEALTHCHECK --interval=1s --timeout=1s --retries=30 \
164201 CMD [ "curl" , "-I" , "http://localhost:8080" ]
@@ -264,7 +301,7 @@ Run `LAMBDA_INPUT=@/events/test.json docker compose up --build --abort-on-contai
264301# ## Update the `Dockerfile` for optimised caching
265302
266303` ` ` Dockerfile
267- FROM public.ecr.aws/lambda/nodejs:22
304+ FROM public.ecr.aws/lambda/nodejs:24
268305
269306ENV AWS_LAMBDA_FUNCTION_MEMORY_SIZE=128
270307ENV AWS_LAMBDA_FUNCTION_TIMEOUT=3
@@ -287,7 +324,7 @@ CMD [ "build/index.handler" ]
287324# ## Update the `Dockerfile` for multi-stage builds
288325
289326` ` ` Dockerfile
290- FROM public.ecr.aws/lambda/nodejs:22 AS base
327+ FROM public.ecr.aws/lambda/nodejs:24 AS base
291328
292329ENV AWS_LAMBDA_FUNCTION_MEMORY_SIZE=128
293330ENV AWS_LAMBDA_FUNCTION_TIMEOUT=3
0 commit comments