Skip to content

Commit a1df852

Browse files
authored
SOLR-17353 Remove gosu binary from the Docker image (#4285)
1 parent 37f4acb commit a1df852

4 files changed

Lines changed: 13 additions & 82 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc
2+
title: Remove gosu from the Docker image. The Solr Docker image no longer installs the gosu binary.
3+
type: removed
4+
authors:
5+
- name: Jan Høydahl
6+
links:
7+
- name: SOLR-17353
8+
url: https://issues.apache.org/jira/browse/SOLR-17353

solr/docker/templates/Dockerfile.body.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ RUN set -ex; \
6969

7070
RUN set -ex; \
7171
apt-get update; \
72-
apt-get -y --no-install-recommends install curl acl lsof procps wget netcat-openbsd gosu tini jattach; \
72+
apt-get -y --no-install-recommends install curl acl lsof procps wget netcat-openbsd tini jattach; \
7373
rm -rf /var/lib/apt/lists/*;
7474

7575
VOLUME /var/solr

solr/docker/tests/cases/gosu/test.sh

Lines changed: 0 additions & 81 deletions
This file was deleted.

solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,7 @@ Older segments will continue to be readable.
331331

332332
WARNING: After upgrading to Solr 10.1, downgrading to an earlier Solr 10.0.x version may fail because the older version does not include the `Lucene104` codec needed to read the newly written segments.
333333
If you require the ability to roll back, back up your indexes before upgrading.
334+
335+
=== Docker
336+
337+
The `gosu` binary is no longer installed in the Solr Docker image. See https://github.com/tianon/gosu[gosu github page] for alternatives, such as `runuser`, `setpriv` or `chroot`.

0 commit comments

Comments
 (0)