@@ -30,17 +30,17 @@ COPY ./dist/ranger-${YARN_PLUGIN_VERSION}-yarn-plugin.tar.gz /home/ranger/dist/
3030COPY ./downloads/hadoop-${HADOOP_VERSION}.tar.gz /home/ranger/dist/
3131COPY ./downloads/apache-tez-${TEZ_VERSION}-bin.tar.gz /home/ranger/dist/
3232
33- COPY ./scripts/ranger-hadoop-setup.sh /home/ranger/scripts /
34- COPY ./scripts/ranger-hadoop.sh /home/ranger/scripts /
35- COPY ./scripts/ranger-hadoop-mkdir.sh /home/ranger/scripts /
36- COPY ./scripts/ranger-hadoop-healthcheck.sh /home/ranger/scripts /
37- COPY ./scripts/ranger-hdfs-plugin-install.properties /home/ranger/scripts /
38- COPY ./scripts/ranger-yarn-plugin-install.properties /home/ranger/scripts /
39- COPY ./scripts/core-site.xml /home/ranger/scripts /
40- COPY ./scripts/hdfs-site.xml /home/ranger/scripts /
41- COPY ./scripts/yarn-site.xml /home/ranger/scripts /
42- COPY ./scripts/create_principal_and_keytab.sh /home/ranger/scripts /
43- COPY ./config /kdc/krb5.conf /etc/krb5.conf
33+ COPY ./scripts/hadoop/ ranger-hadoop-setup.sh ${RANGER_SCRIPTS} /
34+ COPY ./scripts/hadoop/ ranger-hadoop.sh ${RANGER_SCRIPTS} /
35+ COPY ./scripts/hadoop/ ranger-hadoop-mkdir.sh ${RANGER_SCRIPTS} /
36+ COPY ./scripts/hadoop/ ranger-hadoop-healthcheck.sh ${RANGER_SCRIPTS} /
37+ COPY ./scripts/hadoop/ ranger-hdfs-plugin-install.properties ${RANGER_SCRIPTS} /
38+ COPY ./scripts/hadoop/ ranger-yarn-plugin-install.properties ${RANGER_SCRIPTS} /
39+ COPY ./scripts/hadoop/ core-site.xml ${RANGER_SCRIPTS} /
40+ COPY ./scripts/hadoop/ hdfs-site.xml ${RANGER_SCRIPTS} /
41+ COPY ./scripts/hadoop/ yarn-site.xml ${RANGER_SCRIPTS} /
42+ COPY ./scripts/kdc/ create_principal_and_keytab.sh ${RANGER_SCRIPTS} /
43+ COPY ./scripts /kdc/krb5.conf /etc/krb5.conf
4444
4545RUN tar xvfz /home/ranger/dist/hadoop-${HADOOP_VERSION}.tar.gz --directory=/opt/ && \
4646 ln -s /opt/hadoop-${HADOOP_VERSION} /opt/hadoop && \
@@ -51,11 +51,11 @@ RUN tar xvfz /home/ranger/dist/hadoop-${HADOOP_VERSION}.tar.gz --directory=/opt/
5151 tar xvfz /home/ranger/dist/ranger-${HDFS_PLUGIN_VERSION}-hdfs-plugin.tar.gz --directory=/opt/ranger && \
5252 ln -s /opt/ranger/ranger-${HDFS_PLUGIN_VERSION}-hdfs-plugin /opt/ranger/ranger-hdfs-plugin && \
5353 rm -f /home/ranger/dist/ranger-${HDFS_PLUGIN_VERSION}-hdfs-plugin.tar.gz && \
54- cp -f /home/ranger/scripts /ranger-hdfs-plugin-install.properties /opt/ranger/ranger-hdfs-plugin/install.properties && \
54+ cp -f ${RANGER_SCRIPTS} /ranger-hdfs-plugin-install.properties /opt/ranger/ranger-hdfs-plugin/install.properties && \
5555 tar xvfz /home/ranger/dist/ranger-${YARN_PLUGIN_VERSION}-yarn-plugin.tar.gz --directory=/opt/ranger && \
5656 ln -s /opt/ranger/ranger-${YARN_PLUGIN_VERSION}-yarn-plugin /opt/ranger/ranger-yarn-plugin && \
5757 rm -f /home/ranger/dist/ranger-${YARN_PLUGIN_VERSION}-yarn-plugin.tar.gz && \
58- cp -f /home/ranger/scripts /ranger-yarn-plugin-install.properties /opt/ranger/ranger-yarn-plugin/install.properties && \
58+ cp -f ${RANGER_SCRIPTS} /ranger-yarn-plugin-install.properties /opt/ranger/ranger-yarn-plugin/install.properties && \
5959 chmod 744 ${RANGER_SCRIPTS}/ranger-hadoop-setup.sh ${RANGER_SCRIPTS}/ranger-hadoop.sh ${RANGER_SCRIPTS}/ranger-hadoop-mkdir.sh && \
6060 useradd -g hadoop -ms /bin/bash healthcheck && \
6161 chmod 744 ${RANGER_SCRIPTS}/ranger-hadoop-healthcheck.sh && \
0 commit comments