首页 > 解决方案 > 在 Bitbucket 管道中使用 Elasticsearch 服务

问题描述

我在我的 bitbucket 管道中添加了 elasticsearch 服务。

请在下面找到代码。

elasticsearch:
  image: xiting/elasticsearch-bitbucket-pipeline
  variables:
    ES_JAVA_OPTS: '-Xms512m -Xmx512m'

但是在运行测试时出现以下错误。

Elasticsearch\Common\Exceptions\RuntimeException: Could not parse host: 

谁能指导我们如何在 bitbucket 管道中添加弹性搜索作为服务?

标签: laraveldockerelasticsearchcontinuous-integrationbitbucket-pipelines

解决方案


推荐阅读