#######################################################################
#
# Copyright (c) 2015 Eclipse Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#   Christopher Guindon (Eclipse Foundation) - Initial implementation
#
#######################################################################

FROM solr:5.5
MAINTAINER Christopher Guindon <chris.guindon@eclipse.org>


COPY solr-5.x/ /opt/solr/server/solr/marketplace/conf
COPY solr-5.x/ /opt/solr/server/solr/projects/conf
COPY solr-5.x/ /opt/solr/server/solr/eclipse_user/conf

USER root
RUN chown -R $SOLR_USER:$SOLR_USER /opt/solr/server/solr/projects/
RUN chown -R $SOLR_USER:$SOLR_USER /opt/solr/server/solr/marketplace/
RUN chown -R $SOLR_USER:$SOLR_USER /opt/solr/server/solr/eclipse_user/
USER $SOLR_USER

CMD ["/opt/solr/bin/solr", "-f"]