From: hyuksun98 Date: Mon, 22 Jul 2024 13:33:49 +0000 (+0000) Subject: Build: Change docker to containerd X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=d3f44ac2adb58817ab21b868a9324cb65ea769a0;p=aiml-fw%2Faimlfw-dep.git Build: Change docker to containerd Issue-ID: AIMLFW-110 Change-Id: Ie8e732be72ad629be41e5a19e08b03bae387d4ae Signed-off-by: hyuksun98 --- diff --git a/bin/docker_image_build_local.sh b/bin/docker_image_build_local.sh index 6736546..8e2a977 100755 --- a/bin/docker_image_build_local.sh +++ b/bin/docker_image_build_local.sh @@ -25,13 +25,18 @@ git clone "https://gerrit.o-ran-sc.org/r/portal/aiml-dashboard" git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/aihp/ips/kserve-adapter" git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/awmf/modelmgmtservice" -docker build -f tm/Dockerfile -t tm tm/. -docker build -f data-extraction/Dockerfile -t data-extraction data-extraction/. -docker build -f kubeflow-adapter/Dockerfile -t kfadapter kubeflow-adapter/. -docker build -f aiml-dashboard/Dockerfile -t aiml-dashboard aiml-dashboard/. -docker build -f aiml-dashboard/kf-pipelines/Dockerfile -t aiml-notebook aiml-dashboard/kf-pipelines/. -docker build -f kserve-adapter/Dockerfile -t kserve-adapter:1.0.0 kserve-adapter/. -docker build -f modelmgmtservice/Dockerfile -t modelmgmtservice:1.0.0 modelmgmtservice/. +sudo buildctl --addr=nerdctl-container://buildkitd build \ + --frontend dockerfile.v0 \ + --opt filename=Dockerfile \ + --local dockerfile=tm \ + --local context=tm \ + --output type=oci,name=tm:latest | sudo nerdctl load --namespace k8s.io +#docker build -f data-extraction/Dockerfile -t data-extraction data-extraction/. +#docker build -f kubeflow-adapter/Dockerfile -t kfadapter kubeflow-adapter/. +#docker build -f aiml-dashboard/Dockerfile -t aiml-dashboard aiml-dashboard/. +#docker build -f aiml-dashboard/kf-pipelines/Dockerfile -t aiml-notebook aiml-dashboard/kf-pipelines/. +#docker build -f kserve-adapter/Dockerfile -t kserve-adapter:1.0.0 kserve-adapter/. +#docker build -f modelmgmtservice/Dockerfile -t modelmgmtservice:1.0.0 modelmgmtservice/. cd - rm -Rf /tmp/gerrit_code diff --git a/bin/docker_images_delete_local.sh b/bin/docker_images_delete_local.sh index 934717e..14f9480 100755 --- a/bin/docker_images_delete_local.sh +++ b/bin/docker_images_delete_local.sh @@ -15,10 +15,10 @@ # limitations under the License. # # ================================================================================== -docker rmi tm -docker rmi data-extraction -docker rmi kfadapter -docker rmi aiml-dashboard -docker rmi aiml-notebook -docker rmi kserve-adapter:1.0.0 -docker rmi modelmgmtservice:1.0.0 +sudo nerdctl --namespace k8s.io rmi tm:latest +#docker rmi data-extraction +#docker rmi kfadapter +#docker rmi aiml-dashboard +#docker rmi aiml-notebook +#docker rmi kserve-adapter:1.0.0 +#docker rmi modelmgmtservice:1.0.0