You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
by the docker daemon itself (to push images)
by the extension backend (to check the already uploaded images)
The approaches what we tried out until now:
We started new docker instance from backend (docker run...) with forwarded port
This approach requires a free port on host
The port is accessible by the docker daemon but not by the extension (!!!)
We started the registry inside the backend container as a new unix process
This makes it available for the backend (to check the already uploaded images)
But the port is not available for the docker daemon
There are two possible solution
We can try to expose the port of the backend container to the host. (maybe a change in the docker-compose?)
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.
The text was updated successfully, but these errors were encountered:
@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.
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:
Unfortunately it's not so easy to start AND access the port of the container.
The port
9999
should be accessible:The approaches what we tried out until now:
We started new docker instance from backend (
docker run...
) with forwarded portWe started the registry inside the backend container as a new unix process
There are two possible solution
(Service).RemoteImages()
inbackend/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.The text was updated successfully, but these errors were encountered: