This is an automated email from the ASF dual-hosted git repository.
anshum pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-docker.git
The following commit(s) were added to refs/heads/main by this push:
new 884b2e6 Apache Solr release 10.0.0
884b2e6 is described below
commit 884b2e6692174ea09cdb5183b8dd585760b5e9fb
Author: Anshum Gupta <[email protected]>
AuthorDate: Tue Mar 3 10:26:34 2026 -0800
Apache Solr release 10.0.0
---
10.0-slim/Dockerfile | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++
10.0/Dockerfile | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 264 insertions(+)
diff --git a/10.0-slim/Dockerfile b/10.0-slim/Dockerfile
new file mode 100644
index 0000000..65f1f55
--- /dev/null
+++ b/10.0-slim/Dockerfile
@@ -0,0 +1,132 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+FROM eclipse-temurin:25-jre-noble
+
+ARG SOLR_VERSION="10.0.0"
+# empty for the full distribution, "-slim" for the slim distribution
+ARG SOLR_DIST="-slim"
+ARG
SOLR_SHA512="18817965956567405f5788f391ac94b88777ecb2ebb0ee11ef88e6bd117508461b735f926cdf2e138b9ffb48c51700c104f3f20722f85d4e5bc8c9f790d16ef1"
+ARG SOLR_KEYS="EDF961FF03E647F9CA8A9C2C758051CCA3A13A7F"
+
+# Override the default solr download location with a preferred mirror, e.g.:
+# docker build -t mine --build-arg
SOLR_DOWNLOAD_SERVER=https://downloads.apache.org/solr/solr .
+# This server must support downloading at:
${SOLR_DOWNLOAD_SERVER}/${SOLR_VERSION}/solr-${SOLR_VERSION}(-slim).tgz(.asc)
+ARG
SOLR_DOWNLOAD_SERVER="https://www.apache.org/dyn/closer.lua?action=download&filename=/solr/solr"
+
+RUN set -ex; \
+ apt-get update; \
+ apt-get -y --no-install-recommends install wget gpg gnupg dirmngr; \
+ rm -rf /var/lib/apt/lists/*; \
+ export SOLR_BINARY="solr-$SOLR_VERSION$SOLR_DIST.tgz"; \
+ MAX_REDIRECTS=3; \
+ case "${SOLR_DOWNLOAD_SERVER}" in \
+ (*"apache.org"*);; \
+ (*) \
+ # If a non-ASF URL is provided, allow more redirects and skip GPG step.
+ MAX_REDIRECTS=4 && \
+ SKIP_GPG_CHECK=true;; \
+ esac; \
+ export DOWNLOAD_URL="$SOLR_DOWNLOAD_SERVER/$SOLR_VERSION/$SOLR_BINARY"; \
+ echo "downloading $DOWNLOAD_URL"; \
+ if ! wget -t 10 --max-redirect $MAX_REDIRECTS --retry-connrefused -nv
"$DOWNLOAD_URL" -O "/opt/$SOLR_BINARY"; then rm -f "/opt/$SOLR_BINARY"; fi; \
+ if [ ! -f "/opt/$SOLR_BINARY" ]; then echo "failed download attempt for
$SOLR_BINARY"; exit 1; fi; \
+ echo "$SOLR_SHA512 */opt/$SOLR_BINARY" | sha512sum -c -; \
+ if [ -z "$SKIP_GPG_CHECK" ]; then \
+ # Setup GPG \
+ export GNUPGHOME="/tmp/gnupg_home"; \
+ mkdir -p "$GNUPGHOME"; \
+ chmod 700 "$GNUPGHOME"; \
+ echo "disable-ipv6" >> "$GNUPGHOME/dirmngr.conf"; \
+ if [ -n "$SOLR_KEYS" ]; then \
+ # Install all Solr GPG Keys to start
+ wget -nv "https://downloads.apache.org/solr/KEYS" -O- | \
+ gpg --batch --import --key-origin
'url,https://downloads.apache.org/solr/KEYS'; \
+ # Save just the release key
+ release_keys="$(gpg --batch --export -a ${SOLR_KEYS})"; \
+ rm -rf "$GNUPGHOME"/*; \
+ echo "${release_keys}" | gpg --batch --import; \
+ fi; \
+ # Do GPG Checks
+ echo "downloading $DOWNLOAD_URL.asc"; \
+ wget -nv "$DOWNLOAD_URL.asc" -O "/opt/$SOLR_BINARY.asc"; \
+ (>&2 ls -l "/opt/$SOLR_BINARY" "/opt/$SOLR_BINARY.asc"); \
+ gpg --batch --verify "/opt/$SOLR_BINARY.asc" "/opt/$SOLR_BINARY"; \
+ # Cleanup GPG
+ { command -v gpgconf; gpgconf --kill all || :; }; \
+ rm -r "$GNUPGHOME"; \
+ else \
+ echo "Skipping GPG validation due to non-Apache build"; \
+ fi; \
+ tar -C /opt --extract --preserve-permissions --file "/opt/$SOLR_BINARY"; \
+ rm "/opt/$SOLR_BINARY"*; \
+ apt-get -y remove gpg dirmngr && apt-get -y autoremove;
+
+
+
+LABEL org.opencontainers.image.title="Apache Solr"
+LABEL org.opencontainers.image.description="Solr is the blazing-fast, open
source, multi-modal search platform built on Apache Lucene. It powers
full-text, vector, and geospatial search at many of the world's largest
organizations."
+LABEL org.opencontainers.image.authors="The Apache Solr Project"
+LABEL org.opencontainers.image.url="https://solr.apache.org"
+LABEL org.opencontainers.image.source="https://github.com/apache/solr"
+LABEL org.opencontainers.image.documentation="https://solr.apache.org/guide/"
+LABEL org.opencontainers.image.version="${SOLR_VERSION}"
+LABEL org.opencontainers.image.licenses="Apache-2.0"
+
+ENV SOLR_USER="solr" \
+ SOLR_UID="8983" \
+ SOLR_GROUP="solr" \
+ SOLR_GID="8983" \
+
PATH="/opt/solr/bin:/opt/solr/docker/scripts:/opt/solr/cross-dc-manager/bin:$PATH"
\
+ SOLR_INCLUDE=/etc/default/solr.in.sh \
+ SOLR_HOME=/var/solr/data \
+ SOLR_PID_DIR=/var/solr \
+ SOLR_LOGS_DIR=/var/solr/logs \
+ LOG4J_PROPS=/var/solr/log4j2.xml \
+ SOLR_HOST_BIND="0.0.0.0" \
+ SOLR_ZOOKEEPER_EMBEDDED_HOST="0.0.0.0"
+
+RUN set -ex; \
+ groupadd -r --gid "$SOLR_GID" "$SOLR_GROUP"; \
+ useradd -r --uid "$SOLR_UID" --gid "$SOLR_GID" "$SOLR_USER"
+
+# add symlink to /opt/solr, remove what we don't want.
+# Remove the Dockerfile because it might not represent the dockerfile that was
used to generate the image.
+RUN set -ex; \
+ (cd /opt; ln -s solr-*/ solr); \
+ rm -Rf /opt/solr/docs /opt/solr/docker/Dockerfile;
+
+RUN set -ex; \
+ mkdir -p /opt/solr/server/solr/lib /docker-entrypoint-initdb.d; \
+ cp /opt/solr/bin/solr.in.sh /etc/default/solr.in.sh; \
+ mv /opt/solr/bin/solr.in.sh /opt/solr/bin/solr.in.sh.orig; \
+ mv /opt/solr/bin/solr.in.cmd /opt/solr/bin/solr.in.cmd.orig; \
+ chmod 0664 /etc/default/solr.in.sh; \
+ mkdir -p -m0770 /var/solr; \
+ chown -R "$SOLR_USER:0" /var/solr;
+
+RUN set -ex; \
+ apt-get update; \
+ apt-get -y --no-install-recommends install curl acl lsof procps wget
netcat-openbsd gosu tini jattach; \
+ rm -rf /var/lib/apt/lists/*;
+
+VOLUME /var/solr
+EXPOSE 8983
+WORKDIR /opt/solr
+USER $SOLR_UID
+
+ENTRYPOINT ["docker-entrypoint.sh"]
+CMD ["solr-foreground"]
diff --git a/10.0/Dockerfile b/10.0/Dockerfile
new file mode 100644
index 0000000..9369c69
--- /dev/null
+++ b/10.0/Dockerfile
@@ -0,0 +1,132 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+FROM eclipse-temurin:25-jre-noble
+
+ARG SOLR_VERSION="10.0.0"
+# empty for the full distribution, "-slim" for the slim distribution
+ARG SOLR_DIST=""
+ARG
SOLR_SHA512="825ab4e92a839802d9f5d570600b622881ddfe4f700cab569afb7d8220590a59d11088f4e10d4dcf9395073c35d73a420cc275a9ed7b18e2f84178bfcb49ae82"
+ARG SOLR_KEYS="EDF961FF03E647F9CA8A9C2C758051CCA3A13A7F"
+
+# Override the default solr download location with a preferred mirror, e.g.:
+# docker build -t mine --build-arg
SOLR_DOWNLOAD_SERVER=https://downloads.apache.org/solr/solr .
+# This server must support downloading at:
${SOLR_DOWNLOAD_SERVER}/${SOLR_VERSION}/solr-${SOLR_VERSION}(-slim).tgz(.asc)
+ARG
SOLR_DOWNLOAD_SERVER="https://www.apache.org/dyn/closer.lua?action=download&filename=/solr/solr"
+
+RUN set -ex; \
+ apt-get update; \
+ apt-get -y --no-install-recommends install wget gpg gnupg dirmngr; \
+ rm -rf /var/lib/apt/lists/*; \
+ export SOLR_BINARY="solr-$SOLR_VERSION$SOLR_DIST.tgz"; \
+ MAX_REDIRECTS=3; \
+ case "${SOLR_DOWNLOAD_SERVER}" in \
+ (*"apache.org"*);; \
+ (*) \
+ # If a non-ASF URL is provided, allow more redirects and skip GPG step.
+ MAX_REDIRECTS=4 && \
+ SKIP_GPG_CHECK=true;; \
+ esac; \
+ export DOWNLOAD_URL="$SOLR_DOWNLOAD_SERVER/$SOLR_VERSION/$SOLR_BINARY"; \
+ echo "downloading $DOWNLOAD_URL"; \
+ if ! wget -t 10 --max-redirect $MAX_REDIRECTS --retry-connrefused -nv
"$DOWNLOAD_URL" -O "/opt/$SOLR_BINARY"; then rm -f "/opt/$SOLR_BINARY"; fi; \
+ if [ ! -f "/opt/$SOLR_BINARY" ]; then echo "failed download attempt for
$SOLR_BINARY"; exit 1; fi; \
+ echo "$SOLR_SHA512 */opt/$SOLR_BINARY" | sha512sum -c -; \
+ if [ -z "$SKIP_GPG_CHECK" ]; then \
+ # Setup GPG \
+ export GNUPGHOME="/tmp/gnupg_home"; \
+ mkdir -p "$GNUPGHOME"; \
+ chmod 700 "$GNUPGHOME"; \
+ echo "disable-ipv6" >> "$GNUPGHOME/dirmngr.conf"; \
+ if [ -n "$SOLR_KEYS" ]; then \
+ # Install all Solr GPG Keys to start
+ wget -nv "https://downloads.apache.org/solr/KEYS" -O- | \
+ gpg --batch --import --key-origin
'url,https://downloads.apache.org/solr/KEYS'; \
+ # Save just the release key
+ release_keys="$(gpg --batch --export -a ${SOLR_KEYS})"; \
+ rm -rf "$GNUPGHOME"/*; \
+ echo "${release_keys}" | gpg --batch --import; \
+ fi; \
+ # Do GPG Checks
+ echo "downloading $DOWNLOAD_URL.asc"; \
+ wget -nv "$DOWNLOAD_URL.asc" -O "/opt/$SOLR_BINARY.asc"; \
+ (>&2 ls -l "/opt/$SOLR_BINARY" "/opt/$SOLR_BINARY.asc"); \
+ gpg --batch --verify "/opt/$SOLR_BINARY.asc" "/opt/$SOLR_BINARY"; \
+ # Cleanup GPG
+ { command -v gpgconf; gpgconf --kill all || :; }; \
+ rm -r "$GNUPGHOME"; \
+ else \
+ echo "Skipping GPG validation due to non-Apache build"; \
+ fi; \
+ tar -C /opt --extract --preserve-permissions --file "/opt/$SOLR_BINARY"; \
+ rm "/opt/$SOLR_BINARY"*; \
+ apt-get -y remove gpg dirmngr && apt-get -y autoremove;
+
+
+
+LABEL org.opencontainers.image.title="Apache Solr"
+LABEL org.opencontainers.image.description="Solr is the blazing-fast, open
source, multi-modal search platform built on Apache Lucene. It powers
full-text, vector, and geospatial search at many of the world's largest
organizations."
+LABEL org.opencontainers.image.authors="The Apache Solr Project"
+LABEL org.opencontainers.image.url="https://solr.apache.org"
+LABEL org.opencontainers.image.source="https://github.com/apache/solr"
+LABEL org.opencontainers.image.documentation="https://solr.apache.org/guide/"
+LABEL org.opencontainers.image.version="${SOLR_VERSION}"
+LABEL org.opencontainers.image.licenses="Apache-2.0"
+
+ENV SOLR_USER="solr" \
+ SOLR_UID="8983" \
+ SOLR_GROUP="solr" \
+ SOLR_GID="8983" \
+
PATH="/opt/solr/bin:/opt/solr/docker/scripts:/opt/solr/cross-dc-manager/bin:$PATH"
\
+ SOLR_INCLUDE=/etc/default/solr.in.sh \
+ SOLR_HOME=/var/solr/data \
+ SOLR_PID_DIR=/var/solr \
+ SOLR_LOGS_DIR=/var/solr/logs \
+ LOG4J_PROPS=/var/solr/log4j2.xml \
+ SOLR_HOST_BIND="0.0.0.0" \
+ SOLR_ZOOKEEPER_EMBEDDED_HOST="0.0.0.0"
+
+RUN set -ex; \
+ groupadd -r --gid "$SOLR_GID" "$SOLR_GROUP"; \
+ useradd -r --uid "$SOLR_UID" --gid "$SOLR_GID" "$SOLR_USER"
+
+# add symlink to /opt/solr, remove what we don't want.
+# Remove the Dockerfile because it might not represent the dockerfile that was
used to generate the image.
+RUN set -ex; \
+ (cd /opt; ln -s solr-*/ solr); \
+ rm -Rf /opt/solr/docs /opt/solr/docker/Dockerfile;
+
+RUN set -ex; \
+ mkdir -p /opt/solr/server/solr/lib /docker-entrypoint-initdb.d; \
+ cp /opt/solr/bin/solr.in.sh /etc/default/solr.in.sh; \
+ mv /opt/solr/bin/solr.in.sh /opt/solr/bin/solr.in.sh.orig; \
+ mv /opt/solr/bin/solr.in.cmd /opt/solr/bin/solr.in.cmd.orig; \
+ chmod 0664 /etc/default/solr.in.sh; \
+ mkdir -p -m0770 /var/solr; \
+ chown -R "$SOLR_USER:0" /var/solr;
+
+RUN set -ex; \
+ apt-get update; \
+ apt-get -y --no-install-recommends install curl acl lsof procps wget
netcat-openbsd gosu tini jattach; \
+ rm -rf /var/lib/apt/lists/*;
+
+VOLUME /var/solr
+EXPOSE 8983
+WORKDIR /opt/solr
+USER $SOLR_UID
+
+ENTRYPOINT ["docker-entrypoint.sh"]
+CMD ["solr-foreground"]