在大厅容器上运行Elasticsearch 8
我正在使用大厅来构建我的Java包。
为了运行该软件包的集成测试,我需要一个lasticsearch的本地实例。
在ES版本8之前,我所做的只是在Docker Image中安装ES,然后我将用作Concourse Task的Image资源来构建我的Java软件包:
FROM openjdk:11-jdk-slim-stretch
RUN apt-get update && apt-get install -y procps
ADD "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-amd64.deb" /es.deb
RUN dpkg -i es.deb
RUN rm es.deb
以后我会在使用以下方式之前直接启动它: /etc/init.d/elasticsearch start
问题开始升级到版本8时开始。我发现的一些建议建议运行ES作为容器,因此在大厅容器内运行ES容器,对于我的用例来说似乎太复杂了。
如果您的项目中有类似的问题,您是如何解决这些问题的?
I'm using Concourse for building my java package.
In order to run integration tests of that package, I need a local instance of elasticsearch present.
Prior to ES version 8, all I was doing was installing ES in Docker image that I would then use as Concourse task's image resource to build my java package in:
FROM openjdk:11-jdk-slim-stretch
RUN apt-get update && apt-get install -y procps
ADD "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-amd64.deb" /es.deb
RUN dpkg -i es.deb
RUN rm es.deb
Later I would just start it right before building with:/etc/init.d/elasticsearch start
Problems started when upgrading ES to version 8. That init.d
file does not seem to exist anymore. Some of the advices I found suggest running ES as a container, so running ES container inside of the concourse container which seems a bit too complex for my use case.
If you had similar problems in your projects, how did you solve them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是我要做的:
oozie/弹性
。那么以下管道作业应该成功:应导致以下任务运行:
This is what I would do:
oozie/elastic
on docker. Then the following pipeline job should succeed:It should result in the following task run: