Working with centralized config
This commit is contained in:
12
flatcar/Makefile
Normal file
12
flatcar/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
# get the directory of this makefile
|
||||
ROOT_DIR:=$(shell dirname "$(realpath $(firstword $(MAKEFILE_LIST)))")
|
||||
|
||||
ignition:
|
||||
cat cl.yaml | sudo docker run --rm --volume ${ROOT_DIR}:/pwd --workdir /pwd -i quay.io/coreos/butane:latest -d /pwd > ignition.json
|
||||
|
||||
build:
|
||||
cp --reflink=auto flatcar_production_qemu_image.img.fresh flatcar_production_qemu_image.img
|
||||
make ignition
|
||||
|
||||
run:
|
||||
./flatcar_production_qemu.sh -i ignition.json
|
||||
Reference in New Issue
Block a user