KeyStore YUM Nexus Docker

Hello together,

in following, I refer to Proxying RHEL Yum Repositories .


A few days ago, I moved our Nexus Repository Manager from a local install, to a docker install as container.

To ensure, our RHEL servers can get this software packages by the Nexus Repository Manager, I followed the Doku, I printed at the beginn. And while the Nexus Repository Manager run as local install, it also workd very well. After I moved to a docker install, it dont.


nexus:
  image: sonatype/nexus3
  volumes:
    - ./rundir:/nexus-data:rw
    - ./nexus.vmoptions:/opt/sonatype/nexus/bin/nexus.vmoptions:ro
    - ./keystore.yum.p12:/opt/keystore.yum.p12:ro
  restart: always
-Djavax.net.ssl.keyStore=/opt/keystore.yum.p12
-Djavax.net.ssl.keyStorePassword=iKeepMySecreats

The keystoreFile is mounted as /opt/keystore.yum.p12. The nexusVmoptions mounted in ($app-dir/bin/nexus.vmoptions) /opt/sonatype/nexus/bin/nexus.vmoptions. Both got the premissions owner id 200:200 (nexus), premissions 0400 and 0466.

Inside the container the look like following:

grafik


Have someone got this problem once and know how to solve?

Best regards
Christopher Hofmann

Hi Christopher,

From your description I’m not really sure what issue you’re experiencing with Nexus?

Hello Matthew,

sorry, I forget to tell.

While I used the (local installed) Nexus instance, I could receive the rpm packages from RedHat official package source, for and on RHEL. In afterwards, using the (docker installed) Nexus, the packages aren’t accessable anymore. I just got the Error 404, not found.

It’s important to say, that I didn’t change any settings. I moved the config files from the old instance to the new one. Anything else works perfect. Exact the RedHat source.

Best regards
Christopher Hofmann

That doc is for RHEL 7 and is out of date. I have tried with 10 and did not have any luck, what version are you trying? I also use a container for this