Skip to content

Commit

Permalink
chore: use ko instead of docker to minimize the image size
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <[email protected]>
  • Loading branch information
developer-guy committed Oct 24, 2022
1 parent a877eb7 commit 4d14341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
5 changes: 3 additions & 2 deletions example/build-and-load-workload-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ set -e -o pipefail
DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

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

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

echo "Done."
13 changes: 0 additions & 13 deletions example/workload/Dockerfile

This file was deleted.

0 comments on commit 4d14341

Please sign in to comment.