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

Can't get Docker image #25

Open
kenanzero opened this issue Apr 24, 2021 · 1 comment
Open

Can't get Docker image #25

kenanzero opened this issue Apr 24, 2021 · 1 comment

Comments

@kenanzero
Copy link

Hello,

When I run mvn install I get the FAILURE. What should I do to have SUCCESS message for Books REST Microservice?

Thanks.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Practising Quarkus 1.0-SNAPSHOT:
[INFO]
[INFO] Practising Quarkus :: First Step ................... SUCCESS [ 20.221 s]
[INFO] Practising Quarkus ................................. SUCCESS [ 0.050 s]
[INFO] Practising Quarkus :: Infrastructure ............... SUCCESS [ 0.331 s]
[INFO] Practising Quarkus :: Load ......................... SUCCESS [ 0.395 s]
[INFO] Practising Quarkus :: Books REST Microservice ...... FAILURE [ 13.355 s]
[INFO] Practising Quarkus :: Numbers REST Microservice .... SKIPPED
[INFO] Practising Quarkus :: UI Bookstore ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.725 s
[INFO] Finished at: 2021-04-24T06:19:18+02:00
[INFO] ------------------------------------------------------------------------


Test set: org.agoncal.fascicle.quarkus.book.BookResourceTest

Tests run: 14, Failures: 0, Errors: 1, Skipped: 13, Time elapsed: 9.386 s <<< FAILURE! - in org.agoncal.fascicle.quarkus.book.BookResourceTest
org.agoncal.fascicle.quarkus.book.BookResourceTest.shouldGetInitialItems Time elapsed: 0.017 s <<< ERROR!
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.RuntimeException: Unable to start Quarkus test resource org.agoncal.fascicle.quarkus.book.infrastructure.Database@633fd91
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
Caused by: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=postgres:12.4, imagePullPolicy=DefaultPullPolicy())
Caused by: com.github.dockerjava.api.exception.NotFoundException:
Status 404: {"message":"No such image: testcontainers/ryuk:0.3.0"}

@whbogado
Copy link

whbogado commented Apr 3, 2023

@kenanzero There is no postgres:12.4 image tag. The error occurs in Database.java.
The workaround is to change PostgreSQLContainer<>("postgres:12.4") to PostgreSQLContainer<>("postgres:12")

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