Skip to content

Fix pulling from a custom registry#2

Open
vweevers wants to merge 2 commits intomafintosh:masterfrom
vweevers:fix-custom-registry
Open

Fix pulling from a custom registry#2
vweevers wants to merge 2 commits intomafintosh:masterfrom
vweevers:fix-custom-registry

Conversation

@vweevers
Copy link
Copy Markdown

Since Engine API 1.21 (compare against 1.20), the POST /images/create route no longer takes a registry query parameter:

POST /v1.20/images/create?fromImage=prebuild%2Flinux-armv6&tag=1&registry=ghcr.io

Instead a custom registry must be provided as part of the fromImage query parameter:

POST /v1.21/images/create?fromImage=ghcr.io%2Fprebuild%2Flinux-armv6&tag=1

Without this, pulling fails with a manifest unknown error:

Error: manifest for prebuild/linux-armv6:1 not found: manifest unknown: manifest unknown
    at D:\Projecten\GitHub\Level\leveldown\node_modules\docker-remote-api\index.js:59:15

Strangely, with 1.15 (the default version used here) I get the same error. Which led me to a separate bug, namely that opts.version isn't forwarded to docker-remote-api. That's fixed by f9f8ec7. Unfortunately it doesn't fix the manifest unknown error.

So I instead propose to bump the default Engine API version from 1.15 to 1.21 and update query parameters accordingly. That's done in b7b315c.

vweevers added 2 commits July 31, 2021 23:35
Which only takes a single argument, rather than two.
Bumps the default Engine API version from 1.15 to 1.21.
vweevers added a commit to prebuild/prebuildify-cross that referenced this pull request Jul 31, 2021
vweevers added a commit to prebuild/prebuildify-cross that referenced this pull request Aug 1, 2021
vweevers added a commit to prebuild/prebuildify-cross that referenced this pull request Aug 1, 2021
Depends on prebuild/docker-images#19. Effectively fixes a critical
bug (prebuild/docker-images#17) for dockcross-based images. Those
are:

- `linux-armv6`
- `linux-armv7`
- `linux-arm64`
- `android-armv7`
- `android-arm64`

Also pins image versions (to version 1) by default, which is now
possible because the images are tagged with version numbers in
addition to the `latest` tag.

Image descriptions have moved to the prebuild/docker-images
repository.

Uses a temporary fork of the docker-pull npm package in order to
include mafintosh/docker-pull#2.
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

Successfully merging this pull request may close these issues.

1 participant