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

Getting-start example Error running docker native container #2822

Closed
Panciz opened this issue Jun 13, 2019 · 2 comments
Closed

Getting-start example Error running docker native container #2822

Panciz opened this issue Jun 13, 2019 · 2 comments
Labels
kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant

Comments

@Panciz
Copy link

Panciz commented Jun 13, 2019

I followed the instruction on https://quarkus.io/guides/building-native-image-guide but I get this error when I run the docker image.

I did all the steps in the tutorial

  1. ./mvnw package -Pnative -Dnative-image.docker-build=true
  2. docker build -f src/main/docker/Dockerfile.native -t quarkus-quickstart/getting-started .
  3. docker run -i --rm -p 8080:8080 quarkus-quickstart/getting-started

but I get this error:

./application: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

Environment (please complete the following information):

openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-20190420092731.buildslave.jdk8u-src-tar--b03)
OpenJDK GraalVM CE 19.0.0 (build 25.212-b03-jvmci-19-b01, mixed mode)
  • quarkus version 0.16.1

Additional context

The non native Docker image Dockerfile.jvm works fine.
In the container I can find the lib /lib64/libcrypt.so.2.

@Panciz Panciz added the kind/bug Something isn't working label Jun 13, 2019
@Panciz
Copy link
Author

Panciz commented Jun 13, 2019

As suggested in by Michal Szynkiewicz in Quarkus Google-Groups I change the base image to

FROM registry.access.redhat.com/ubi8/ubi-minimal
and It works

Should the issue be closed?

@gwenneg
Copy link
Member

gwenneg commented Jul 11, 2019

Considering registry.fedoraproject.org/fedora-minimal was replaced with registry.access.redhat.com/ubi8/ubi-minimal in all quickstarts Dockerfile.native files. I'd say this issue can be closed.

@gwenneg gwenneg closed this as completed Jul 11, 2019
@gsmet gsmet added the triage/out-of-date This issue/PR is no longer valid or relevant label Jul 30, 2019
galderz added a commit to galderz/putcachejpa that referenced this issue Aug 16, 2019
* fedora-minimal fails with issue:
quarkusio/quarkus#2822
galderz added a commit to galderz/quarkus-todo-app that referenced this issue Sep 21, 2019
* fedora-minimal fails with issue:
quarkusio/quarkus#2822
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant
Projects
None yet
Development

No branches or pull requests

3 participants