31 lines
2.0 KiB
Makefile
31 lines
2.0 KiB
Makefile
all: _gokrazy/extrafiles_arm64.tar _gokrazy/extrafiles_amd64.tar
|
|
|
|
_gokrazy/extrafiles_amd64.tar:
|
|
rm -rf _gokrazy/extrafiles_amd64
|
|
mkdir -p _gokrazy/extrafiles_amd64
|
|
curl -fsSL https://github.com/mgoltzsche/podman-static/releases/latest/download/podman-linux-amd64.tar.gz | \
|
|
tar xzv --strip-components=1 -C _gokrazy/extrafiles_amd64/ --exclude README.md
|
|
cd _gokrazy/extrafiles_amd64 && mkdir -p usr/share/containers/ etc/cni/net.d etc/containers/networks
|
|
rm _gokrazy/extrafiles_amd64/etc/containers/containers.conf # delete so that user can override
|
|
cd _gokrazy/extrafiles_amd64/etc/containers/ && mv registries.conf storage.conf seccomp.json ../../usr/share/containers/
|
|
cp containers.conf _gokrazy/extrafiles_amd64/usr/share/containers/ # we put the required defaults here
|
|
cp storage.conf _gokrazy/extrafiles_amd64/usr/share/containers/ # we put the required defaults here
|
|
cd _gokrazy/extrafiles_amd64 && tar --no-acls --no-selinux --no-xattrs -cf ../extrafiles_amd64.tar *
|
|
rm -rf _gokrazy/extrafiles_amd64
|
|
|
|
_gokrazy/extrafiles_arm64.tar:
|
|
rm -rf _gokrazy/extrafiles_arm64
|
|
mkdir -p _gokrazy/extrafiles_arm64
|
|
curl -fsSL https://github.com/mgoltzsche/podman-static/releases/latest/download/podman-linux-arm64.tar.gz | \
|
|
tar xzv --strip-components=1 -C _gokrazy/extrafiles_arm64/ --exclude README.md
|
|
cd _gokrazy/extrafiles_arm64 && mkdir -p usr/share/containers/ etc/cni/net.d etc/containers/networks
|
|
rm _gokrazy/extrafiles_arm64/etc/containers/containers.conf # delete so that user can override
|
|
cd _gokrazy/extrafiles_arm64/etc/containers/ && mv registries.conf storage.conf seccomp.json ../../usr/share/containers/
|
|
cp containers.conf _gokrazy/extrafiles_arm64/usr/share/containers/ # we put the required defaults here
|
|
cp storage.conf _gokrazy/extrafiles_arm64/usr/share/containers/ # we put the required defaults here
|
|
cd _gokrazy/extrafiles_arm64 && tar --no-acls --no-selinux --no-xattrs -cf ../extrafiles_arm64.tar *
|
|
rm -rf _gokrazy/extrafiles_arm64
|
|
|
|
clean:
|
|
rm -f _gokrazy/extrafiles_*.tar
|