From 03100332a6d6c5202a3e35ed0d2abe5274e02d51 Mon Sep 17 00:00:00 2001 From: Kyujin Cho Date: Sat, 3 Feb 2024 23:10:48 +0900 Subject: [PATCH] fix: krunner python libraries not working on CentOS 7.9 (#5) --- .../static_gnu/krunner-python.static-gnu.dockerfile | 5 ++--- .../krunner/static_gnu/krunner-version.static-gnu.txt | 2 +- .../static_gnu/krunner-wheels.static-gnu.dockerfile | 9 +++------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/ai/backend/krunner/static_gnu/krunner-python.static-gnu.dockerfile b/src/ai/backend/krunner/static_gnu/krunner-python.static-gnu.dockerfile index 37a7e58..5ae81cd 100644 --- a/src/ai/backend/krunner/static_gnu/krunner-python.static-gnu.dockerfile +++ b/src/ai/backend/krunner/static_gnu/krunner-python.static-gnu.dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile-upstream:1-labs -FROM ubuntu:20.04 +FROM quay.io/pypa/manylinux2014_x86_64 ARG PREFIX=/opt/backend.ai ARG ARCH=x86_64 @@ -8,8 +8,7 @@ ENV PATH=${PREFIX}/bin:$PATH \ PYTHON_VERSION=3.11.1 \ LANG=C.UTF-8 -RUN apt-get update \ - && apt-get install -y \ +RUN yum install -y \ wget \ tar \ zstd \ diff --git a/src/ai/backend/krunner/static_gnu/krunner-version.static-gnu.txt b/src/ai/backend/krunner/static_gnu/krunner-version.static-gnu.txt index 9a03714..b4de394 100644 --- a/src/ai/backend/krunner/static_gnu/krunner-version.static-gnu.txt +++ b/src/ai/backend/krunner/static_gnu/krunner-version.static-gnu.txt @@ -1 +1 @@ -10 \ No newline at end of file +11 diff --git a/src/ai/backend/krunner/static_gnu/krunner-wheels.static-gnu.dockerfile b/src/ai/backend/krunner/static_gnu/krunner-wheels.static-gnu.dockerfile index faa15cc..f726a5e 100644 --- a/src/ai/backend/krunner/static_gnu/krunner-wheels.static-gnu.dockerfile +++ b/src/ai/backend/krunner/static_gnu/krunner-wheels.static-gnu.dockerfile @@ -1,15 +1,12 @@ -FROM python:3.11.1-bullseye +FROM quay.io/pypa/manylinux2014_x86_64 -RUN apt-get update \ - && apt-get install -y \ - build-essential \ - ca-certificates +ENV PATH=$PATH:/opt/python/cp311-cp311/bin COPY requirements.txt /root/ RUN set -ex \ && cd /root \ - && pip wheel -w ./wheels -r requirements.txt + && pip3 wheel -w ./wheels -r requirements.txt # vim: ft=dockerfile