Skip to Content.
Sympa Menu

grouper-users - [grouper-users] New grouper user here, trying to get log4j.properties to update

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] New grouper user here, trying to get log4j.properties to update


Chronological Thread 
  • From: Michael Porter <>
  • To:
  • Subject: [grouper-users] New grouper user here, trying to get log4j.properties to update
  • Date: Thu, 10 Sep 2020 18:00:19 -0400

Hi,

Grouper 2.5.33

I would like to change the log4j.properties properties file.

It looks like log4j.properties does not use the '.base'.' mechanism that some of the other property files use.  So, I thought the best way to get changes in would be to make a new docker image as so:

cat /opt/grouperContainer/Dockerfile

# this matches the version you decided on from release notes
ARG GROUPER_VERSION=2.5.33

FROM i2incommon/grouper:${GROUPER_VERSION}

# this will overlay all the files from /opt/grouperContainer/slashRoot on to /
COPY slashRoot/ /
COPY slashRoot/opt/grouper/grouperWebapp/WEB-INF/classes/log4j.properties /opt/grouper/grouperWebapp/WEB-INF/classes/log4j.properties

RUN chown -R tomcat:tomcat /opt/grouper \
 && chown -R tomcat:tomcat /opt/tomee

And:

cd /opt/grouperContainer
docker build -t my-grouper-2.5.33 /opt/grouperContainer

However, the log4j.properties is never updated in the new image.  New files will be added, but no updates.  I've tried Googling this topic, but answers are all over the place.

I can do a manual copy from within the image and that works, and it seems like I could possibly add a script somewhere to do the copy when the image starts.

But, something just seems wrong here.  Either COPY does not overwrite existing files or I have some other fundamental misunderstanding.

I'm not yet skilled enough to build a new image from source, either.

Thoughts?

Thanks,

Mike

Mike Porter
Systems Programmer V
IT/NSS
University of Delaware

(302) 831-3747




Archive powered by MHonArc 2.6.19.

Top of Page