Build image for leofs 41/13041/1
authorsubhash kumar singh <subh.singh@samsung.com>
Wed, 26 Jun 2024 15:16:36 +0000 (15:16 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Wed, 26 Jun 2024 15:16:36 +0000 (15:16 +0000)
Build image for leofs using buildkit.

Change-Id: I39ae9fe094f8f20234c5ec06f26ad683a8c339a0
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
tools/leofs/bin/install_leofs.sh

index 1815efd..b4c0460 100755 (executable)
@@ -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