Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

lib/internal: allow auto fallback from v2 API to v1 #222

Merged
merged 2 commits into from
Nov 2, 2016
Merged

lib/internal: allow auto fallback from v2 API to v1 #222

merged 2 commits into from
Nov 2, 2016

Conversation

stuart-warren
Copy link
Contributor

fixes #221
docker2aci would only attempt the v2 api if a registry supported it.
this check for a 404 error from the v2 api and if so attempts to
fallback to v1.

Workflow:
probe v2, try v2, downgrade-on-failure, probe v1, try v1,
hardfail-on-failure

fixes #221
docker2aci would only attempt the v2 api if a registry supported it.
this check for a 404 error from the v2 api and if so attempts to
fallback to v1.

Workflow:
probe v2, try v2, downgrade-on-failure, probe v1, try v1,
hardfail-on-failure
@stuart-warren
Copy link
Contributor Author

stuart-warren commented Oct 28, 2016

Hmm, I don't really understand the build failure from the ci:

fatal: No names found, cannot describe anything.

@jonboulle
Copy link
Contributor

That's some weird Semaphore flake where I think it doesn't check out the repository properly. I restarted it.

@jonboulle
Copy link
Contributor

LGTM. @lucab ?

@lucab
Copy link
Contributor

lucab commented Nov 1, 2016

Code LGTM, but I'll give this a spin inside rkt testsuite just to make sure that we don't hit further regressions.

@lucab lucab self-assigned this Nov 1, 2016
@lucab
Copy link
Contributor

lucab commented Nov 2, 2016

rkt testsuite is green too, merging. Thanks a lot @stuart-warren for your patches!

@lucab lucab merged commit 899f00b into appc:master Nov 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to support docker registries that store v1 and v2 images
3 participants