Quarkus开发中的PostgreSQL容器在Quarkus下未关闭。

huangapple go评论68阅读模式
英文:

Quarkus dev postgresql container not shutting down with quarkus

问题

Quarkus版本为2.16.7.Final。数据源是Postgresql:12.4。关于开发服务,除了以下设置以外都是默认的:

datasource:
  db-kind: postgresql
  devservices:
    image-name: artifactory.{"image-name"}/postgres:12.4
    port: 5000

我使用mvn quarkus:dev来运行应用程序。当我关闭或终止服务器时,Postgresql容器会继续运行(以前它会与服务器一起正常关闭)。我必须每次手动停止容器才能重新启动服务器。

Keycloak和ryuk容器会随服务器一起关闭,但Postgresql容器会保持运行。

我尝试设置testcontainers.reuse.enable=false,但没有帮助。

英文:

Quarkus version 2.16.7.Final. Datasource is Postgresql:12.4. Everything is default wrt dev services except the below settings:

    datasource:
      db-kind: postgresql
      devservices:
        image-name: artifactory.{"image-name"}/postgres:12.4
        port: 5000

I run the app using mvn quarkus:dev. When I shutdown or kill the server the Postgresql container continues to run (It used to shutdown cleanly along with the server before). I have to manually stop the container every time I want to start the server again.

Keycloack and ryuk containers are shutting down with server but the postgres container staying alive.

I tried to set testcontainers.reuse.enable=false but it doesn't help.

答案1

得分: 0

以下是已翻译的内容:

"The suggestion from https://github.com/quarkusio/quarkus/issues/34294 helped me. However, I still have no idea why it only occurs with the Postgres container."

英文:

The suggestion from https://github.com/quarkusio/quarkus/issues/34294 helped me. However, I still have no idea why it only occurs with the Postgres container.

huangapple
  • 本文由 发表于 2023年6月13日 03:00:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76459580.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定