Skip to content

Commit

Permalink
Bump airnode to v0.15.0 (#417)
Browse files Browse the repository at this point in the history
* Bump airnode to v0.15.0

* Install pnpm version from packge.json within Dockerfile
  • Loading branch information
dcroote authored Feb 14, 2025
1 parent 2014e72 commit bdd466e
Show file tree
Hide file tree
Showing 3 changed files with 552 additions and 1,162 deletions.
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@
# The above commands will allow you to inspect the output of the build stage. You can change the target to debug other
# stages and verify that the image is correct.

# We use the alpine image because of its small size. The alternative considered was the "slim" image, but it is larger
# and we already use alpine (without issues) in other projects, so the size reduction seems worth it.
# Extract the pnpm version from the package.json file and store it in an environment variable.
FROM node:20-slim AS version-extract
WORKDIR /app
COPY package.json .
RUN apt-get update && \
apt-get install -y jq && \
echo "PNPM_VERSION=$(jq -r .packageManager package.json | sed 's/pnpm@//')" >> /tmp/env-vars

FROM node:20-slim AS build
WORKDIR /app
RUN npm install -g pnpm
COPY --from=version-extract /tmp/env-vars /tmp/env-vars
RUN . /tmp/env-vars && npm install -g pnpm@${PNPM_VERSION}
# Copy just the "pnpm-lock.yaml" file and use "pnpm fetch" to download all dependencies just from the lockfile. This
# command is specifically designed to improve building a docker image because it only installs the dependencies if the
# lockfile has changed (otherwise uses the cached value).
Expand Down
8 changes: 4 additions & 4 deletions packages/airnode-feed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
},
"license": "MIT",
"dependencies": {
"@api3/airnode-abi": "^0.14.2",
"@api3/airnode-adapter": "^0.14.2",
"@api3/airnode-node": "^0.14.2",
"@api3/airnode-validator": "^0.14.2",
"@api3/airnode-abi": "^0.15.0",
"@api3/airnode-adapter": "^0.15.0",
"@api3/airnode-node": "^0.15.0",
"@api3/airnode-validator": "^0.15.0",
"@api3/commons": "^0.13.4",
"@api3/ois": "^2.3.2",
"@api3/promise-utils": "^0.4.0",
Expand Down
Loading

0 comments on commit bdd466e

Please sign in to comment.