bundlewrap icon indicating copy to clipboard operation
bundlewrap copied to clipboard

Tutorial series

Open trehn opened this issue 9 years ago • 3 comments

write a series of tutorials explaining various features in the context of real-life example bundles

trehn avatar Nov 13 '16 00:11 trehn

triggers and precedes

This can be illustrated nicely by assuming a readonly rootfs:

actions = {
    "remount_rw": {
        'command': "mount -o remount,rw /"
        'precedes': ["file:"],
    },
    "remount_ro": {
        'command': "mount -o remount,ro /"
        'triggered_by': ["file:"],
    },
}

trehn avatar Nov 13 '16 00:11 trehn

scaling nodes.py and groups.py

from glob import glob
from os.path import join

nodes = {}

for node in glob(join(repo_path, "nodes", "*.py")):
    with open(node, 'r') as f:
        exec(f.read())

trehn avatar Nov 13 '16 00:11 trehn

working with Faults

file templating and the data directory

dependencies and bw plot

metadata processors and when to use them

composing groups

dummy nodes

soft-locking and pull requests

requirements.txt

common mistakes

where to start when writing a new bundle

trehn avatar Nov 13 '16 00:11 trehn