Closed haileypark-kr closed 8 months ago
Thanks for the reproduction steps. Upon first glance this looks related to https://github.com/elastic/xk6-output-elasticsearch/issues/22 although here you do provide a build context (I suspect that in the other issue this was not the case but did not receive any feedback).
As a first step, can you please try to build the image as follows and check if this succeeds?
git clone git@github.com:elastic/xk6-output-elasticsearch.git
cd xk6-output-elasticsearch
docker build -f ./Dockerfile .
If that works for you, can you please also share the contents of xk6-es-Dockerfile
? Is this a custom file that you've created or is this a copy of our Dockerfile
? Note that our Dockerfile
requires that is placed at the root of the project directory:
Thank you for your reply.
The xk6-es-Dockerfile
file was exactly same as your dockerfile, but I didn't build inside the repository.
I missed the ADD statement in the Dockerfile.
I tried cloning this repository and building inside it, and I succeded :) Thank you a lot.
I have another question.. Do you support Elasticsearch 7.x versions?
When I try to connect xk6-output-elasticsearch with elasticseach 7.10.2 version, I got an error like time="2024-03-21T08:23:04Z" level=error msg="could not create the 'output-elasticsearch' output: the client noticed that the server is not Elasticsearch and we do not support this unknown product"
.
I used docker run --rm --network elastic -e K6_ELASTICSEARCH_URL=http://es:9200 -i xk6-es run -o output-elasticsearch --tag testid=$(date "+%Y%m%d-%H%M%S") - <k6-scripts/script.js
to run the test.
I have another question.. Do you support Elasticsearch 7.x versions?
No, at the moment we depend on the Elasticsearch 8.x client:
I can look into what options we have to support both versions. But as this is a new ask, can you please raise a new issue for that?
I am trying to build a docker image using Dockerfile you provided.
docker build -t xk6-es -f xk6-es-Dockerfile .
xk6-es
, Dockerfile name:xk6-es-Dockerfile
But I got an error like below...
I am using docker v4.24.2. Let me know if I have to give you any further information about my environments.