AdaptiveConsulting / nexus-casc-plugin

Configuration as code plugin for Sonatype Nexus Repository Manager
MIT License
48 stars 21 forks source link

Support for Docker push-to-group. #11

Closed CMYanko closed 3 years ago

CMYanko commented 3 years ago

This is anew feature in 3.27 and is PRO only. There is a new field in the docker group to associate the group with a docker-hosted registry so the user can push to the group and not have two ports for docker. I realize you don't have a license to test the PRO features but I've alerted our London team. Either I can do the testing or we can explore a trial license for you.

FYI - I'm trying to get the project setup in VSCode so I can self service more but I'm a lousy developer ;-)

bdellegrazie commented 3 years ago

Hi @CMYanko,

For this to be possible, I need to know what the property name(s) is on the docker-group to map the docker-hosted repo. Access to the underlying APIs should not be necessary in this specific case as properties are just mapped by name here. If you can tell me what the property name is please - we can simply document it and this will be complete.

Thanks in advance,

Brett

CMYanko commented 3 years ago

Looking into it

CMYanko commented 3 years ago

I was out last week, tracking down an answer now ;-)

CMYanko commented 3 years ago

Got it! It is WriteMember and this config is working for me:

bdellegrazie commented 3 years ago

Not sure if its case sensitive @CMYanko - could you test writeMember as well to see if the configuration winds up the same please?

CMYanko commented 3 years ago

Just realized my 'test' was bogus. re-testing now, this time for real ;-)

CMYanko commented 3 years ago

Ok, I miss interpreted what the product team told me but have it working now with these entries:

    group:
      memberNames:
        - "docker-hosted"
        - "docker-proxy"
      # PRO ONLY - set which hosted repo to pass a 'push' to
      groupWriteMember: docker-hosted