应用服务器在基础镜像中是什么?

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

What is application server in base image?

问题

基础镜像中,该命令使用了-Dquarkus.http.host=0.0.0.0。我的Quarkus应用程序使用了Kafka,我不认为需要暴露HTTP服务器。如何不暴露这个HTTP端点?此外,这个端点是否与quarkus-resteasy-reactive-jackson扩展有关?

英文:

In the base image, the command uses -Dquarkus.http.host=0.0.0.0. My Quarkus application uses Kafka and I don't see the need to expose a HTTP server. How do I not expose this HTTP end-point? Also, is this end-point tied to the quarkus-resteasy-reactive-jackson extension?

答案1

得分: 0

如果您的应用程序没有暴露HTTP服务器,则设置 quarkus.http.host 不会产生任何效果。从技术上讲,此设置由 quarkus-vertx-http 扩展使用。

此外,如果您希望的话,您总是可以覆盖Docker的 CMD 指令。

英文:

If your application does not expose an HTTP server, setting quarkus.http.host will have no effect.
More technically, this setting is used by the quarkus-vertx-http extension.

Furthermore, you can always override the docker CMD instruction if you want to.

huangapple
  • 本文由 发表于 2023年7月20日 10:08:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76726232.html
匿名

发表评论

匿名网友

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

确定