Skip to content

Commit 657bfdb

Browse files
committed
feat: put big files in own layers
1 parent 304b8cb commit 657bfdb

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/bash
2+
3+
echo "::group:: ===$(basename "$0")==="
4+
5+
# to reduce the indiviual layer size we put big files that are not shipped with RPMs in their own layers
6+
# See: https://coreos.github.io/rpm-ostree/build-chunked-oci/
7+
8+
setfattr -n user.component -v "homebrew" /usr/share/homebrew.tar.zst
9+
setfattr -n user.component -v "starship" /usr/bin/starship
10+
setfattr -n user.component -v "nerd-fonts" /usr/share/fonts/nerd-fonts
11+
12+
echo "::endgroup::"

build_files/shared/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,8 @@ fi
6363
# Clean Up
6464
/ctx/build_files/shared/clean-stage.sh
6565

66+
# Set filesystem properties for rechunker
67+
/ctx/build_files/base/20-layer-definitions.sh
68+
6669
# Simple Tests
67-
/ctx/build_files/base/20-tests.sh
70+
/ctx/build_files/base/21-tests.sh

0 commit comments

Comments
 (0)