Skip to content

Commit

Permalink
Fixes for demos
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 9, 2020
1 parent 12bac90 commit 5506bcb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions 020_advanced/140_multi_arch/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ if docker buildx inspect mybuilder; then
docker buildx use default
docker buildx rm mybuilder
fi
true
1 change: 1 addition & 0 deletions 020_advanced/140_multi_arch/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ if docker buildx inspect mybuilder; then
docker buildx use default
docker buildx rm mybuilder
fi
true
7 changes: 4 additions & 3 deletions 110_ecosystem/buildkit/k8s/kubernetes.demo
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
kind create cluster

# Wait for nodes to become ready
while kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.conditions[?(@.reason=="KubeletReady")].status}{"\n"}{end}' | grep -qE "\sFalse$"; do \
sleep 5; \
done
watch kubectl get nodes

# Run BuildKit daemon
kubectl apply -f pod.rootless.yaml

# Wait for pod to deploy
watch kubectl get pods

# Run build
export BUILDKIT_HOST=kube-pod://buildkitd
buildctl build \
Expand Down

0 comments on commit 5506bcb

Please sign in to comment.