You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "kumaab (via GitHub)" <gi...@apache.org> on 2026/08/05 17:28:37 UTC

[PR] RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS, comes with Python 3.14 [ranger-tools]

kumaab opened a new pull request, #11:
URL: https://github.com/apache/ranger-tools/pull/11

   ## What changes were proposed in this pull request?
   
   Upgrade the `ranger-base` Docker image from Ubuntu 22.04 (jammy) to Ubuntu 26.04 (resolute) to support the latest `apache-ranger` Python client, which requires Python ≥ 3.13.
   
   - Switch base image to `eclipse-temurin:${RANGER_BASE_JAVA_VERSION}-jdk-resolute` (JDK 8 unchanged)
   - Install `apache-ranger` into a dedicated venv at `/opt/venv` using system Python 3.14
   - Fix `PATH` to include `${JAVA_HOME}/bin` and `/opt/venv/bin` so `java` and `python3` work as expected
   
   ## How was this patch tested?
   
   - [x] Build base image: `./docker/build.sh` (or `docker build -f docker/Dockerfile -t apache/ranger-base:dev .` from repo root)
   - [x] Verify Java: `docker run --rm apache/ranger-base:dev java -version` (JDK 8)
   - [x] Verify Python: `docker run --rm apache/ranger-base:dev python3 --version` (3.14+)
   - [x] Verify client: `docker run --rm apache/ranger-base:dev python3 -c "from apache_ranger.client.ranger_client import RangerClient"`
   - [ ] CI builds `ranger-base` for jdk8/jdk11/jdk17 on amd64 and arm64
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS, comes with Python 3.14 [ranger-tools]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #11:
URL: https://github.com/apache/ranger-tools/pull/11#discussion_r3724890530


##########
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

Review Comment:
   No, pip install enforces it. `pip list` shows `requests` and `strenum` are present: https://github.com/apache/ranger-tools/pull/11#issuecomment-5197551845
   
   Also:
   ```
   curl -s https://pypi.org/pypi/apache-ranger/0.0.13/json \
     | python3 -c "import sys,json; print(json.load(sys.stdin)['info']['requires_dist'])"
   ['requests>=2.34.2', 'strenum>=0.4.15']```



-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS, comes with Python 3.14 [ranger-tools]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on code in PR #11:
URL: https://github.com/apache/ranger-tools/pull/11#discussion_r3724890530


##########
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

Review Comment:
   No, pip install enforces it. `pip list` shows `requests` and `strenum` are present: https://github.com/apache/ranger-tools/pull/11#issuecomment-5197551845
   
   Also:
   ```
   curl -s https://pypi.org/pypi/apache-ranger/0.0.13/json \
     | python3 -c "import sys,json; print(json.load(sys.stdin)['info']['requires_dist'])"
   ['requests>=2.34.2', 'strenum>=0.4.15']
   ```



-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS, comes with Python 3.14 [ranger-tools]

Posted by "mneethiraj (via GitHub)" <gi...@apache.org>.
mneethiraj commented on code in PR #11:
URL: https://github.com/apache/ranger-tools/pull/11#discussion_r3724622649


##########
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

Review Comment:
   Is it not necessary to install `requests` library? See line #41 in the original file.



-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS, comes with Python 3.14 [ranger-tools]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab commented on PR #11:
URL: https://github.com/apache/ranger-tools/pull/11#issuecomment-5197551845

   - Verified instructions in https://github.com/apache/ranger-tools/blob/main/release/README.md are working for Ranger 2.9 release using the changes in this base image. 
   - Ranger UI is accessible.
   - Following can be seen inside the container
   
   ```
   ranger@ranger-admin:/$ python --version
   Python 3.14.4
   ranger@ranger-admin:/$ pip list
   Package            Version
   ------------------ ---------
   apache-ranger      0.0.13
   certifi            2026.7.22
   charset-normalizer 3.4.9
   idna               3.18
   pip                25.1.1
   requests           2.34.2
   StrEnum            0.4.15
   urllib3            2.7.0
   
   ```
   
   CC: @mneethiraj 


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] RANGER-5727: Upgrade OS to Ubuntu 26.04 LTS, comes with Python 3.14 [ranger-tools]

Posted by "kumaab (via GitHub)" <gi...@apache.org>.
kumaab merged PR #11:
URL: https://github.com/apache/ranger-tools/pull/11


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@ranger.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org