Link for non-DockerHub tools is incorrect
See original GitHub issueDescribe the bug If a workflow references a non-DockerHub Docker image, the link incorrectly has hub.docker.com as the domain.
To Reproduce Steps to reproduce the behavior:
curl -s 'https://dockstore.org/api/workflows/5874/tools/13615' -H 'Accept: application/json' | jq '.'
[
{
"id": "icgc_pcawg_dkfz_workflow",
"file": "dkfz/icgc_pcawg_dkfz_sbg.cwl",
"docker": "images.sbgenomics.com/bogdang/pcawg-dkfz:1.0",
"link": "https://hub.docker.com/_/images.sbgenomics.com/bogdang/pcawg-dkfz"
},
{
"id": "pcawg_icgc_delly_workflow_1",
"file": "delly/icgc_pcawg_seqware_delly_sbg.cwl",
"docker": "images.sbgenomics.com/bogdang/pcawg-delly:10072019",
"link": "https://hub.docker.com/_/images.sbgenomics.com/bogdang/pcawg-delly"
}
]
Note how the links are to DockerHub, even though the images are hosted on SB.
Visible in the UI by navigating to https://dockstore.org/workflows/github.com/sbg/sbg_dockstore_tools/icgc_pcawg_dkfz_embl_sbg_modified:master?tab=tools
Expected behavior Links should be to SB Docker image repository.
Additional context Happens on prod and dev. Dev info:
Webservice - 2589683
UI - 2.6.1-42-g3b3889cf
Compose Setup - 8c083bddfa2e8cfcb517792d45b03b95dc3dda5d
Deploy - 1.9.2-24-g3fa31af
┆Issue is synchronized with this Jira Story ┆Fix Versions: Dockstore 1.9.X ┆Issue Number: DOCK-1588 ┆Sprint: Sprint 45- Trumpetfish ┆Issue Type: Story
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
Didn’t do much with it, but wrote some code that tries to detect the other image registries we support as an FYI https://github.com/dockstore/dockstore/blob/96424cf3dc0f7ca623efc17670613db659242b55/dockstore-webservice/src/main/java/io/dockstore/webservice/languages/LanguageHandlerInterface.java#L373
Going to close. We can revisit link discussion if it comes up from a user, otherwise, I think it’s good for now.