Reputation: 255
I am trying to run a Docker container in Jelastic / Virtuozzo Application Platform. The Docker container contains a Java application. I used the Jelastic JavaEngine Docker image as a base.
I specified
FROM jelastic/javaengine:temurinjdk-21.0.2-almalinux-9
RUN yum install grep
WORKDIR /opt/werewolf.server
ENTRYPOINT ["java" , "-cp" , "./*", "werewolf.server.Main"]`
in my Dockerfile.
I can run the image locally without any problems and without specifying an extra entrypoint value.
In Virtuozzo I get the following error in the run.log:
Error: Could not find or load main class ..bson-5.0.0.jar
Caused by: java.lang.ClassNotFoundException: //bson-5/0/0/jar
The entrypoint configuration in Jelastic for this Docker container is:
java -cp ./* werewolf.server.Main
Also the initial value for the entrypoint was not correct:
java -cp ./1 ./add_node ./anaconda-ks.cfg ./etc-sysconfig-vz.backup ./etc-sysconfig-vz.backup.a ./etc-vz-vz.conf.backup ./etc-vz-vz.conf.backup.a ./ipmigrate ./ipset-2022-02-15 ./ipset-2024-12-20 ./ipset-export-2022-09-16 ./ipsets ./iptables-2022-02-15 ./iptables-2024-12-20 ./iptables-export-2022-09-16 ./Jelastic.2014-12-17.pub ./Jelastic.2015-05-20.pub ./jls ./platform_preparation.sh ./screenlog.0 ./vztemplates-upgrade-v2.sh werewolf.server.Main
How to run a the Java application inside the Docker container in Jelastic?
Upvotes: 0
Views: 26