TheConnMan/docker-hub-rss

Feature Request: RSS feed item description

zhangyoufu opened this issue · 9 comments

I want to have image digest in RSS feed item description, for archiving and convenience.

For sake of simplicity, the JSON object for each tag can be used as item description directly. And make it optional as an extra switch.

Something like

{
    "creator": 7,
    "full_size": 36059464,
    "id": 99483,
    "image_id": null,
    "images": [
        {
            "architecture": "arm",
            "digest": "sha256:223205794793b82b45b49ddf0cd86c1d53c105702e6de08c27937b4cedfd9c70",
            "features": "",
            "os": "linux",
            "os_features": "",
            "os_version": null,
            "size": 31067038,
            "variant": "v7"
        },
        {
            "architecture": "amd64",
            "digest": "sha256:4ba575efa3b82a7f54b9fe342e3e2fa342584b819ffe3d57201df2e0d311a98b",
            "features": "",
            "os": "linux",
            "os_features": "",
            "os_version": null,
            "size": 36059464,
            "variant": null
        },
        {
            "architecture": "ppc64le",
            "digest": "sha256:c4f3561c32beddfee4efdcc938f27b1877befbb7264c1124a9f1abce2d744bcf",
            "features": "",
            "os": "linux",
            "os_features": "",
            "os_version": null,
            "size": 39726181,
            "variant": null
        },
        {
            "architecture": "arm",
            "digest": "sha256:f1aff18a7013dece1ddcb7d5de7432fb942ec04d316918116e8f4e85841fd2c1",
            "features": "",
            "os": "linux",
            "os_features": "",
            "os_version": null,
            "size": 28148471,
            "variant": "v5"
        },
        {
            "architecture": "386",
            "digest": "sha256:a98f0bf1cbc104a156eafcf49461ca86f5fdf0eb34faf3254218fb87dffa5a81",
            "features": "",
            "os": "linux",
            "os_features": "",
            "os_version": null,
            "size": 36472394,
            "variant": null
        },
        {
            "architecture": "arm64",
            "digest": "sha256:d1e9615412683ffd03f17a205cf6189eddebd93bf6890d4eceaa989df0c0178f",
            "features": "",
            "os": "linux",
            "os_features": "",
            "os_version": null,
            "size": 34617292,
            "variant": "v8"
        },
        {
            "architecture": "s390x",
            "digest": "sha256:3bc942e43c2439f437ac1a805e1d8255c4d76688c1da90e9d2a9a42077c989d0",
            "features": "",
            "os": "linux",
            "os_features": "",
            "os_version": null,
            "size": 34169792,
            "variant": null
        }
    ],
    "last_updated": "2019-12-23T19:58:18.970793Z",
    "last_updater": 1156886,
    "last_updater_username": "doijanky",
    "name": "latest",
    "repository": 109121,
    "v2": true
}

Would the full images object stringified as JSON work for the description?

Would the full images object stringified as JSON work for the description?

I think the last update timestamp is also helpful. Since some RSS readers show "xx hours ago" instead of a full timestamp.

Last Updated is already set as the date field on each feed item so readers will pick it up automatically: https://github.com/TheConnMan/docker-hub-rss/blob/dev/index.js#L108

And there is a field containing "id-timestamp"

@TheConnMan Please deploy v0.2.2 to rss.p.theconnman.com. Thank you.

@zhangyoufu I've updated the image, though I did not change any code against this ticket. You closed it so I thought you found what you needed. Are there changes you're expecting?

@TheConnMan The changes suit my needs. However, I found that https://rss.p.theconnman.com/ still does not contain feed item description. And at the time of writing, it's down (404 page not found).

Should be fixed now.

That site is for demo purposes only. If you're running anything critical against it I recommend you run this project on your own infrastructure.

@zhangyoufu see #12, I changed where rss.p.theconnman.com is hosting (though it redirects) so you can use the direct link if you'd like.