Skip to content

Commit d585e64

Browse files
committed
RANGER-4898: script and config files organized in image specific directories
1 parent 247d16f commit d585e64

File tree

92 files changed

+110
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+110
-185
lines changed

dev-support/ranger-docker/Dockerfile.ranger

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ ARG TARGETARCH
2626
COPY ./dist/version /home/ranger/dist/
2727
COPY ./dist/ranger-${RANGER_VERSION}-admin.tar.gz /home/ranger/dist/
2828

29-
COPY ./scripts/ranger.sh ${RANGER_SCRIPTS}/
30-
COPY ./scripts/ranger-admin-install-${RANGER_DB_TYPE}.properties ${RANGER_SCRIPTS}/ranger-admin-install.properties
31-
COPY ./scripts/create-ranger-services.py ${RANGER_SCRIPTS}/
32-
COPY ./scripts/core-site.xml ${RANGER_SCRIPTS}/
33-
COPY ./scripts/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
34-
COPY ./config/kdc/krb5.conf /etc/krb5.conf
29+
COPY ./scripts/admin/ranger.sh ${RANGER_SCRIPTS}/
30+
COPY ./scripts/admin/ranger-admin-install-${RANGER_DB_TYPE}.properties ${RANGER_SCRIPTS}/ranger-admin-install.properties
31+
COPY ./scripts/admin/create-ranger-services.py ${RANGER_SCRIPTS}/
32+
COPY ./scripts/hadoop/core-site.xml ${RANGER_SCRIPTS}/
33+
COPY ./scripts/kdc/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
34+
COPY ./scripts/kdc/krb5.conf /etc/krb5.conf
3535

3636
RUN tar xvfz /home/ranger/dist/ranger-${RANGER_VERSION}-admin.tar.gz --directory=${RANGER_HOME} \
3737
&& ln -s ${RANGER_HOME}/ranger-${RANGER_VERSION}-admin ${RANGER_HOME}/admin \

dev-support/ranger-docker/Dockerfile.ranger-build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ ENV PATH=/usr/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/
3737
RUN mkdir -p /home/ranger/git /home/ranger/.m2 && \
3838
chown -R ranger:ranger /home/ranger
3939

