Agirish opened a new pull request #1348: DRILL-6346: Create an Official Drill 
Docker Container
URL: https://github.com/apache/drill/pull/1348
 
 
   Added apache-release profile in distribution/pom.xml to build a Docker image 
once the project is built successfully. While the Docker image can be built 
anytime, I assumed that an official Docker image would only be generated during 
the release. 
   
   This requires having Docker configured on your environment (tested with 
Docker for Mac). 
   Usage: 
   Build the project by specifying the apache-release profile
   `$ mvn clean install -Papache-release -DskipTests`
   
   List the docker image 
   ```
   $ docker images
   REPOSITORY                  TAG                 IMAGE ID            CREATED  
           SIZE
   drill/apache-drill-centos   1.14.0-SNAPSHOT     7b2f4544c0fd        11 
minutes ago      1.35GB
   centos                      6.6                 3d7ac13b921a        7 months 
ago        203MB
   ```
   Start the Docker container in a new tab
   `$ docker run -i -t drill/apache-drill-centos:1.14.0-SNAPSHOT /bin/bash`
   
   List the containers 
   ```
   $ docker ps
   CONTAINER ID        IMAGE                                       COMMAND      
            CREATED             STATUS              PORTS               NAMES
   42d9fd118198        drill/apache-drill-centos:1.14.0-SNAPSHOT   "/bin/sh -c 
/usr/bin…"   10 seconds ago      Up 21 seconds                           
confident_mcclintock
   ```
   Connect to the Drill container
   ```
   $ docker exec -it 42d9fd118198 bash
   
   # /opt/drill/bin/drill-embedded 
   Jun 28, 2018 6:25:24 PM org.glassfish.jersey.server.ApplicationHandler 
initialize
   INFO: Initiating Jersey application, version Jersey: 2.8 2014-04-29 
01:25:26...
   apache drill 1.14.0-SNAPSHOT 
   "what ever the mind of man can conceive and believe, drill can query"
   0: jdbc:drill:zk=local> select * from sys.version;
   
+------------------+-------------------------------------------+----------------------------------------+----------------------------+---------------------+----------------------------+
   |     version      |                 commit_id                 |             
commit_message             |        commit_time         |     build_email     | 
        build_time         |
   
+------------------+-------------------------------------------+----------------------------------------+----------------------------+---------------------+----------------------------+
   | 1.14.0-SNAPSHOT  | ff7ff02626600de4f618c514afc960b71958eb3f  | Initial 
commit for Drill Docker image  | 25.06.2018 @ 13:01:04 PDT  | 
[email protected]  | 28.06.2018 @ 09:48:23 PDT  |
   
+------------------+-------------------------------------------+----------------------------------------+----------------------------+---------------------+----------------------------+
   1 row selected (3.179 seconds)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to