elek / docker-storj-extension

Highly experimental docker-desktop extension to pull/push from/to Storj DCS
Apache License 2.0
5 stars 1 forks source link

Make registry accesible for the docker daemon #4

Open elek opened 2 years ago

elek commented 2 years ago

This is the biggest blocking problem with this extension, right now.

The MVP goal is to push/pull images with the help of a local registry (which is backed by StorjDCS).

This is equivalent with:

docker run -p 9999:5000 -e REGISTRY_STORAGE_STORJ_BUCKET=docker -e REGISTRY_STORAGE_STORJ_ACCESSGRANT=$(cat /tmp/grant) ghcr.io/elek/distribution:618d19fb
docker tag elek/herbstag localhost:9999/elek/herbstag
docker push localhost:9999/elek/herbstag

Unfortunately it's not so easy to start AND access the port of the container. The port 9999 should be accessible:

There are two possible solution

  1. We can try to expose the port of the backend container to the host. (maybe a change in the docker-compose?)
  2. We can change the implementation of (Service).RemoteImages() in backend/service.go to directly check the Storj DCS bucket instead of checking the port of the docker registry. This would make it possible to use approach 1.
rahulsurwade08 commented 2 years ago

Hey @elek , I would love to contribute for this under Hacktoberfest. How can I get started?

elek commented 1 year ago

@RahulSurwade08 This one is the most tricky issue, but a good starting point is trying to start the full project in your local environment.

I think the easiest solution is implementing (Service).RemoteImages() with storj/uplink app. If you need more help we can organize a call and I can explain it in more details.