You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "cdmikechen (via GitHub)" <gi...@apache.org> on 2023/03/14 23:46:39 UTC

[GitHub] [hive] cdmikechen commented on a diff in pull request #3448: HIVE-26400: Provide docker images for Hive

cdmikechen commented on code in PR #3448:
URL: https://github.com/apache/hive/pull/3448#discussion_r1136361572


##########
packaging/src/docker/Dockerfile:
##########
@@ -0,0 +1,54 @@
+#
+# 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.
+#
+
+FROM openjdk:8-jre
+
+ARG HADOOP_VERSION
+ARG HIVE_VERSION
+ARG TEZ_VERSION
+
+# Install dependencies
+RUN set -ex; \
+  apt-get update; \
+  apt-get -y install curl; \
+  apt-get -y install procps; \
+  rm -rf /var/lib/apt/lists/*
+
+COPY hadoop-$HADOOP_VERSION.tar.gz /opt
+COPY apache-hive-$HIVE_VERSION-bin.tar.gz /opt
+COPY apache-tez-$TEZ_VERSION-bin.tar.gz /opt
+
+RUN tar -xzvf /opt/hadoop-$HADOOP_VERSION.tar.gz -C /opt/ && \

Review Comment:
   If we just copy and decompress these files, I think the docker image will be too large.
   My suggestion is whether we can do a multi-phase build and then copy the final files?



-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org