kumaab commented on code in PR #8:
URL: https://github.com/apache/ranger-tools/pull/8#discussion_r2886715009


##########
release/Dockerfile.ranger:
##########
@@ -0,0 +1,52 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+ARG RANGER_DB_TYPE=postgres
+ARG RANGER_BASE_IMAGE=apache/ranger-base
+ARG RANGER_BASE_VERSION=20260123-2-8
+
+FROM ${RANGER_BASE_IMAGE}:${RANGER_BASE_VERSION} AS ranger
+
+ARG RANGER_VERSION
+ARG RANGER_DB_TYPE
+ARG TARGETARCH
+
+# Download released Ranger Admin Tarball
+COPY ./scripts/download-ranger.sh                                
${RANGER_SCRIPTS}/
+RUN chmod +x ${RANGER_SCRIPTS}/download-ranger.sh
+RUN ${RANGER_SCRIPTS}/download-ranger.sh
+
+COPY ./scripts/ranger.sh                                         
${RANGER_SCRIPTS}/
+COPY ./scripts/ranger-admin-install-${RANGER_DB_TYPE}.properties 
${RANGER_SCRIPTS}/ranger-admin-install.properties
+COPY ./scripts/create-ranger-services.py                         
${RANGER_SCRIPTS}/
+
+RUN    tar xvfz dist/ranger-${RANGER_VERSION}-admin.tar.gz 
--directory=${RANGER_HOME} \
+    && ln -s ${RANGER_HOME}/ranger-${RANGER_VERSION}-admin 
${RANGER_HOME}/admin \
+    && cp -f ${RANGER_SCRIPTS}/ranger-admin-install.properties 
${RANGER_HOME}/admin/install.properties \
+    && mkdir -p /var/run/ranger \
+    && mkdir -p /var/log/ranger \
+    && chown -R ranger:ranger ${RANGER_HOME}/admin/ ${RANGER_SCRIPTS}/ 
/var/run/ranger/ /var/log/ranger/ \
+    && chmod 755 ${RANGER_SCRIPTS}/ranger.sh 
${RANGER_SCRIPTS}/create-ranger-services.py \
+    && mkdir -p /usr/share/java/
+
+FROM ranger AS ranger_postgres
+COPY ./downloads/postgresql-42.2.16.jre7.jar      /home/ranger/dist/
+RUN mv /home/ranger/dist/postgresql-42.2.16.jre7.jar 
/usr/share/java/postgresql.jar

Review Comment:
   That's right, removed it.



##########
release/Dockerfile.ranger-postgres:
##########
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ARG POSTGRES_VERSION=13.16
+FROM postgres:${POSTGRES_VERSION}
+
+# Copy DB init script
+USER 0
+
+RUN  mkdir -p /docker-entrypoint-initdb.d
+
+COPY ./scripts/rdbms/init_postgres.sh /docker-entrypoint-initdb.d/
+
+RUN chown -R postgres:postgres /docker-entrypoint-initdb.d/
+
+ENV POSTGRES_PASSWORD=rangerR0cks!

Review Comment:
   done



-- 
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