Skip to content

Commit

Permalink
HDDS-11329. Update Ozone images to Rocky Linux-based runner
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Aug 16, 2024
1 parent 9187e79 commit 52cd163
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM apache/ozone-runner:20211202-1
FROM apache/ozone-runner:20240729-jdk17-1
ARG OZONE_URL=https://dlcdn.apache.org/ozone/1.2.1/ozone-1.2.1.tar.gz
WORKDIR /opt
RUN sudo rm -rf /opt/hadoop && curl -LSs -o ozone.tar.gz $OZONE_URL && tar zxf ozone.tar.gz && rm ozone.tar.gz && mv ozone* hadoop
Expand Down
18 changes: 13 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,28 @@
# limitations under the License.

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

set -eu

mkdir -p build
if [ ! -d "$DIR/build/apache-rat-0.13" ]; then

ozone_version=1.2.1
rat_version=0.16.1

if [ ! -d "$DIR/build/apache-rat-${rat_version}" ]; then
if type wget 2> /dev/null; then
wget "https://dlcdn.apache.org/creadur/apache-rat-0.13/apache-rat-0.13-bin.tar.gz" -O "$DIR/build/apache-rat.tar.gz"
wget "https://dlcdn.apache.org/creadur/apache-rat-${rat_version}/apache-rat-${rat_version}-bin.tar.gz" -O "$DIR/build/apache-rat.tar.gz"
elif type curl 2> /dev/null; then
curl -LSs "https://dlcdn.apache.org/creadur/apache-rat-0.13/apache-rat-0.13-bin.tar.gz" -o "$DIR/build/apache-rat.tar.gz"
curl -LSs "https://dlcdn.apache.org/creadur/apache-rat-${rat_version}/apache-rat-${rat_version}-bin.tar.gz" -o "$DIR/build/apache-rat.tar.gz"
else
exit 1
fi
cd $DIR/build
tar zvxf apache-rat.tar.gz
cd -
fi
java -jar $DIR/build/apache-rat-0.13/apache-rat-0.13.jar $DIR -e .dockerignore -e public -e apache-rat-0.13 -e .git -e .gitignore

java -jar $DIR/build/apache-rat-${rat_version}/apache-rat-${rat_version}.jar $DIR -e .dockerignore -e public -e apache-rat-${rat_version} -e .git -e .gitignore

docker build --build-arg OZONE_URL -t apache/ozone $@ .
docker tag apache/ozone apache/ozone:1.2.1
docker tag apache/ozone apache/ozone:${ozone_version}

0 comments on commit 52cd163

Please sign in to comment.