-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
22 lines (19 loc) · 1016 Bytes
/
docker-compose.yml
File metadata and controls
22 lines (19 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: '3.8'
services:
# List all files from `/lib64` into `libs-x86.txt`
update-x86:
image: public.ecr.aws/lambda/provided:al2023-x86_64
entrypoint: /bin/sh
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" ]
volumes:
- ./libs-x86.txt:/libs-x86.txt
# List all files from `/lib64` into `libs-arm.txt`
update-arm:
image: public.ecr.aws/lambda/provided:al2023-arm64
entrypoint: /bin/sh
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