Y_MN
(Mikhail)
June 6, 2022, 12:13pm
1
Hi,
I’m trying to build a plugin version 8.x. But when I run the command, it starts to swear that the old version of the gradle. Tell me please, am I doing it wrong or are the changes for the manual assembly of the plugin not yet ready?
Kind Regards
coutoPL
(Mateusz Kołodziejczyk)
June 6, 2022, 6:39pm
2
Do you have JDK 17 installed?
You can try using this Dockerfile:
FROM openjdk:17.0.2-jdk
RUN microdnf install wget &&\
microdnf install unzip &&\
wget https://services.gradle.org/distributions/gradle-4.10.2-bin.zip &&\
unzip -d /opt/gradle gradle-4.10.2-bin.zip &&\
export PATH=$PATH:/opt/gradle/gradle-7.4.2/bin
COPY . /ror
ARG ES_MODULE
ARG ES_VERSION
RUN cd /ror &&\
./gradlew clean --stacktrace ${ES_MODULE}:ror -PesVersion=${ES_VERSION} &&\
mv /ror/${ES_MODULE}/build/distributions/readonlyrest-*.zip /ror/ror.zip
Put in in root folder of ROR’s repo and run this command:
docker build -t build-ror:es8.2.2 --build-arg ES_MODULE=es82x --build-arg ES_VERSION=8.2.2 .
ROR plugin can be found in /ror/ror.zip
in the built image.
In the next release, we will add the improved dockerfile to the repo.
coutoPL
(Mateusz Kołodziejczyk)
July 8, 2022, 6:05pm
3
Now, it’s super simple to build ROR for a given ES version. The only tool you need to have is Docker:
See:
develop/docker-envs/build-ror-in-docker
Free Elasticsearch security plugin and Kibana security plugin: super-easy Kibana multi-tenancy, Encryption, Authentication, Authorization, Auditing - elasticsearch-readonlyrest-plugin/docker-envs/b...