synchronization of registry repositories and development mode
Hello,
first of all thank you for your great work, it seems to be exactly what i was searching for. But after i successfully connected Portus with a private registry v 2.6 it only loaded and displayed Repositories from root directory of the registry/repositories.
_
testMachine:/data/dockerregistry/data/docker/registry/v2/repositories # ll total 12 drwxr-xr-x 6 root root 4096 Mar 15 10:55 infrastructure drwxr-xr-x 5 root root 4096 Mar 9 15:34 jenkins-slave-java drwxr-xr-x 6 root root 4096 Mar 10 14:34 ubuntu testMachine:/data/dockerregistry/data/docker/registry/v2/repositories # ll infrastructure/ ubuntu infrastructure/: total 16 drwxr-xr-x 5 root root 4096 Mar 14 13:22 apache-portal drwxr-xr-x 5 root root 4096 Mar 15 10:32 lam drwxr-xr-x 5 root root 4096 Mar 15 10:56 lsc drwxr-xr-x 5 root root 4096 Mar 14 14:53 openldap
ubuntu: total 16 drwxr-xr-x 5 root root 4096 Mar 9 15:31 14.04 drwxr-xr-x 3 root root 4096 Mar 10 14:34 _layers drwxr-xr-x 4 root root 4096 Mar 10 14:34 _manifests drwxr-xr-x 2 root root 4096 Mar 10 14:34 _uploads testMachine:/data/dockerregistry/data/docker/registry/v2/repositories #
_
You can see that there are more repositories in sub directories, which are also fetched by the catalog job:
_
testMaschine:/data/dockerregistry/data/docker/registry/v2/repositories # docker exec -it f2cf43ba684f bash root@f2cf43ba684f:/portus# rails runner bin/client.rb catalog [Mailer config] Host: registry.fis.ce.capgemini.com [Mailer config] Protocol: http:// Registry Load (0.4ms) SELECT
registries.* FROMregistriesORDER BYregistries.idASC LIMIT 1 [{"name"=>"infrastructure/apache-portal", "tags"=>["2.4.25", "latest"]}, {"name"=>"infrastructure/lam", "tags"=>["3.7.0", "latest"]}, {"name"=>"infrastructure/lsc", "tags"=>["2.1.3", "latest"]}, {"name"=>"infrastructure/openldap", "tags"=>["2.4.40", "latest"]}, {"name"=>"jenkins-slave-java", "tags"=>["1.0"]}, {"name"=>"ubuntu/14.04", "tags"=>["latest"]}, {"name"=>"ubuntu", "tags"=>["14.04"]}] Size: 7
_
But these are not visible in the Portus web UI. Additionally I have not seen any dev wiki entry pointing to an option, where to toggle development mode, therefore "log/development.log" is empty.
As you can see, I am running Portus as a docker container Build version 2.2 which I thought was primarily for development, therefore i thought dev mode is already enabled.
Maybe anyone can give some advice.
Best regards
Update:
I've found out, that Portus needs a namespace defined with the Web-UI named after the folder which contains the repositories, so that it imports these as well.
@JoKre17 I tried creating the namespace. One folder got imported and was showing up in Portus UI. I created the remaining namespace but didn't show up. Thoughts?
@mssola @JoKre17 Any thoughts on the above issue? We copied existing registry data to new server to test latest version of Portus. But we are not able to see the Portus UI showing the registry data. Thoughts?
@gvenka008c Are you sure, the folders contain valid images? Deleting images in the UI leads to not completely delete the image folders, also not running the garbage collector of docker registry deletes them.
Maybe check with "rails runner bin/client.rb catalog" if your copied images are known by registry. After than look into the logs. Otherwise I have no idea either.
Maybe another short shout out to @mssola regarding LDAP authentication: If the LDAP Server is just a copy of an official Corporate LDAP Server, our user have no passwords set in it. We use it mainly for technical users. But as a consequence of this, normal users were not able to log in, because the @ldap.bind_as function did not return true.
Therefore we modified it a bit to our needs. But maybe it should be possible to login with a username and no password in case the LDAP has no password set for that user?
Best regards! :)
Moving to 2.4, since the 2.3 release is about to be out.
Postponing again...