File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,21 @@ COPY scripts/docksal-preinit /scripts/docksal-preinit
16
16
17
17
RUN set -xe; \
18
18
apt-get update && \
19
- apt-get -y install sudo; \
19
+ apt-get -y install sudo net-tools ; \
20
20
echo "solr ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/solr; \
21
21
rm -rf /var/lib/apt/lists/*
22
22
23
23
RUN set -xe; \
24
24
ln -s /opt/solr/dist /opt/dist; \
25
25
ln -s /opt/solr/contrib /opt/contrib; \
26
- if [[ "$VERSION" =~ "9" ]]; then \
26
+ MAJOR_VERSION=$(echo "${VERSION}" | cut -d. -f1); \
27
+ if [ "${MAJOR_VERSION}" = "9" ]; then \
27
28
# Needed for 9.x and above
28
29
sed -i '/exec "$@"/i . docksal-preinit' /opt/solr/docker/scripts/docker-entrypoint.sh; \
29
30
mv /scripts/healthcheck.sh /scripts/docksal-preinit /opt/solr/docker/scripts/; \
30
31
chown -R solr:solr /opt/solr/docker /opt/solr/server/solr; \
31
32
fi; \
32
- if [[ "$VERSION " =~ "8" ] ]; then \
33
+ if [ "${MAJOR_VERSION} " = "8" ]; then \
33
34
# Needed for 8.x and below
34
35
sed -i '/exec "$@"/i . docksal-preinit' /opt/docker-solr/scripts/docker-entrypoint.sh; \
35
36
mv /scripts/healthcheck.sh /scripts/docksal-preinit /opt/docker-solr/scripts/; \
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ DOCKER ?= docker
7
7
# See https://docs.docker.com/buildx/working-with-buildx/
8
8
DOCKER_BUILDKIT =1
9
9
10
- VERSION ?= 8.1.1
11
- FROM ?= solr:8.1.1 -slim
10
+ VERSION ?= 8.11.3
11
+ FROM ?= solr:8.11.3 -slim
12
12
TAG ?= $(VERSION )
13
13
14
14
IMAGE ?= docksal/solr
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
- [[ " $( netstat -an | grep LISTEN | grep -E ' 0.0.0.0 :8983.*LISTEN' ) " == " " ]] && exit 1
3
+ [[ " $( netstat -ant | grep LISTEN | grep -E ' * :8983.*LISTEN' ) " == " " ]] && exit 1
4
4
5
5
exit 0
You can’t perform that action at this time.
0 commit comments