Skip to content

Commit 4d14341

Browse files
committed
chore: use ko instead of docker to minimize the image size
Signed-off-by: Batuhan Apaydın <[email protected]>
1 parent a877eb7 commit 4d14341

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

example/build-and-load-workload-image.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ set -e -o pipefail
55
DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
66

77
echo "Building the example workload image..."
8-
docker build "$DIR"/workload -t spiffe-csi-driver-example-workload:example
8+
cd "$DIR"/workload
9+
KO_DOCKER_REPO=ko.local/spiffe-csi-driver-example-workload ko build --bare -t example .
910

1011
echo "Loading example workload image into Kind..."
11-
kind load docker-image spiffe-csi-driver-example-workload:example
12+
kind load docker-image ko.local/spiffe-csi-driver-example-workload:example
1213

1314
echo "Done."

example/workload/Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)