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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
