mneethiraj commented on code in PR #733:
URL: https://github.com/apache/ranger/pull/733#discussion_r2719834494


##########
dev-support/ranger-docker/Dockerfile.ranger-solr:
##########
@@ -14,43 +14,32 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+ARG RANGER_BASE_IMAGE
+ARG RANGER_BASE_VERSION
 ARG SOLR_VERSION
+FROM ${RANGER_BASE_IMAGE}:${RANGER_BASE_VERSION} AS ranger-base
 FROM solr:${SOLR_VERSION}
 
 ARG SOLR_PLUGIN_VERSION
 
-VOLUME /etc/keytabs
-
-USER 0
+USER root
 
 RUN apt update && DEBIAN_FRONTEND="noninteractive" apt-get install -y krb5-user
 
-# Copy audit config set
-RUN mkdir -p /opt/solr/server/solr/configsets/ranger_audits/conf 
/home/ranger/scripts
-
-COPY ./scripts/solr/solr-ranger_audits/* 
/opt/solr/server/solr/configsets/ranger_audits/conf/
-COPY ./scripts/solr/solr-jaas.conf       /opt/solr/server/etc/jaas.conf
-COPY ./scripts/solr/solr-security.json   /var/solr/data/security.json
-COPY ./scripts/solr/ranger-solr.sh       /home/ranger/scripts/
-COPY ./scripts/wait_for_keytab.sh        /home/ranger/scripts/
-COPY ./scripts/wait_for_testusers_keytab.sh   /home/ranger/scripts/
-COPY ./scripts/kdc/krb5.conf             /etc/krb5.conf
-
+RUN mkdir -p /opt/solr/server/solr/configsets/ranger_audits/conf 
/opt/ranger/krb /home/ranger/dist /home/ranger/scripts

Review Comment:
   Where is  the directory`/opt/ranger/krb` used?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to