Open chgl opened 2 years ago
I have no burning wish for this but I get the arguments. I don't have admin access so this needs someone else's approval.
I absolutely agree that this isn't at all necessary but just a nice-to-have. So definitely not a priority.
@tadgh / @jamesagnew I sugggest you ping us here if/when you would like this. As mentioned, this is nice to have - not need to have so we'll just wait until you think this is something that should be done.
This issue is stale because it has been open 730 days with no activity. Remove stale label or comment or this will be closed in 5 days.
@dotasek what do you think? Wanna close this or should it be carried through?
Currently, the HAPI FHIR JPA server image is only hosted on Docker Hub, which does have some occasional availability issues and rate-limits pulls by default.
The GitHub container registry is freely available for open source projects: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry. We could push the container image to this registry as well. The neat thing is that the image will also appear on this repository's home page under "Packages" making it easier for users to discover the container image.
The workflow to push the image to this new registry should be fairly trivial to update: add the new ghcr.io/hapifhir/hapi-fhir-jpaserver-starter image to the
IMAGES
list https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/.github/workflows/build-images.yaml#L14 and add an additional login job for the new registry. I'd be happy to create a PR for both.However, the challenging/annoying part is allowing the action to write to the package registry, see https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio. To grant this repository access to write to the registry, a package inside the registry has to be pushed first in order to change its settings. To do that, someone with access to the hapifhir packages has to do the following:
docker pull docker.io/hapiproject/hapi:v6.0.1
docker tag docker.io/hapiproject/hapi:v6.0.1 ghcr.io/hapifhir/hapi-fhir-jpaserver-starter:v6.0.1
docker push ghcr.io/hapifhir/hapi-fhir-jpaserver-starter:v6.0.1
hapifhir/hapi-fhir-jpaserver-starter
packagehapi-fhir-jpaserver-starter
repository and grant it write-accessAfter all this, it will be possible for an updated workflow to push the container image to ghcr.io.
Despite the effort, is this something you would be interested in implementing?