klo2k / nexus3-docker

ARM Docker image of Sonatype Nexus Repository Manager (NXRM) (Raspberry Pis - armv7l, aarch64)
GNU General Public License v3.0
109 stars 39 forks source link

IMP add variable to nexus-default.properties #3

Closed OliverJurkschat closed 4 years ago

OliverJurkschat commented 4 years ago

Hey Kok-Yan Lo, i wanted to setup your image together with traefik on a subpath. I discovered that the image does not regard the NEXUS_CONTEXT env-variable defined in my docker-compose.yml. So i tweaked it a little and now it works. Maybe you want to include this imp into you master? By the way: Great job with the image so far. Really sad that there is no offical image from sonatype for RPI

klo2k commented 4 years ago

Thanks for your contribution Oliver!

Just trying to build the image with this changes but for some reason, Nexus is failing to start, with just this line in docker logs + 400% CPU...:

OpenJDK Client VM warning: No monotonic clock was available - timed services may be adversely affected if the time-of-day clock changes

I don't think it's caused by your changes but rather something to do wit the new java runtime...

development build:

root@pi4-dev1:/srv/nexus# docker run --rm -it klo2k/nexus3:development bash
nexus@97159d2ced85:/$ java -version
OpenJDK Client VM warning: No monotonic clock was available - timed services may be adversely affected if the time-of-day clock changes
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
OpenJDK Client VM (build 25.252-b09, mixed mode)
nexus@97159d2ced85:/$ exit

stable release:

root@pi4-dev1:/srv/nexus# docker run --rm -it klo2k/nexus3:3.25.0 bash
nexus@f76cfa391e8b:/$ java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK Client VM (build 25.252-b09, mixed mode)

I'm gonna look into this further and squash + merge when I get a build that works.

klo2k commented 4 years ago

Sorry for the delay @OliverJurkschat , #4 is causing me headache at the moment - and getting important given the latest release fixes a security vulnerability.

I'll first focus on getting a build working with a straight docker run on Raspbian first.

Soon after I will verify your fix.

klo2k commented 4 years ago

@OliverJurkschat , thanks for your contribution!

I've tested, merged and included into latest release: https://github.com/klo2k/nexus3-docker/releases/tag/3.25.1-04

OliverJurkschat commented 4 years ago

@OliverJurkschat , thanks for your contribution!

I've tested, merged and included into latest release: https://github.com/klo2k/nexus3-docker/releases/tag/3.25.1-04

Thanks for including it!! And don't worry about the delay, I am not really fast at the moment...!

OliverJurkschat commented 4 years ago

Thanks a lot for including it 👍😊 i now switched to your latest official release and it works as expected for me. Cheers, Oliver!

Kok-Yan Lo notifications@github.com schrieb am Sa., 1. Aug. 2020, 16:16:

@OliverJurkschat https://github.com/OliverJurkschat , thanks for your contribution!

I've tested, merged and included into latest release: https://github.com/klo2k/nexus3-docker/releases/tag/3.25.1-04

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/klo2k/nexus3-docker/pull/3#issuecomment-667538717, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFAIRATQGLX7QZFAH2O5M3R6QPT5ANCNFSM4PGUVABQ .