initrd/modd.conf

25 lines
629 B
Plaintext
Raw Normal View History

2022-02-04 18:59:42 +00:00
modd.conf {}
alpine/Dockerfile {
prep: docker build -t dkl-initrd alpine
prep: docker run --rm dkl-initrd | base64 -d >dist/base-initrd
}
buildenv/Dockerfile {
prep: docker build -t dkl-initrd-build buildenv
}
2022-02-04 18:59:42 +00:00
go.??? **/*.go {
2020-02-28 00:30:10 +00:00
prep: go test ./...
2022-02-04 18:59:42 +00:00
prep: mkdir -p dist
prep: go build -o dist/ ./tools/...
prep: mkdir -p tmp/go tmp/.cache
prep: docker run --rm -v novit-go:/go -e GOCACHE=/go/.cache -v $PWD:/src -u $(id -u):$(id -g) dkl-initrd-build go build -o dist/init .
2022-02-04 18:59:42 +00:00
}
dist/init dist/base-initrd {
prep: cd dist && ../dist/cpiocat init <base-initrd >initrd.new
prep: mv dist/initrd.new dist/initrd
2020-02-28 00:30:10 +00:00
}