无法在 Azure 容器实例中访问 Drools
Can't access Drools in Azure Container Instance
当我 运行 docker.io/jboss/drools-workbench-showcase 在本地时它在 localhost:8080/business-central per instructions
工作正常
尝试使用以下 terraform 配置在 Azure 容器实例中 运行 它超时。
resource "azurerm_resource_group" "drools-jrg" {
name = "drools-jrg"
location = "eastus"
}
resource "azurerm_container_group" "drools1-jrg" {
name = "drools1-jrg"
location = "${azurerm_resource_group.drools-jrg.location}"
resource_group_name = "${azurerm_resource_group.drools-jrg.name}"
ip_address_type = "public"
dns_name_label = "mydroolsurlyyy-${azurerm_resource_group.drools-jrg.name}"
os_type = "Linux"
container {
name = "drools-workbench-showcase-jrg-1"
image = "docker.io/jboss/drools-workbench-showcase"
cpu = "0.5"
memory = "1.5"
ports {
port = 8080
protocol = "TCP"
}
ports {
port = 8081
protocol = "TCP"
}
}
当我访问门户网站时,它似乎创建得很好。 CLI 上也没有错误。我在门户网站上手动尝试了这个。按照我认为的方式提供 terraform 配置。
我唯一想知道的是它是否不允许超过 8080 的 HTTP?
谁能帮我解释一下为什么我的business central无法加载过来:
http://mydroolsurlyyy--drools-jrg.eastus.azurecontainer.io:8080/business-central
*dnsname 已更改
正如我在docker图像中看到的那样,您需要公开端口8080和8001,而不是8081。另外,更改端口也没有错。提个建议,你应该要求更大的CPU和内存,例如,2个CPU和4个内存,那么它就可以正常工作。
当我 运行 docker.io/jboss/drools-workbench-showcase 在本地时它在 localhost:8080/business-central per instructions
工作正常尝试使用以下 terraform 配置在 Azure 容器实例中 运行 它超时。
resource "azurerm_resource_group" "drools-jrg" {
name = "drools-jrg"
location = "eastus"
}
resource "azurerm_container_group" "drools1-jrg" {
name = "drools1-jrg"
location = "${azurerm_resource_group.drools-jrg.location}"
resource_group_name = "${azurerm_resource_group.drools-jrg.name}"
ip_address_type = "public"
dns_name_label = "mydroolsurlyyy-${azurerm_resource_group.drools-jrg.name}"
os_type = "Linux"
container {
name = "drools-workbench-showcase-jrg-1"
image = "docker.io/jboss/drools-workbench-showcase"
cpu = "0.5"
memory = "1.5"
ports {
port = 8080
protocol = "TCP"
}
ports {
port = 8081
protocol = "TCP"
}
}
当我访问门户网站时,它似乎创建得很好。 CLI 上也没有错误。我在门户网站上手动尝试了这个。按照我认为的方式提供 terraform 配置。
我唯一想知道的是它是否不允许超过 8080 的 HTTP?
谁能帮我解释一下为什么我的business central无法加载过来:
http://mydroolsurlyyy--drools-jrg.eastus.azurecontainer.io:8080/business-central
*dnsname 已更改
正如我在docker图像中看到的那样,您需要公开端口8080和8001,而不是8081。另外,更改端口也没有错。提个建议,你应该要求更大的CPU和内存,例如,2个CPU和4个内存,那么它就可以正常工作。