From 01b9f4d590c1439f5f4089cada90d624d04a3d53 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Wed, 26 Jun 2024 15:16:36 +0000 Subject: [PATCH] Build image for leofs Build image for leofs using buildkit. Change-Id: I39ae9fe094f8f20234c5ec06f26ad683a8c339a0 Signed-off-by: subhash kumar singh --- tools/leofs/bin/install_leofs.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/leofs/bin/install_leofs.sh b/tools/leofs/bin/install_leofs.sh index 1815efd..b4c0460 100755 --- a/tools/leofs/bin/install_leofs.sh +++ b/tools/leofs/bin/install_leofs.sh @@ -20,8 +20,13 @@ kubectl create namespace kubeflow sleep 10 head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 | kubectl create secret generic leofs-secret -n kubeflow --from-file=password=/dev/stdin -docker build -f tools/leofs/Dockerfile.leofs -t leofs . - +sudo buildctl --addr=nerdctl-container://buildkitd build \ + --frontend dockerfile.v0 \ + --opt filename=Dockerfile.leofs \ + --local dockerfile=tools/leofs \ + --local context=. \ + --output type=oci,name=leofs | sudo nerdctl load --namespace k8s.io + helm dep up helm/leofs helm install leofs helm/leofs -f RECIPE_EXAMPLE/example_recipe_latest_stable.yaml sleep 10 -- 2.16.6