[ 
https://issues.apache.org/jira/browse/HADOOP-17465?focusedWorklogId=535600&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-535600
 ]

ASF GitHub Bot logged work on HADOOP-17465:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Jan/21 18:13
            Start Date: 13/Jan/21 18:13
    Worklog Time Spent: 10m 
      Work Description: GauthamBanasandra commented on a change in pull request 
#2613:
URL: https://github.com/apache/hadoop/pull/2613#discussion_r556729109



##########
File path: dev-support/docker/Dockerfile
##########
@@ -91,38 +95,20 @@ ENV MAVEN_HOME /usr
 # JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
 ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
 ENV FINDBUGS_HOME /usr
+ENV PROTOBUF_HOME /opt/protobuf
+ENV PATH "${PATH}:/opt/protobuf/bin"
 
-#######
-# Install Boost 1.72 (1.65 ships with Bionic)
-#######
-# hadolint ignore=DL3003
-RUN mkdir -p /opt/boost-library \
-    && curl -L 
https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2/download
 > boost_1_72_0.tar.bz2 \
-    && mv boost_1_72_0.tar.bz2 /opt/boost-library \
-    && cd /opt/boost-library \
-    && tar --bzip2 -xf boost_1_72_0.tar.bz2 \
-    && cd /opt/boost-library/boost_1_72_0 \
-    && ./bootstrap.sh --prefix=/usr/ \
-    && ./b2 --without-python install \
-    && cd /root \
-    && rm -rf /opt/boost-library
-
-######
-# Install Google Protobuf 3.7.1 (3.0.0 ships with Bionic)
-######
+####
+# Install pip (deprecated from Focal toolchain)
+####
 # hadolint ignore=DL3003
-RUN mkdir -p /opt/protobuf-src \
-    && curl -L -s -S \
-      
https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz
 \
-      -o /opt/protobuf.tar.gz \
-    && tar xzf /opt/protobuf.tar.gz --strip-components 1 -C /opt/protobuf-src \
-    && cd /opt/protobuf-src \
-    && ./configure --prefix=/opt/protobuf \
-    && make install \
+RUN mkdir -p /opt/pip \

Review comment:
       As mentioned in this stackoverflow post - 
https://askubuntu.com/questions/1242684/python-pip-package-disappeared-in-ubuntu-20-04,
 python2-pip is deprecated in Focal and thus, we need to install is separately
   
   Also, I couldn't find python2-pip in the Focal packages - 
https://packages.ubuntu.com/focal/allpackages?format=txt.gz




----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 535600)
    Time Spent: 3h 50m  (was: 3h 40m)

> Update Dockerfile to use Focal
> ------------------------------
>
>                 Key: HADOOP-17465
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17465
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build, test
>    Affects Versions: 3.4.0
>         Environment: Ubuntu
>            Reporter: Gautham Banasandra
>            Assignee: Gautham Banasandra
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> Referring to the current Dockerfile, it seems like the toolchain provided by 
> Ubuntu Bionic isn't on track with the versions of the libraries that are 
> needed. Thus, we are separately installing Boost and other libraries (gcc-9 
> and CMake 3.19 needed by HDFS-15740). All these won't be necessary if we 
> upgrade to Focal as these library versions are part of the Focal toolchain 
> itself.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to