Skip to content

Commit

Permalink
Try out the solr script to create directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Ragas committed Feb 19, 2024
1 parent 0ff946c commit 676bb6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions solr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ ARG VERSION=latest
ARG CONFIG_VERSION=9

FROM solr:$VERSION
RUN mkdir -p /var/solr/data /var/solr/logs; \
(cd /opt/solr/server/solr; cp solr.xml zoo.cfg /var/solr/data/); \
cp /opt/solr/server/resources/log4j2.xml /var/solr/log4j2.xml; \
find /var/solr -type d -print0 | xargs -0 chmod 0770; \
find /var/solr -type f -print0 | xargs -0 chmod 0660;
#RUN mkdir -p /var/solr/data /var/solr/logs; \
# (cd /opt/solr/server/solr; cp solr.xml zoo.cfg /var/solr/data/); \
# cp /opt/solr/server/resources/log4j2.xml /var/solr/log4j2.xml; \
# find /var/solr -type d -print0 | xargs -0 chmod 0770; \
# find /var/solr -type f -print0 | xargs -0 chmod 0660;

ARG CONFIG_VERSION

ADD config-"${CONFIG_VERSION}" /solr-conf/conf

ENTRYPOINT ["solr-precreate", "drupal", "/solr-conf"]
ENTRYPOINT ["init-var-solr", "solr-precreate", "drupal", "/solr-conf"]
10 changes: 5 additions & 5 deletions tugboat-solr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ ARG VERSION=latest
ARG CONFIG_VERSION=9

FROM tugboatqa/solr:$VERSION
RUN mkdir -p /var/solr/data /var/solr/logs; \
(cd /opt/solr/server/solr; cp solr.xml zoo.cfg /var/solr/data/); \
cp /opt/solr/server/resources/log4j2.xml /var/solr/log4j2.xml; \
find /var/solr -type d -print0 | xargs -0 chmod 0770; \
find /var/solr -type f -print0 | xargs -0 chmod 0660;
#RUN mkdir -p /var/solr/data /var/solr/logs; \
# (cd /opt/solr/server/solr; cp solr.xml zoo.cfg /var/solr/data/); \
# cp /opt/solr/server/resources/log4j2.xml /var/solr/log4j2.xml; \
# find /var/solr -type d -print0 | xargs -0 chmod 0770; \
# find /var/solr -type f -print0 | xargs -0 chmod 0660;

ARG CONFIG_VERSION

Expand Down

0 comments on commit 676bb6e

Please sign in to comment.