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

Dev services use Mongodb 4.4 which is EOL #42045

Closed
fedinskiy opened this issue Jul 22, 2024 · 6 comments · Fixed by #42078
Closed

Dev services use Mongodb 4.4 which is EOL #42045

fedinskiy opened this issue Jul 22, 2024 · 6 comments · Fixed by #42078
Labels
Milestone

Comments

@fedinskiy
Copy link
Contributor

fedinskiy commented Jul 22, 2024

Describe the bug

By default, Quarkus running in dev mode with mongodb extensions will start container of version 4.4, which reached end of life in February of 2024[1]. Since Quarkus is running fine with the latest (7.0) version of Mongodb, it makes sense to update the defaults

[1] https://www.mongodb.com/legal/support-policy/lifecycles

Expected behavior

Quarkus dev services use the latest supported versions

Actual behavior

Quarkus uses version 4.4, which reached EOL

How to Reproduce?

  1. Generate the app: wget -O app.zip 'https://code.quarkus.io/d?a=app&e=mongodb-panache&e=rest&cn=code.quarkus.io'
  2. unzip app.zip && cd app
  3. mvn quarkus:dev
  4. Check the version in another window:
$ podman ps
CONTAINER ID  IMAGE                                COMMAND               CREATED         STATUS         PORTS                                NAMES
e49657c97688  docker.io/testcontainers/ryuk:0.7.0  /bin/ryuk             32 minutes ago  Up 32 minutes  0.0.0.0:38483->8080/tcp, 8080/tcp    testcontainers-ryuk-f2ceb91e-81ef-491c-a32e-5a60d2452997
c49dc4bf63dc  docker.io/library/mongo:4.4          --replSet docker-...  32 minutes ago  Up 32 minutes  0.0.0.0:40857->27017/tcp, 27017/tcp  ecstatic_mestorf

  1. Overload the version: mvn quarkus:dev -Dquarkus.mongodb.devservices.image-name=docker.io/library/mongo:7.0
  2. The app starts fine

Output of uname -a or ver

4.18.0-553.5.1.el8_10.x86_64

Output of java -version

17.0.7, vendor: Red Hat, Inc.

Quarkus version or git rev

3.12.3

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)

Additional information

No response

@fedinskiy fedinskiy added the kind/bug Something isn't working label Jul 22, 2024
Copy link

quarkus-bot bot commented Jul 22, 2024

/cc @geoand (devservices), @loicmathieu (mongodb), @stuartwdouglas (devservices)

@geoand
Copy link
Contributor

geoand commented Jul 22, 2024

Makes sense, thanks for spotting this!

Would you like to do a PR to update the version?

@melloware
Copy link
Contributor

you can also just set the image with quarkus.mongodb.devservices.image-name=mongo:latest

@geoand
Copy link
Contributor

geoand commented Jul 23, 2024

Absolutely, but I think the issue is about providing a good default

@famod
Copy link
Member

famod commented Jul 23, 2024

It seems the entire block needs some updating: https://github.com/quarkusio/quarkus/blob/3.13.0.CR1/build-parent/pom.xml#L83-L90

@melloware
Copy link
Contributor

PR submitted: #42078

@quarkus-bot quarkus-bot bot added this to the 3.14 - main milestone Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants