[ 
https://issues.apache.org/jira/browse/DRILL-7496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006603#comment-17006603
 ] 

ASF GitHub Bot commented on DRILL-7496:
---------------------------------------

paul-rogers commented on pull request #1947: DRILL-7496: Update Dockerfile to 
publish release images under Apache Docker Hub
URL: https://github.com/apache/drill/pull/1947#discussion_r362376801
 
 

 ##########
 File path: Dockerfile
 ##########
 @@ -16,20 +16,28 @@
 # limitations under the License.
 #
 
-FROM centos:7
+# Uses intermediate image for building Drill to reduce target image size
+FROM maven:3.6-jdk-8 as build
 
-# Project version defined in pom.xml is passed as an argument
-ARG VERSION
+# Copy project sources into the container
+COPY . /src
 
-# JDK 8 is a pre-requisite to run Drill ; 'which' package is needed for 
drill-config.sh
-RUN yum install -y java-1.8.0-openjdk-devel which ; yum clean all ; rm -rf 
/var/cache/yum
+WORKDIR /src
 
-# The drill tarball is generated upon building the Drill project
-COPY target/apache-drill-$VERSION.tar.gz /tmp
+# Builds Drill
+RUN  mvn clean install -DskipTests -q
 
 Review comment:
   Do we want to build Drill in the container? Would seem more 
reliable/repeatable to use a fixed release.
   
   In my experience, we often need to tweak Dockerfiles for specific needs. In 
that case, reusing the same Drill image on each build, rather than building a 
new image, makes the process more stable. Plus, we don't end up with an entire 
build in the Docker file system.
   
   We could have a separate development image if the purpose of this is to 
allow that use case.
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Update Dockerfile to publish release images under Apache Docker Hub
> -------------------------------------------------------------------
>
>                 Key: DRILL-7496
>                 URL: https://issues.apache.org/jira/browse/DRILL-7496
>             Project: Apache Drill
>          Issue Type: Task
>    Affects Versions: 1.17.0
>            Reporter: Vova Vysotskyi
>            Assignee: Vova Vysotskyi
>            Priority: Major
>             Fix For: 1.18.0
>
>
> Update Dockerfile to use built release archive by default for images and 
> publish images under Apache Docker Hub.
> Once Dockerfile is updated, we should ask INFRA to add a hook for publishing 
> release images automatically one release tag is created. As an example may be 
> used this Jira: https://issues.apache.org/jira/browse/INFRA-13838.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to