Can now create a node worker
This commit is contained in:
17
makefile
17
makefile
@@ -20,6 +20,8 @@ CONFIGS_DIR := configs
|
||||
SCRIPTS_DIR := scripts
|
||||
CLUSTER_ENV_DEFAULT := $(CONFIGS_DIR)/cluster.env.default
|
||||
CLUSTER_ENV := $(OUT_DIR)/cluster.env
|
||||
NODE_ENV_DEFAULT := configs/node.env.default
|
||||
NODE_ENV := $(OUT_DIR)/node.env
|
||||
|
||||
BOARD_ITB := $(OUT_DIR)/board.itb
|
||||
INITRAMFS := $(OUT_DIR)/initramfs.cpio.gz
|
||||
@@ -211,14 +213,25 @@ check-functions:
|
||||
in_main && /^[[:space:]]*[a-zA-Z_][a-zA-Z0-9_]*[[:space:]]*$$/ { \
|
||||
gsub(/^[ \t]+/, "", $$0); \
|
||||
print $$0 \
|
||||
}' ./alpine/rootfs-extra/opt/scripts/bootstrap-control-plane.sh \
|
||||
}' ./alpine/rootfs-extra/opt/scripts/bootstrap-cluster.sh \
|
||||
| sort -u > /tmp/called.txt
|
||||
@grep -E '^[a-zA-Z_][a-zA-Z0-9_]*\(\)' ./alpine/rootfs-extra/opt/scripts/bootstrap-control-plane.sh \
|
||||
@grep -E '^[a-zA-Z_][a-zA-Z0-9_]*\(\)' ./alpine/rootfs-extra/opt/scripts/bootstrap-cluster.sh \
|
||||
| sed 's/().*//' \
|
||||
| sort -u > /tmp/defined.txt
|
||||
@echo "Missing functions:"
|
||||
@comm -23 /tmp/called.txt /tmp/defined.txt || true
|
||||
|
||||
# ---- node targets ------------------------------------------------------------
|
||||
|
||||
node-config: $(NODE_ENV_DEFAULT) $(SCRIPTS_DIR)/merge-env.sh | $(OUT_DIR)
|
||||
sh $(SCRIPTS_DIR)/merge-env.sh $(NODE_ENV_DEFAULT) $(NODE_ENV)
|
||||
|
||||
node-defconfig: $(NODE_ENV_DEFAULT) | $(OUT_DIR)
|
||||
cp $(NODE_ENV_DEFAULT) $(NODE_ENV)
|
||||
|
||||
node-print:
|
||||
@cat $(NODE_ENV)
|
||||
|
||||
# ---- cluster targets ------------------------------------------------------------
|
||||
|
||||
cluster-config: $(CLUSTER_ENV_DEFAULT) $(SCRIPTS_DIR)/merge-env.sh | $(OUT_DIR)
|
||||
|
||||
Reference in New Issue
Block a user