rancher / community-catalog

Catalog entries contributed by the community
384 stars 636 forks source link

registry-3 & registry-convoy-0: does not support v2 API #654

Open mspanc opened 7 years ago

mspanc commented 7 years ago

When I set up a registry-3 stack or registry-convoy-0 and try to push the image using docker 17.09-ce on Mac, it fails with

error parsing HTTP 404 response body: unexpected end of JSON input: ""

The portus app has the following errors in the logs

ActionController::RoutingError (No route matches [POST] "/v2/radiokit/tube/blobs/uploads"):
mspanc commented 7 years ago

@sshipway I tried to fix this by upgrading portus to opensuse/portus:2.2 image, but it fails to run, can you briefly describe what is the difference in your fork?

sshipway commented 7 years ago

There are very few changes from the main branch; the only things added are to handle certificate generation, and to autocreate the initial registry definition.

The startup.sh has been modified (for autocreation of certificates), and lib/tasks/sshipway.rake (which presets the registry definition)

Finally, the Dockerfile was modified for more convenient startup and getting the crono package present.

The sshipway.rake is no longer needed, as the portus:create_registry task now exists which does the same job. This is called by the startup.sh which is still needed, along with the Dockerfile changes, to get it to auto-configure and start immediately.

See these commits: https://github.com/sshipway/Portus/commit/11db7de7227d5a05bcf4a07ddb58ffc630dee264 https://github.com/sshipway/Portus/commit/57bd4bf653bca40a104eb75dbb27079689c185d5