Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer require hooks/extensions must be added to overlays #865

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 30, 2021

  1. No longer require hooks/extensions must be added to overlays

    No longer demand that developers add a hook/extension and also
    correctly configure the required overlay copy instructions as this
    now gets automatically added. Start script extensions now also
    support descriptions.
    
    Extensions:
        previous:
            {extended_start_script_extensions, [
                {bar, "extensions/bar"},
                {foo, "extensions/foo"},
                {baz, "extensions/baz"}]},
            {overlay, [
                {copy, "./bar", "bin/extensions/bar"},
                {copy, "./foo", "bin/extensions/foo"},
                {copy, "./baz", "bin/extensions/baz"}]}
        after:
            {extended_start_script_extensions, [
                % auto copied over to `bin/extensions/bar` with empty description
                {bar, "./bar"},
                % auto copied over to `bin/extensions/foo` with description `"foo description"`
                {foo, "./foo", "foo description"},
                % auto copied over to `bin/extensions/baz` with description `"baz description"`
                {baz, "./baz", "bin/extensions/baz", "baz description"}
            ]}
    
    Hooks:
        previous:
            {extended_start_script_hooks, [
                {pre_start, [
                    {custom, "hooks/pre_start"}
                ]},
                {post_start, [
                    wait_for_vm_start,
                    {pid, "foo.pid"},
                    wait_for_vm_start,
                    {custom, "hooks/post_start"}
                ]},
                {pre_stop, [
                    {custom, "hooks/pre_stop"}
                ]},
                {post_stop, [
                    {custom, "hooks/post_stop"}
                ]},
                {status, [
                    {custom, "hooks/status"}
                ]}
            ]},
            {overlay, [
                {copy, "./hooks/status", "bin/hooks/status"},
                {copy, "./hooks/{pre,post}_{start,stop}", "bin/hooks/"}
            ]}
        after:
            {extended_start_script_hooks, [
                {pre_start, [
                    % auto copied over to `bin/hooks/pre_start`
                    {custom, "hooks/pre_start"}
                ]},
                {post_start, [
                    wait_for_vm_start,
                    {pid, "foo.pid"},
                    wait_for_vm_start,
                    {custom, "hooks/post_start"},
                    % auto copied over to `bin/hooks/extra/post_start`
                    {custom, "hooks/post_start2", "bin/hooks/extra/post_start"}
                ]},
                {pre_stop, [
                    {custom, "hooks/pre_stop"}
                ]},
                {post_stop, [
                    {custom, "hooks/post_stop"}
                ]},
                {status, [
                    {custom, "hooks/status"}
                ]}
            ]}
    lrascao committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    889c966 View commit details
    Browse the repository at this point in the history