Giter VIP home page Giter VIP logo

Comments (4)

sielaq avatar sielaq commented on July 26, 2024

First of all JAVA_HOME is not JAVA_BIN, so it need to point to upper directory like:

export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")

Second of all, you can always inject ANY ENV variable by editing restricted/env like:

JAVA_HOME=/usr/lib/jvm/java-9-openjdk-amd64/

recreate paas
docker-compose stop; docker-compose rm; docker-compose up -d and should work fine

from panteras.

kopax avatar kopax commented on July 26, 2024

I thought about it then I thought that the right place to do it wouldn't be there. It is available at installation and user don't need to know where is JAVA_HOME except for configuring it.

from panteras.

sielaq avatar sielaq commented on July 26, 2024

Mostly apps don't need that variable, if java is the PATH.
What you can do, to make variable agnostic from the version and path
just try to use
JAVA_HOME=/usr instead
this should also make a trick since most of apps just add string /bin/java
edit: and /usr/bin/java is an alias pointing to the current desired version

from panteras.

kopax avatar kopax commented on July 26, 2024

Well, it is written in the documentation of the plugin it need JAVA_HOME. I will see the best way to fix this. I am stuck at configuring /usr/lib/libmesos.so:/usr/lib/libmesos.so. I am trying to mount it as a volume so I can use it in jenkins as demonstrated here

image

I have the following error:

ERROR: for panteras  Cannot start service panteras: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/usr/lib/libmesos.so\\\" to rootfs \\\"/var/lib/docker/devicemapper/mnt/2cd649dab477b8b743a967642847a0579a733a87163a37aad94154200ebb183d/rootfs\\\" at \\\"/var/lib/docker/devicemapper/mnt/2cd649dab477b8b743a967642847a0579a733a87163a37aad94154200ebb183d/rootfs/usr/lib/libmesos-1.2.0.so\\\" caused \\\"not a directory\\\"\""
 : Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

Do you know how I could get through?

from panteras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.