Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building Docker images locally #2014

Closed
Siegrift opened this issue Aug 13, 2024 · 1 comment
Closed

Fix building Docker images locally #2014

Siegrift opened this issue Aug 13, 2024 · 1 comment
Assignees

Comments

@Siegrift
Copy link
Contributor

See the steps to reproducible the issue here. There is the following error:

error Couldn't find any versions for "@api3/airnode-admin" that matches "snapshot-local"

This has been briefly discussed internally here, but so far without resolution.

@dcroote
Copy link
Contributor

dcroote commented Aug 14, 2024

Ah, it turns out this very non-intuitive error is a result of not having a changeset affect a package, which in turns results in packages not being published to the local npm registry, and therefore airnode-admin can't be found. I've run into this myself before: #1585 (comment) and it happens after every fresh release (since all changesets are cleared) e.g. for v0.14.2 here:

#5 [2/3] RUN npm set registry http://172.17.0.3:4873/ &&     yarn global add @api3/airnode-admin@snapshot-3b81fd6b4300b7a13e288e8dda133ad1fe3e0d17 &&     ln -s /usr/local/share/.config/yarn/global/node_modules/@api3/airnode-admin/dist /app &&     adduser -h /app -s /bin/false -S -D -H airnode-admin
#5 0.771 yarn global v1.22.19
#5 0.827 [1/4] Resolving packages...
#5 0.885 error Couldn't find any versions for "@api3/airnode-admin" that matches "snapshot-3b81fd6b4[30](https://github.com/api3dao/airnode/actions/runs/9753460312/job/26918839398#step:7:31)0b7a13e288e8dda133ad1fe3e0d17"

The solution is to run yarn changeset, add at least one patch change (placeholder message is fine), and commit the resulting file along with the source code changes and then proceed with yarn docker:build:local.

@dcroote dcroote closed this as completed Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants