-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDockerfile
27 lines (20 loc) · 862 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM solr:6.6
MAINTAINER Jason Dudash "jason.dudash@gmail.com"
USER root
ENV STI_SCRIPTS_PATH=/usr/libexec/s2i
LABEL io.k8s.description="Run SOLR search in OpenShift" \
io.k8s.display-name="SOLR 6.6" \
io.openshift.expose-services="8983:http" \
io.openshift.tags="builder,solr,solr6.6" \
io.openshift.s2i.scripts-url="image:///${STI_SCRIPTS_PATH}"
COPY ./s2i/bin/. ${STI_SCRIPTS_PATH}
RUN chmod -R a+rx ${STI_SCRIPTS_PATH}
# If we need to add files as part of every SOLR conf, they'd go here
# COPY ./solr-config/ /tmp/solr-config
# Give the SOLR directory to root group (not root user)
# https://docs.openshift.org/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines
RUN chgrp -R 0 /opt/solr \
&& chmod -R g+rwX /opt/solr
RUN chgrp -R 0 /opt/docker-solr \
&& chmod -R g+rwX /opt/docker-solr
USER 8983