Skip to content

Commit

Permalink
build: Use tags to trim down containers/storage dependencies
Browse files Browse the repository at this point in the history
The default depends on btrfs, etc. that we don't need because
ultimately we're just forking off skopeo anyways.
  • Loading branch information
cgwalters authored and mvo5 committed Jan 22, 2024
1 parent 5a14a14 commit 0bbd2bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash

set -euo pipefail
# Keep this in sync with e.g. https://github.com/containers/podman/blob/2981262215f563461d449b9841741339f4d9a894/Makefile#L51
# It turns off the esoteric containers-storage backends that add dependencies
# on things like btrfs that we don't need.
CONTAINERS_STORAGE_THIN_TAGS="containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay"

cd bib
go build -o ../bin/bootc-image-builder ./cmd/bootc-image-builder
set -x
go build -tags "${CONTAINERS_STORAGE_THIN_TAGS}" -o ../bin/bootc-image-builder ./cmd/bootc-image-builder

0 comments on commit 0bbd2bb

Please sign in to comment.