GauthamBanasandra commented on a change in pull request #3043: URL: https://github.com/apache/hadoop/pull/3043#discussion_r641623791
########## File path: dev-support/docker/pkg-resolver/install-common-pkgs.sh ########## @@ -0,0 +1,98 @@ +#!/usr/bin/env bash + +# 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. + +####### +# Install SpotBugs 4.2.2 +####### +mkdir -p /opt/spotbugs && + curl -L -s -S https://github.com/spotbugs/spotbugs/releases/download/4.2.2/spotbugs-4.2.2.tgz \ + -o /opt/spotbugs.tgz && + tar xzf /opt/spotbugs.tgz --strip-components 1 -C /opt/spotbugs && + chmod +x /opt/spotbugs/bin/* + +####### +# Install Boost 1.72 (1.71 ships with Focal) +####### +# hadolint ignore=DL3003 +mkdir -p /opt/boost-library && Review comment: So, I'm thinking something like this - I'll create a `.sh` file for each dependency ``` pkg-resolver / | install-boost.sh | install-protobuf.sh . . ``` In the `Dockerfile`, we'll do something like - ``` RUN pkg-resolver/install-boost.sh ubuntu:focal <optional_version_arg> ``` The `<optional_version_arg>` if not specified uses whatever's the default version for that package (for Boost, it's 1.72). -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
