You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
9
9
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
10
10
RUN apt-get update
11
-
RUN apt-get install -y temurin-17-jdk
11
+
RUN apt-get install -y temurin-20-jdk temurin-17-jdk
12
12
13
13
# Install PyLucene & JCC
14
-
RUN wget https://dlcdn.apache.org/lucene/pylucene/pylucene-9.4.1-src.tar.gz
15
-
RUN tar -xzf pylucene-9.4.1-src.tar.gz
16
-
ENV JCC_JDK=/usr/lib/jvm/temurin-17-jdk-amd64
17
-
WORKDIR /home/app/pylucene-9.4.1/jcc
14
+
RUN wget https://dlcdn.apache.org/lucene/pylucene/pylucene-9.7.0-src.tar.gz
15
+
RUN tar -xzf pylucene-9.7.0-src.tar.gz
16
+
ENV JCC_JDK=/usr/lib/jvm/temurin-20-jdk-amd64
17
+
WORKDIR /home/app/pylucene-9.7.0/jcc
18
18
RUN python3 ./setup.py build
19
19
RUN python3 ./setup.py install
20
20
21
-
WORKDIR /home/app/pylucene-9.4.1
21
+
WORKDIR /home/app/pylucene-9.7.0
22
22
ENV PYTHON=python3
23
23
ENV JCC="$(PYTHON) -m jcc --shared"
24
24
ENV NUM_FILES=16
25
-
RUN make lucene-java-9.4.1
26
-
RUN mkdir lucene-java-9.4.1/lucene/extensions/src/java/org/apache/pylucene/codecs
27
-
RUN wget -O ./lucene-java-9.4.1/lucene/extensions/src/java/org/apache/pylucene/codecs/PyLucene94Codec.java https://gist.githubusercontent.com/benwtrent/f3a6c4a9ce9749e702285dc82f39a129/raw/4742cf91401103f86809655d5c708b833beae43f/PyLucene94Codec.java
25
+
# Needed as current Lucene gradle version doesn't support java 20 on build
26
+
ENV JAVA_HOME=/usr/lib/jvm/temurin-17-jdk-amd64
27
+
RUN make lucene-java-9.7.0
28
+
RUN mkdir lucene-java-9.7.0/lucene/extensions/src/java/org/apache/pylucene/codecs
29
+
RUN wget -O ./lucene-java-9.7.0/lucene/extensions/src/java/org/apache/pylucene/codecs/PyLucene95Codec.java https://gist.githubusercontent.com/benwtrent/79d70d59716f0e25833c5ea84d956c12/raw/8f529f3437c2fb8318f0127ecd71c960e43e0a7f/PyLucene95Codec.java
28
30
RUN make
29
31
RUN make install
32
+
# Switch back to jdk20 for panama vectorization support
0 commit comments