Skip to content

Commit

Permalink
fix: use microdnf for ubuntu images (#9858)
Browse files Browse the repository at this point in the history
### Description

The pipeline using the `amazon/aws-lambda-nodejs:20` image [is
failing](https://github.com/vercel/turborepo/actions/runs/13063935350/job/36452835658).

This is because:

> The Amazon Linux 2023 minimal image uses microdnf as package manager,
symlinked as dnf, replacing yum in AL2-based images. Additionally, curl
and gnupg2 are also included as their minimal versions curl-minimal and
gnupg2-minimal.
> -
https://aws.amazon.com/blogs/compute/node-js-20-x-runtime-now-available-in-aws-lambda

### Testing Instructions

```
docker pull amazon/aws-lambda-nodejs:20
docker run --interactive --tty --rm --entrypoint /bin/sh amazon/aws-lambda-nodejs:20
```

then run

```
microdnf install -y gcc gcc-c++ git
curl https://sh.rustup.rs -sSf | bash -s -- -y
npm i -g [email protected]
```
  • Loading branch information
dimitropoulos authored Jan 31, 2025
1 parent 8a2a1c1 commit d240f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/turborepo-library-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
target: "x86_64-unknown-linux-gnu"
container: amazon/aws-lambda-nodejs:20
install: |
yum install -y gcc gcc-c++ git
microdnf install -y gcc gcc-c++ git
curl https://sh.rustup.rs -sSf | bash -s -- -y
npm i -g [email protected]
setup: |
Expand Down

0 comments on commit d240f30

Please sign in to comment.