Public | Automated Build

Last pushed: 16 days ago
Short Description
A container that approximates the solr service used on Pantheon.
Full Description

Lando Pantheon Index

A container that approximates the solr service used on Pantheon.

# Pantheon solr 3.6 index server for Lando
#
# docker build -t kalabox/pantheon-index:3.6 .

FROM debian:jessie

# Versions
ENV SOLR_VERSION 3.6.2

# Build out solr on tomcat7
RUN apt-get update && apt-get -y install \
    curl \
    incron \
    tomcat7 \
    tomcat7-admin \
    libtcnative-1 \
    unzip \
  && cd /tmp && curl -Lk "https://archive.apache.org/dist/lucene/solr/${SOLR_VERSION}/apache-solr-${SOLR_VERSION}.tgz" | tar -zvx \
  && mv /tmp/apache-solr-${SOLR_VERSION}/example/solr /usr/share/solr \
  && unzip /tmp/apache-solr-${SOLR_VERSION}/example/webapps/solr.war -d /usr/share/solr/web \
  && mkdir -p \
    /usr/share/solr/lib \
    /usr/share/solr/data \
    /var/lib/tomcat7/temp \
  && rm /usr/share/solr/conf/schema.xml \
  && ln -s /usr/share/solr/web/index /usr/share/solr/conf/schema.xml \
  && echo "root" >> /etc/incron.allow \
  && echo "/usr/share/solr/web/index IN_MODIFY curl -k https://localhost:449/sites/self/environments/lando/admin/cores?action=RELOAD&core=index" > /var/spool/incron/root \
  && apt-get -y clean \
  && apt-get -y autoclean \
  && apt-get -y autoremove \
  && rm -rf /var/lib/apt/* && rm -rf && rm -rf /var/lib/cache/* && rm -rf /var/lib/log/* && rm -rf /tmp/*

# Copy over our config and scripts
COPY ./start.sh /start.sh
COPY ./index /usr/share/solr/web/index
COPY ./server.xml /etc/tomcat7/server.xml
COPY ./web.xml /etc/tomcat7/web.xml
COPY ./index.xml /etc/tomcat7/Catalina/localhost/sites#self#environments#lando.xml
COPY ./solr.xml /usr/share/solr/solr.xml
COPY ./index /usr/share/solr/web/index
COPY ./solrconfig.xml /usr/share/solr/conf/solrconfig.xml

EXPOSE 449
CMD ["/bin/bash", "/start.sh"]
Docker Pull Command
Owner
kalabox
Source Repository

Comments (0)