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

[Extension Proposal] Docker compose dev services #45338

Open
Malandril opened this issue Jan 2, 2025 · 10 comments
Open

[Extension Proposal] Docker compose dev services #45338

Malandril opened this issue Jan 2, 2025 · 10 comments
Labels
area/devservices area/quarkiverse This issue/PR is part of the Quarkiverse organization kind/extension-proposal Discuss and Propose new extensions

Comments

@Malandril
Copy link
Contributor

Description

Using dev services with quarkus is really great, but can be complicated when the service you want to use is not included in an already created extension.

There is no way to setup a dev service simply without creating an extension which can be complex at first, or using a QuarkusTestResource but the latter is limited to the tests.

Docker compose is well known and often used in the same maner as the quarkus devservices, to startup containers for local development, local integration testing.
Using docker compose to bridge the complexity gap could be great as the services declared in docker compose files could be created and run as devservices by quarkus.
That would allow reuse across tests in the continuous testing mode, and starting and stopping them automatically in dev mode.

I created first implementation here https://github.com/Malandril/quarkus-docker-compose its still a work in progress.

Repository name

quarkus-docker-compose

Short description

Use docker compose to setup custom devservices

Repository Homepage URL

https://docs.quarkiverse.io/quarkus-docker-compose/dev/

Repository Topics

  • quarkus-extension
  • docker
  • devservices
  • docker-compose

Team Members

Additional context

No response

@Malandril Malandril added area/quarkiverse This issue/PR is part of the Quarkiverse organization kind/extension-proposal Discuss and Propose new extensions labels Jan 2, 2025
Copy link

quarkus-bot bot commented Jan 2, 2025

/cc @aloubyansky (extension-proposal), @gastaldi (extension-proposal), @geoand (devservices), @gsmet (extension-proposal), @maxandersen (extension-proposal), @stuartwdouglas (devservices)

@gastaldi
Copy link
Contributor

gastaldi commented Jan 2, 2025

That sounds really cool and would be a great candidate. Let's see what others think about it

@geoand
Copy link
Contributor

geoand commented Jan 3, 2025

Definitely makes sense to have something in Quarkiverse

@melloware
Copy link
Contributor

Agreed I think @phillip-kruger also had some similar idea of allowing Generic Dev Services to be created but i like this idea because it allows you to use an existing Docker Compose Stack.

@phillip-kruger
Copy link
Member

@cescoffier mentioned that someone has done some work in this area, I can not remember who.

@maxandersen
Copy link
Member

@brunobat did something there if i recall.

as i recall it we can't do it "just" as separate extension as things are today as then wouldn't be possible to re-wire the "normal" devservices using docker compose.

but lets see if @brunobat can recall the PR he made. (assuming i remembered the name :)

@brunobat
Copy link
Contributor

brunobat commented Jan 6, 2025

It was actually @alesj

@maxandersen
Copy link
Member

no, at least I don't think so :) @alesj was doing other approach.

someone had a pr/prototype allowing use of docker compose. was it @ozangunalp ?

@Malandril
Copy link
Contributor Author

Maybe we can start from the first draft i did , that works for the basic use cases with compose files as dev services.

Then we can see from there how we can integrate more complexe use cases and other ideas.

@cescoffier
Copy link
Member

@ozangunalp you had almost everything right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devservices area/quarkiverse This issue/PR is part of the Quarkiverse organization kind/extension-proposal Discuss and Propose new extensions
Projects
None yet
Development

No branches or pull requests

8 participants