From 31a5b8f06e77e84df90aa52b030116a91e143117 Mon Sep 17 00:00:00 2001 From: wangzheng422 Date: Wed, 18 Oct 2023 01:10:29 +0800 Subject: [PATCH] llm --- redhat/ocp4/4.13/4.13.gpu.llm.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/redhat/ocp4/4.13/4.13.gpu.llm.md b/redhat/ocp4/4.13/4.13.gpu.llm.md index 1dedb0ed..facf4382 100644 --- a/redhat/ocp4/4.13/4.13.gpu.llm.md +++ b/redhat/ocp4/4.13/4.13.gpu.llm.md @@ -45,9 +45,28 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n dnf install -y --allowerasing conda python3.11 && \ dnf clean all +RUN dnf install -y rsync lftp && \ + dnf clean all EOF -podman build -t quay.io/wangzheng422/qimgs:gpu-base -f nv.Dockerfile ./ +podman build --squash -t quay.io/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 -f nv.Dockerfile ./ + +podman push quay.io/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 + +podman save quay.io/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 | pigz -c > gpu-nv-base.tgz + +python -m http.server 15443 + +# back to helper node +# copy back the base image +oc image mirror quay.io/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 quaylab.infra.wzhlab.top:5443/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 + +podman load -i gpu-nv-base.tgz + +podman image tag quay.io/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 quaylab.infra.wzhlab.top:5443/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 + +podman push quaylab.infra.wzhlab.top:5443/wangzheng422/qimgs:gpu-nv-base-rhel92-v01 + ``` \ No newline at end of file