jbundler
jbundler copied to clipboard
Problem running jBundler in Docker in limited user context
Running JBundler command in Docker, results in
Step 18/29 : RUN jbundle show
---> Running in aab88275d759
JBundler classpath:
* /root/.m2/repository/com/newrelic/agent/java/newrelic-agent/5.3.0/newrelic-agent-5.3.0.jar
* /root/.m2/repository/io/github/resilience4j/resilience4j-circuitbreaker/0.17.0/resilience4j-circuitbreaker-0.17.0.jar
* /root/.m2/repository/io/vavr/vavr/0.10.0/vavr-0.10.0.jar
* /root/.m2/repository/io/vavr/vavr-match/0.10.0/vavr-match-0.10.0.jar
* /root/.m2/repository/org/slf4j/slf4j-api/1.7.26/slf4j-api-1.7.26.jar
* /root/.m2/repository/io/github/resilience4j/resilience4j-core/0.17.0/resilience4j-core-0.17.0.jar
* /root/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.61/bcprov-jdk15on-1.61.jar
* /root/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.61/bcpkix-jdk15on-1.61.jar
* /root/.m2/repository/org/bouncycastle/bctls-jdk15on/1.61/bctls-jdk15on-1.61.jar
* /root/.m2/repository/org/apache/httpcomponents/httpclient/4.5.10/httpclient-4.5.10.jar
* /root/.m2/repository/org/apache/httpcomponents/httpmime/4.5.10/httpmime-4.5.10.jar
* /root/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
* /root/.m2/repository/commons-codec/commons-codec/1.13/commons-codec-1.13.jar
* /root/.m2/repository/org/apache/httpcomponents/httpcore/4.4.12/httpcore-4.4.12.jar
This will not work if docker is build with a non root users. Is there a way to change the base directory to another place?
sure there is: one way via ENV variable
export JBUNDLE_LOCAL_REPOSITORY=/path/to/local/repo
dito works as java system properties: -Djbundle.local.repository=/path/to/local/repo or via config file $HOME/.jbundlerrc
local_repository: /path/to/local/repo
sorry for missing this completely - I really need to watch github mails more closely.