You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created simple java project with quarkus(https://quarkus.io/guides/getting-started). If I build image with quarkus native mode I can successfully build slim image but if I use jvm based image it fails to run after build-slim process
docker-slim build --http-probe=false quarkus/getting-started-jvm
5. Run and got the error: docker run quarkus/getting-started-jvm.slim "Error occurred during initialization of VM
Could not find agent library instrument on the library path, with error: Error loading shared library libinstrument.so: No such file or directory"
Is may be related with this issue #80 but not sure...
Note:
Dockerfile generated by quarkus
FROM fabric8/java-alpine-openjdk8-jre:1.6.5
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter
# Be prepared for running in OpenShift too
RUN adduser -G root --no-create-home --disabled-password 1001 \
&& chown -R 1001 /deployments \
&& chmod -R "g+rwX" /deployments \
&& chown -R 1001:root /deployments
COPY target/lib/* /deployments/lib/
COPY target/*-runner.jar /deployments/app.jar
EXPOSE 8080
# run with user 1001
USER 1001
ENTRYPOINT [ "/deployments/run-java.sh" ]
Thanks
The text was updated successfully, but these errors were encountered:
@muratkarakas it might be related to how OpenJDK works on Alpine ( issue #80 also uses an Alpine-based image and it's likely related ). I'll try to repo the condition to make sure it's the case. Thank you for opening the issue!
Hi,
I've created simple java project with quarkus(https://quarkus.io/guides/getting-started). If I build image with quarkus native mode I can successfully build slim image but if I use jvm based image it fails to run after build-slim process
Steps:
1.Create project
./mvnw package -DskipTests=true
docker build -f src/main/docker/Dockerfile.jvm -t quarkus/getting-started-jvm .
docker-slim build --http-probe=false quarkus/getting-started-jvm
5. Run and got the error:
docker run quarkus/getting-started-jvm.slim
"Error occurred during initialization of VMCould not find agent library instrument on the library path, with error: Error loading shared library libinstrument.so: No such file or directory"
Is may be related with this issue #80 but not sure...
Note:
Thanks
The text was updated successfully, but these errors were encountered: