-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-17465. Upgrade to Focal #2613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+46
−59
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b9a44de
HADOOP-17465. Upgrade to Focal
GauthamBanasandra 23f9922
Install python-pip separately
GauthamBanasandra 8085cb5
Use Boost from Focal toolchain
GauthamBanasandra fda981a
Use Java protobuf from Focal toolchain
GauthamBanasandra ad8f707
Use nodejs from Focal toolchain
GauthamBanasandra b659d6f
Use node-yarn from Focal toolchain
GauthamBanasandra a59bf66
Use hugo from Focal toolchain
GauthamBanasandra 013ead2
Use npm from Focal toolchain
GauthamBanasandra 37ae7b1
Add comment for pip
GauthamBanasandra e7b5b23
Update docker aarch64 to use Focal
GauthamBanasandra d16aea4
Touch files to run tests
GauthamBanasandra b91b923
Downgrade Boost version to 1.71.0
GauthamBanasandra 3076f21
Touch file to build
GauthamBanasandra b1d2f16
Install Boost separately
GauthamBanasandra 72b4ac2
Revert "Use Java protobuf from Focal toolchain"
GauthamBanasandra 76f3616
Revert "Touch files to run tests"
GauthamBanasandra 6027c1f
Install Java Protobuf for aarch64
GauthamBanasandra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
|
|
||
| # 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 | ||
|
|
@@ -18,7 +17,7 @@ | |
| # Dockerfile for installing the necessary dependencies for building Hadoop. | ||
| # See BUILDING.txt. | ||
|
|
||
| FROM ubuntu:bionic | ||
| FROM ubuntu:focal | ||
|
|
||
| WORKDIR /root | ||
|
|
||
|
|
@@ -51,6 +50,7 @@ RUN apt-get -q update \ | |
| gcc \ | ||
| git \ | ||
| gnupg-agent \ | ||
| hugo \ | ||
| libbcprov-java \ | ||
| libbz2-dev \ | ||
| libcurl4-openssl-dev \ | ||
|
|
@@ -65,16 +65,17 @@ RUN apt-get -q update \ | |
| locales \ | ||
| make \ | ||
| maven \ | ||
| nodejs \ | ||
| node-yarn \ | ||
| npm \ | ||
| openjdk-11-jdk \ | ||
| openjdk-8-jdk \ | ||
| pinentry-curses \ | ||
| pkg-config \ | ||
| python \ | ||
| python2.7 \ | ||
| python-pip \ | ||
| python-pkg-resources \ | ||
| python-setuptools \ | ||
| python-wheel \ | ||
| rsync \ | ||
| shellcheck \ | ||
| software-properties-common \ | ||
|
|
@@ -93,7 +94,7 @@ ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |
| ENV FINDBUGS_HOME /usr | ||
|
|
||
| ####### | ||
| # Install Boost 1.72 (1.65 ships with Bionic) | ||
| # Install Boost 1.72 (1.71 ships with Focal) | ||
| ####### | ||
| # hadolint ignore=DL3003 | ||
| RUN mkdir -p /opt/boost-library \ | ||
|
|
@@ -107,8 +108,20 @@ RUN mkdir -p /opt/boost-library \ | |
| && cd /root \ | ||
| && rm -rf /opt/boost-library | ||
|
|
||
| #### | ||
| # Install pip (deprecated from Focal toolchain) | ||
| #### | ||
| # hadolint ignore=DL3003 | ||
| RUN mkdir -p /opt/pip \ | ||
GauthamBanasandra marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| && curl -L https://bootstrap.pypa.io/get-pip.py > get-pip.py \ | ||
| && mv get-pip.py /opt/pip \ | ||
| && cd /opt/pip \ | ||
| && python2.7 get-pip.py \ | ||
| && cd /root \ | ||
| && rm -rf /opt/pip | ||
|
|
||
| ###### | ||
| # Install Google Protobuf 3.7.1 (3.0.0 ships with Bionic) | ||
| # Install Google Protobuf 3.7.1 (3.6.1 ships with Focal) | ||
| ###### | ||
| # hadolint ignore=DL3003 | ||
| RUN mkdir -p /opt/protobuf-src \ | ||
|
|
@@ -139,25 +152,11 @@ RUN pip2 install \ | |
| #### | ||
| RUN pip2 install python-dateutil==2.7.3 | ||
|
|
||
| ### | ||
| # Install node.js 10.x for web UI framework (4.2.6 ships with Xenial) | ||
| ### | ||
| # hadolint ignore=DL3008 | ||
| RUN curl -L -s -S https://deb.nodesource.com/setup_10.x | bash - \ | ||
| && apt-get install -y --no-install-recommends nodejs \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && npm install -g [email protected] | ||
|
|
||
| ### | ||
| ## Install Yarn 1.22.5 for web UI framework | ||
| #### | ||
| RUN curl -s -S https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
| && echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \ | ||
| && apt-get -q update \ | ||
| && apt-get install -y --no-install-recommends yarn=1.22.5-1 \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
| # Install bower | ||
| #### | ||
| # hadolint ignore=DL3008 | ||
| RUN npm install -g [email protected] | ||
|
|
||
| ### | ||
| # Install hadolint | ||
|
|
@@ -203,12 +202,6 @@ ENV HADOOP_SKIP_YETUS_VERIFICATION true | |
| # YETUS CUT HERE | ||
| ### | ||
|
|
||
| # Hugo static website generator for new hadoop site | ||
| RUN curl -L -o hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.58.3/hugo_0.58.3_Linux-64bit.deb \ | ||
| && dpkg --install hugo.deb \ | ||
| && rm hugo.deb | ||
|
|
||
|
|
||
| # Add a welcome message and environment checks. | ||
| COPY hadoop_env_checks.sh /root/hadoop_env_checks.sh | ||
| RUN chmod 755 /root/hadoop_env_checks.sh | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |
| # Dockerfile for installing the necessary dependencies for building Hadoop. | ||
| # See BUILDING.txt. | ||
|
|
||
| FROM ubuntu:bionic | ||
| FROM ubuntu:focal | ||
|
|
||
| WORKDIR /root | ||
|
|
||
|
|
@@ -54,6 +54,7 @@ RUN apt-get -q update \ | |
| gcc \ | ||
| git \ | ||
| gnupg-agent \ | ||
| hugo \ | ||
| libbcprov-java \ | ||
| libbz2-dev \ | ||
| libcurl4-openssl-dev \ | ||
|
|
@@ -68,16 +69,17 @@ RUN apt-get -q update \ | |
| locales \ | ||
| make \ | ||
| maven \ | ||
| nodejs \ | ||
| node-yarn \ | ||
| npm \ | ||
| openjdk-11-jdk \ | ||
| openjdk-8-jdk \ | ||
| pinentry-curses \ | ||
| pkg-config \ | ||
| python \ | ||
| python2.7 \ | ||
| python-pip \ | ||
| python-pkg-resources \ | ||
| python-setuptools \ | ||
| python-wheel \ | ||
| rsync \ | ||
| shellcheck \ | ||
| software-properties-common \ | ||
|
|
@@ -96,7 +98,7 @@ ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-arm64 | |
| ENV FINDBUGS_HOME /usr | ||
|
|
||
| ####### | ||
| # Install Boost 1.72 (1.65 ships with Bionic) | ||
| # Install Boost 1.72 (1.71 ships with Focal) | ||
| ####### | ||
| # hadolint ignore=DL3003 | ||
| RUN mkdir -p /opt/boost-library \ | ||
|
|
@@ -110,8 +112,20 @@ RUN mkdir -p /opt/boost-library \ | |
| && cd /root \ | ||
| && rm -rf /opt/boost-library | ||
|
|
||
| #### | ||
| # Install pip (deprecated from Focal toolchain) | ||
| #### | ||
| # hadolint ignore=DL3003 | ||
| RUN mkdir -p /opt/pip \ | ||
| && curl -L https://bootstrap.pypa.io/get-pip.py > get-pip.py \ | ||
| && mv get-pip.py /opt/pip \ | ||
| && cd /opt/pip \ | ||
| && python2.7 get-pip.py \ | ||
| && cd /root \ | ||
| && rm -rf /opt/pip | ||
|
|
||
| ###### | ||
| # Install Google Protobuf 3.7.1 (3.0.0 ships with Bionic) | ||
| # Install Google Protobuf 3.7.1 (3.6.1 ships with Focal) | ||
| ###### | ||
| # hadolint ignore=DL3003 | ||
| RUN mkdir -p /opt/protobuf-src \ | ||
|
|
@@ -142,25 +156,11 @@ RUN pip2 install \ | |
| #### | ||
| RUN pip2 install python-dateutil==2.7.3 | ||
|
|
||
| ### | ||
| # Install node.js 10.x for web UI framework (4.2.6 ships with Xenial) | ||
| ### | ||
| # hadolint ignore=DL3008 | ||
| RUN curl -L -s -S https://deb.nodesource.com/setup_10.x | bash - \ | ||
| && apt-get install -y --no-install-recommends nodejs \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && npm install -g [email protected] | ||
|
|
||
| ### | ||
| ## Install Yarn 1.22.5 for web UI framework | ||
| #### | ||
| RUN curl -s -S https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
| && echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \ | ||
| && apt-get -q update \ | ||
| && apt-get install -y --no-install-recommends yarn=1.22.5-1 \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
| # Install bower | ||
| #### | ||
| # hadolint ignore=DL3008 | ||
| RUN npm install -g [email protected] | ||
|
|
||
| ### | ||
| # Install phantomjs built for aarch64 | ||
|
|
@@ -187,12 +187,6 @@ ENV HADOOP_SKIP_YETUS_VERIFICATION true | |
| # YETUS CUT HERE | ||
| ### | ||
|
|
||
| # Hugo static website generator (for new hadoop site docs) | ||
| RUN curl -L -o hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.58.3/hugo_0.58.3_Linux-ARM64.deb \ | ||
| && dpkg --install hugo.deb \ | ||
| && rm hugo.deb | ||
|
|
||
|
|
||
| # Add a welcome message and environment checks. | ||
| COPY hadoop_env_checks.sh /root/hadoop_env_checks.sh | ||
| RUN chmod 755 /root/hadoop_env_checks.sh | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.