40-
COPY ./scripts/ranger-build.sh /home/ranger/scripts/
40+
COPY ./scripts/build/* ${RANGER_SCRIPTS}/
41+
RUN chmod 755 ${RANGER_SCRIPTS}/ranger-build.sh
4142

4243
VOLUME /home/ranger/.m2
43-
VOLUME /home/ranger/scripts
4444
VOLUME /home/ranger/patches
4545
VOLUME /home/ranger/dist
4646
VOLUME /home/ranger/src

dev-support/ranger-docker/Dockerfile.ranger-hadoop

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ COPY ./dist/ranger-${YARN_PLUGIN_VERSION}-yarn-plugin.tar.gz /home/ranger/dist/
3030
COPY ./downloads/hadoop-${HADOOP_VERSION}.tar.gz /home/ranger/dist/
3131
COPY ./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

4545
RUN 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 && \

dev-support/ranger-docker/Dockerfile.ranger-hbase

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ COPY ./dist/version /home/ranger/dis
2626
COPY ./dist/ranger-${HBASE_PLUGIN_VERSION}-hbase-plugin.tar.gz /home/ranger/dist/
2727
COPY ./downloads/hbase-${HBASE_VERSION}-bin.tar.gz /home/ranger/dist/
2828

29-
COPY ./scripts/ranger-hbase-setup.sh /home/ranger/scripts/
30-
COPY ./scripts/ranger-hbase.sh /home/ranger/scripts/
31-
COPY ./scripts/ranger-hbase-plugin-install.properties /home/ranger/scripts/
32-
COPY ./scripts/hbase-site.xml /home/ranger/scripts/
33-
COPY ./scripts/core-site.xml /home/ranger/scripts/
34-
COPY ./scripts/create_principal_and_keytab.sh /home/ranger/scripts/
35-
COPY ./config/kdc/krb5.conf /etc/krb5.conf
29+
COPY ./scripts/hbase/ranger-hbase-setup.sh ${RANGER_SCRIPTS}/
30+
COPY ./scripts/hbase/ranger-hbase.sh ${RANGER_SCRIPTS}/
31+
COPY ./scripts/hbase/ranger-hbase-plugin-install.properties ${RANGER_SCRIPTS}/
32+
COPY ./scripts/hbase/hbase-site.xml ${RANGER_SCRIPTS}/
33+
COPY ./scripts/hadoop/core-site.xml ${RANGER_SCRIPTS}/
34+
COPY ./scripts/kdc/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
35+
COPY ./scripts/kdc/krb5.conf /etc/krb5.conf
3636

3737
RUN tar xvfz /home/ranger/dist/hbase-${HBASE_VERSION}-bin.tar.gz --directory=/opt/ && \
3838
ln -s /opt/hbase-${HBASE_VERSION} /opt/hbase && \
3939
rm -f /home/ranger/dist/hbase-${HBASE_VERSION}-bin.tar.gz && \
4040
tar xvfz /home/ranger/dist/ranger-${HBASE_PLUGIN_VERSION}-hbase-plugin.tar.gz --directory=/opt/ranger && \
4141
ln -s /opt/ranger/ranger-${HBASE_PLUGIN_VERSION}-hbase-plugin /opt/ranger/ranger-hbase-plugin && \
4242
rm -f /home/ranger/dist/ranger-${HBASE_PLUGIN_VERSION}-hbase-plugin.tar.gz && \
43-
cp -f /home/ranger/scripts/ranger-hbase-plugin-install.properties /opt/ranger/ranger-hbase-plugin/install.properties && \
43+
cp -f ${RANGER_SCRIPTS}/ranger-hbase-plugin-install.properties /opt/ranger/ranger-hbase-plugin/install.properties && \
4444
chmod 755 ${RANGER_SCRIPTS}/create_principal_and_keytab.sh && \
4545
chmod 744 ${RANGER_SCRIPTS}/ranger-hbase-setup.sh ${RANGER_SCRIPTS}/ranger-hbase.sh
4646

dev-support/ranger-docker/Dockerfile.ranger-hive

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ COPY ./downloads/postgresql-42.2.16.jre7.jar /home/ranger/dist/
3535
COPY ./downloads/mysql-connector-java-8.0.28.jar /home/ranger/dist/
3636
COPY ./downloads/ojdbc8.jar /home/ranger/dist/
3737

38-
COPY ./scripts/ranger-hive-setup.sh /home/ranger/scripts/
39-
COPY ./scripts/ranger-hive.sh /home/ranger/scripts/
40-
COPY ./scripts/ranger-hive-plugin-install.properties /home/ranger/scripts/
41-
COPY ./scripts/hive-site-${RANGER_DB_TYPE}.xml /home/ranger/scripts/hive-site.xml
42-
COPY ./scripts/core-site.xml /home/ranger/scripts/
43-
COPY ./scripts/create_principal_and_keytab.sh /home/ranger/scripts/
44-
COPY ./config/kdc/krb5.conf /etc/krb5.conf
38+
COPY ./scripts/hive/ranger-hive-setup.sh ${RANGER_SCRIPTS}/
39+
COPY ./scripts/hive/ranger-hive.sh ${RANGER_SCRIPTS}/
40+
COPY ./scripts/hive/ranger-hive-plugin-install.properties ${RANGER_SCRIPTS}/
41+
COPY ./scripts/hive/hive-site-${RANGER_DB_TYPE}.xml ${RANGER_SCRIPTS}/hive-site.xml
42+
COPY ./scripts/hadoop/core-site.xml ${RANGER_SCRIPTS}/
43+
COPY ./scripts/kdc/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
44+
COPY ./scripts/kdc/krb5.conf /etc/krb5.conf
4545

4646
RUN cd /opt && tar xzf /home/ranger/dist/apache-hive-${HIVE_VERSION}-bin.tar.gz && \
4747
ln -s /opt/apache-hive-${HIVE_VERSION}-bin /opt/hive && \
@@ -58,7 +58,7 @@ RUN cd /opt && tar xzf /home/ranger/dist/apache-hive-${HIVE_VERSION}-bin.tar.gz
5858
tar xvfz /home/ranger/dist/ranger-${HIVE_PLUGIN_VERSION}-hive-plugin.tar.gz --directory=/opt/ranger && \
5959
ln -s /opt/ranger/ranger-${HIVE_PLUGIN_VERSION}-hive-plugin /opt/ranger/ranger-hive-plugin && \
6060
rm -f /home/ranger/dist/ranger-${HIVE_PLUGIN_VERSION}-hive-plugin.tar.gz && \
61-
cp -f /home/ranger/scripts/ranger-hive-plugin-install.properties /opt/ranger/ranger-hive-plugin/install.properties && \
61+
cp -f ${RANGER_SCRIPTS}/ranger-hive-plugin-install.properties /opt/ranger/ranger-hive-plugin/install.properties && \
6262
chmod 755 ${RANGER_SCRIPTS}/create_principal_and_keytab.sh && \
6363
chmod 744 ${RANGER_SCRIPTS}/ranger-hive-setup.sh ${RANGER_SCRIPTS}/ranger-hive.sh
6464

dev-support/ranger-docker/Dockerfile.ranger-kafka

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ COPY ./dist/version /home/ranger/dist
2626
COPY ./dist/ranger-${KAFKA_PLUGIN_VERSION}-kafka-plugin.tar.gz /home/ranger/dist/
2727
COPY ./downloads/kafka_2.12-${KAFKA_VERSION}.tgz /home/ranger/dist/
2828

29-
COPY ./scripts/ranger-kafka-setup.sh /home/ranger/scripts/
30-
COPY ./scripts/ranger-kafka.sh /home/ranger/scripts/
31-
COPY ./scripts/ranger-kafka-plugin-install.properties /home/ranger/scripts/
32-
COPY ./scripts/kafka-server-jaas.conf /home/ranger/scripts/
33-
COPY ./scripts/core-site.xml /home/ranger/scripts/
34-
COPY ./scripts/create_principal_and_keytab.sh /home/ranger/scripts/
35-
COPY ./config/kdc/krb5.conf /etc/krb5.conf
29+
COPY ./scripts/kafka/ranger-kafka-setup.sh ${RANGER_SCRIPTS}/
30+
COPY ./scripts/kafka/ranger-kafka.sh ${RANGER_SCRIPTS}/
31+
COPY ./scripts/kafka/ranger-kafka-plugin-install.properties ${RANGER_SCRIPTS}/
32+
COPY ./scripts/kafka/kafka-server-jaas.conf ${RANGER_SCRIPTS}/
33+
COPY ./scripts/hadoop/core-site.xml ${RANGER_SCRIPTS}/
34+
COPY ./scripts/kdc/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
35+
COPY ./scripts/kdc/krb5.conf /etc/krb5.conf
3636

3737
RUN tar xvfz /home/ranger/dist/kafka_2.12-${KAFKA_VERSION}.tgz --directory=/opt/ && \
3838
ln -s /opt/kafka_2.12-${KAFKA_VERSION} /opt/kafka && \
3939
rm -f /home/ranger/dist/kafka_2.12-${KAFKA_VERSION}.tgz && \
4040
tar xvfz /home/ranger/dist/ranger-${KAFKA_PLUGIN_VERSION}-kafka-plugin.tar.gz --directory=/opt/ranger && \
4141
ln -s /opt/ranger/ranger-${KAFKA_PLUGIN_VERSION}-kafka-plugin /opt/ranger/ranger-kafka-plugin && \
4242
rm -f /home/ranger/dist/ranger-${KAFKA_PLUGIN_VERSION}-kafka-plugin.tar.gz && \
43-
cp -f /home/ranger/scripts/ranger-kafka-plugin-install.properties /opt/ranger/ranger-kafka-plugin/install.properties && \
43+
cp -f ${RANGER_SCRIPTS}/ranger-kafka-plugin-install.properties /opt/ranger/ranger-kafka-plugin/install.properties && \
4444
chmod 755 ${RANGER_SCRIPTS}/create_principal_and_keytab.sh && \
4545
chmod 744 ${RANGER_SCRIPTS}/ranger-kafka-setup.sh ${RANGER_SCRIPTS}/ranger-kafka.sh
4646

dev-support/ranger-docker/Dockerfile.ranger-kdc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ RUN apt-get update && \
3131
rm -rf /var/lib/apt/lists/*
3232

3333
# Copy configuration files
34-
COPY config/kdc/krb5.conf /etc/krb5.conf
35-
COPY config/kdc/kdc.conf /etc/krb5kdc/kdc.conf
36-
COPY config/kdc/kadm5.acl /etc/krb5kdc/kadm5.acl
37-
COPY config/kdc/entrypoint.sh /entrypoint.sh
34+
COPY ./scripts/kdc/krb5.conf /etc/krb5.conf
35+
COPY ./scripts/kdc/kdc.conf /etc/krb5kdc/kdc.conf
36+
COPY ./scripts/kdc/kadm5.acl /etc/krb5kdc/kadm5.acl
37+
COPY ./scripts/kdc/entrypoint.sh /entrypoint.sh
38+
3839
RUN chmod +x /entrypoint.sh
3940

4041
EXPOSE 88/tcp 88/udp 749/tcp

dev-support/ranger-docker/Dockerfile.ranger-kms

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ ARG RANGER_DB_TYPE
2525
COPY ./dist/version /home/ranger/dist/
2626
COPY ./dist/ranger-${KMS_VERSION}-kms.tar.gz /home/ranger/dist/
2727

28-
COPY ./scripts/ranger-kms.sh ${RANGER_SCRIPTS}/
29-
COPY ./scripts/ranger-kms-install-${RANGER_DB_TYPE}.properties ${RANGER_SCRIPTS}/ranger-kms-install.properties
30-
COPY ./scripts/core-site.xml ${RANGER_SCRIPTS}/
31-
COPY ./scripts/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
32-
COPY ./config/kdc/krb5.conf /etc/krb5.conf
28+
COPY ./scripts/kms/ranger-kms.sh ${RANGER_SCRIPTS}/
29+
COPY ./scripts/kms/ranger-kms-install-${RANGER_DB_TYPE}.properties ${RANGER_SCRIPTS}/ranger-kms-install.properties
30+
COPY ./scripts/hadoop/core-site.xml ${RANGER_SCRIPTS}/
31+
COPY ./scripts/kdc/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
32+
COPY ./scripts/kdc/krb5.conf /etc/krb5.conf
3333

3434
RUN tar xvfz /home/ranger/dist/ranger-${KMS_VERSION}-kms.tar.gz --directory=${RANGER_HOME} && \
3535
ln -s ${RANGER_HOME}/ranger-${KMS_VERSION}-kms ${RANGER_HOME}/kms && \

dev-support/ranger-docker/Dockerfile.ranger-knox

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@ COPY ./dist/version /home/ranger/dist/
2626
COPY ./dist/ranger-${KNOX_PLUGIN_VERSION}-knox-plugin.tar.gz /home/ranger/dist/
2727
COPY ./downloads/knox-${KNOX_VERSION}.tar.gz /home/ranger/dist/
2828

29-
COPY ./scripts/ranger-knox-setup.sh /home/ranger/scripts/
30-
COPY ./scripts/ranger-knox.sh /home/ranger/scripts/
31-
COPY ./scripts/ranger-knox-plugin-install.properties /home/ranger/scripts/
32-
COPY ./scripts/ranger-knox-expect.py /home/ranger/scripts/
33-
COPY ./scripts/ranger-knox-sandbox.xml /home/ranger/scripts/
34-
COPY ./scripts/create_principal_and_keytab.sh /home/ranger/scripts/
35-
COPY ./config/kdc/krb5.conf /etc/krb5.conf
29+
COPY ./scripts/knox/ranger-knox-setup.sh ${RANGER_SCRIPTS}/
30+
COPY ./scripts/knox/ranger-knox.sh ${RANGER_SCRIPTS}/
31+
COPY ./scripts/knox/ranger-knox-plugin-install.properties ${RANGER_SCRIPTS}/
32+
COPY ./scripts/knox/ranger-knox-expect.py ${RANGER_SCRIPTS}/
33+
COPY ./scripts/knox/ranger-knox-sandbox.xml ${RANGER_SCRIPTS}/
34+
COPY ./scripts/kdc/create_principal_and_keytab.sh ${RANGER_SCRIPTS}/
35+
COPY ./scripts/kdc/krb5.conf /etc/krb5.conf
3636

3737
RUN tar xvfz /home/ranger/dist/knox-${KNOX_VERSION}.tar.gz --directory=/opt/ && \
3838
ln -s /opt/knox-${KNOX_VERSION} /opt/knox && \
3939
rm -f /home/ranger/dist/knox-${KNOX_VERSION}.tar.gz && \
4040
tar xvfz /home/ranger/dist/ranger-${KNOX_PLUGIN_VERSION}-knox-plugin.tar.gz --directory=/opt/ranger && \
4141
ln -s /opt/ranger/ranger-${KNOX_PLUGIN_VERSION}-knox-plugin /opt/ranger/ranger-knox-plugin && \
4242
rm -f /home/ranger/dist/ranger-${KNOX_PLUGIN_VERSION}-knox-plugin.tar.gz && \
43-
cp -f /home/ranger/scripts/ranger-knox-plugin-install.properties /opt/ranger/ranger-knox-plugin/install.properties && \
44-
cp -f /home/ranger/scripts/ranger-knox-sandbox.xml /opt/knox/conf/topologies/sandbox.xml && \
43+
cp -f ${RANGER_SCRIPTS}/ranger-knox-plugin-install.properties /opt/ranger/ranger-knox-plugin/install.properties && \
44+
cp -f ${RANGER_SCRIPTS}/ranger-knox-sandbox.xml /opt/knox/conf/topologies/sandbox.xml && \
4545
chmod 755 ${RANGER_SCRIPTS}/create_principal_and_keytab.sh && \
4646
chmod 744 ${RANGER_SCRIPTS}/ranger-knox-setup.sh ${RANGER_SCRIPTS}/ranger-knox.sh ${RANGER_SCRIPTS}/ranger-knox-expect.py
4747

4848
ENV KNOX_HOME=/opt/knox
4949
ENV PATH=/usr/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/knox/bin
5050

51-
RUN chmod a+rwx /home/ranger/scripts/ranger-knox-expect.py
51+
RUN chmod a+rwx ${RANGER_SCRIPTS}/ranger-knox-expect.py
5252

5353
RUN pip3 install pexpect
54-
RUN python3 /home/ranger/scripts/ranger-knox-expect.py
54+
RUN python3 ${RANGER_SCRIPTS}/ranger-knox-expect.py
5555

5656
ENTRYPOINT [ "/home/ranger/scripts/ranger-knox.sh" ]

dev-support/ranger-docker/Dockerfile.ranger-mysql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ FROM mariadb:${MARIADB_VERSION}
2121
USER 0
2222

2323
RUN mkdir -p /docker-entrypoint-initdb.d /home/mysql
24-
COPY config/init_mysql.sql /docker-entrypoint-initdb.d/
25-
COPY config/my.cnf /home/mysql/.my.cnf
24+
25+
COPY ./scripts/rdbms/init_mysql.sql /docker-entrypoint-initdb.d/
26+
COPY ./scripts/rdbms/my.cnf /home/mysql/.my.cnf
27+
2628
RUN sed -i "s/skip-name-resolve/# skip-name-resolve/" /etc/mysql/mariadb.cnf
2729
RUN chown -R mysql:mysql /docker-entrypoint-initdb.d/ /home/mysql
2830

0 commit comments

Comments
 (0)