This is an automated email from the ASF dual-hosted git repository.
kumaab pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ranger-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 937d2f1 RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS (Python 3.14 by
default) in ranger-base image (#11)
937d2f1 is described below
commit 937d2f13538a826c3bced638152fb49badb03b5c
Author: Abhishek Kumar <[email protected]>
AuthorDate: Wed Aug 5 19:22:10 2026 -0700
RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS (Python 3.14 by default) in
ranger-base image (#11)
---
docker/Dockerfile | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 6fd4e72..e7c3f79 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -17,35 +17,32 @@
# see https://hub.docker.com/_/eclipse-temurin/tags
ARG RANGER_BASE_JAVA_VERSION=8
-# Ubuntu 22.04 LTS
-FROM eclipse-temurin:${RANGER_BASE_JAVA_VERSION}-jdk-jammy
+# Ubuntu 26.04 LTS
+FROM eclipse-temurin:${RANGER_BASE_JAVA_VERSION}-jdk-resolute
-# Install packages
RUN apt update -q \
&& DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends
\
bc \
curl \
iputils-ping \
pdsh \
- python3 \
- python3-pip \
- python-is-python3 \
ssh \
tzdata \
vim \
xmlstarlet \
krb5-user \
- && apt clean
-
-# Install Python modules
-RUN pip install apache-ranger requests \
- && rm -rf ~/.cache/pip
+ python3-venv \
+ && apt clean \
+ && rm -rf /var/lib/apt/lists/*
# Set environment variables
ENV RANGER_DIST=/home/ranger/dist
ENV RANGER_SCRIPTS=/home/ranger/scripts
ENV RANGER_HOME=/opt/ranger
-ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV
PATH="/opt/venv/bin:${JAVA_HOME}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+
+RUN python3 -m venv /opt/venv
+RUN /opt/venv/bin/pip install apache-ranger
# create directories and setup perms
RUN mkdir -p ${RANGER_DIST} ${RANGER_SCRIPTS} ${RANGER_HOME} && \