Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running jBundler in Docker in limited user context #91

Open
zaknuces opened this issue Oct 11, 2019 · 1 comment
Open

Problem running jBundler in Docker in limited user context #91

zaknuces opened this issue Oct 11, 2019 · 1 comment

Comments

@zaknuces
Copy link

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?

@mkristian
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants