Skip to content

Commit ec512c5

Browse files
committed
fix: add qemu step for arm docker cross compiling
1 parent 5fbb3a1 commit ec512c5

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ jobs:
120120
cp target/lambda/docbox-upload-completion-lambda/bootstrap.zip docbox-upload-completion-lambda.zip
121121
shell: bash
122122

123+
- name: Set up QEMU
124+
uses: docker/setup-qemu-action@v3
125+
126+
- name: Set up Docker Buildx
127+
uses: docker/setup-buildx-action@v3
128+
123129
# Build the docker layers
124130
- name: Build poppler layer
125131
run: |

layers/make-poppler-layer-arm64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
# Build the container
5-
docker buildx build --build-arg BASE_IMAGE=public.ecr.aws/lambda/provided:al2023-arm64 --platform linux/arm64 -f ./layers/poppler.Dockerfile -t poppler-lambda-layer-arm64 ./layers
5+
docker buildx build --build-arg BASE_IMAGE=public.ecr.aws/lambda/provided:al2023-arm64 --platform linux/arm64 -f ./layers/poppler.Dockerfile -t poppler-lambda-layer-arm64 --load ./layers
66

77
# Run a container and copy out the zip then delete it
88
CONTAINER_ID=$(docker create --platform linux/arm64 poppler-lambda-layer-arm64)

0 commit comments

Comments
 (0)