【问题标题】:Trying to deploy bitbucket in marathon/mesos尝试在马拉松/mesos 中部署 bitbucket
【发布时间】:2018-04-25 13:31:13
【问题描述】:

我正在尝试在 maratahon 中部署 Bitbucket,但是当我扩展应用程序时,它会反弹并跨越多个服务。 我不知道你为什么可以帮助任何人如何处理。

ma​​rathon_bitbucket.json

 {
     "id": "/test/bitbucket",
  "cmd": "sh /tmp/app/atlassian-bitbucket-4.8.3/start-bitbucket.sh",
  "cpus": 0.1,
  "mem": 512,
  "disk": 1,
  "instances": 0,
  "container": null,
  "constraints": [
    [
      "hostname",
      "LIKE",
      "(lltws0gbeot.sdi.corp.bankofamerica.com)"
    ]
  ],
  "portDefinitions": [
    {
      "port": 0,
      "protocol": "tcp",
      "name": null,
      "labels": null
    }
  ],
  "healthChecks": [
    {
      "gracePeriodSeconds": 60,
      "intervalSeconds": 60,
      "maxConsecutiveFailures": 3,
      "delaySeconds": 15,
      "protocol": "COMMAND",
      "timeoutSeconds": 20,
      "command": {
        "value":"ps -ef | grep \"bitbucket\" | grep -v grep"
      }
    }
  ]
}

谁能帮忙解决弹跳问题

【问题讨论】:

  • 您的 hostname 值似乎是指您公司内部的特定内部 URL。我建议将其编辑出来,并用根本无法识别您公司的通用名称替换它。

标签: bitbucket mesos bitbucket-server marathon mesosphere


【解决方案1】:

您没有指定容器镜像(null 不是有效的镜像名称)。您的意思是指定这个吗?

容器:“atlassian/bitbucket-server:latest”

【讨论】: