docker-registry icon indicating copy to clipboard operation
docker-registry copied to clipboard

How to add "description" to repository?

Open fillorkill opened this issue 12 years ago • 4 comments

/v1/search endpoint would return a description field. I'm wondering how can I add this description field in the images I push to? Or do I need to go into the backend database and do it manually? Nothing in the documents show how to do that.

fillorkill avatar Sep 06 '14 17:09 fillorkill

If you were using the hub, you could add a description manually on the web interface. If not (like in standalone = True), there is no simple way to do that for now (eg: there is no API endpoint that allows you to send a description).

Indeed, you may edit the database manually.

dmp42 avatar Sep 09 '14 23:09 dmp42

On Tue, Sep 09, 2014 at 04:25:01PM -0700, Olivier Gambier wrote:

If not (like in standalone = True), there is no simple way to do that for now (eg: there is no API endpoint that allows you to send a description).

Can you give odds on such an API endpoint existing in the future? Or on the likelyhood of y'all accepting a patch that added such and endpoint to this repository, even if that endpoint wasn't part of the closed-source index's API?

wking avatar Sep 09 '14 23:09 wking

@wking

Yeah, would be cool.

What about adding that into search.py, and have a new endpoint like:

@app.route('/v1/search/metadata/<repo>', methods=['PUT']) (or anything better in the line) and that would manipulate the database directly.

I know it's a bit hackish, but at least it's clearly segregated. I would merge that.

dmp42 avatar Sep 10 '14 00:09 dmp42

Put otherwise: I can't make such a thing happen in the docker engine, so, that would be a "manual" endpoint that a UI (or a curl command) would access.

dmp42 avatar Sep 10 '14 00:09 dmp42