Skip to content
New issue

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

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

Already on GitHub? # to your account

WIP: Add script hooks #53

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

WIP: Add script hooks #53

wants to merge 4 commits into from

Conversation

jlowellwofford
Copy link
Collaborator

This PR adds the ability to specify (through various means) uinit-style scripts to be run at:

  • Container creation (outside container namespace)
  • Container init (inside container namespace)
  • Container exit (outside container namespace)
  • Container delete (outside container namespace)

Scripts can be provided as:

  • path to a file in the root filesystem
  • path to a file relative to image root
  • raw json-encoded multi-line plain text (ugly!)
  • base64 encoded plain text
  • gzipped + base64 encoded
  • bzip2 + base64 encoded

Each hook point has various Key/Value variables injected into the script that can be used to template in the usual style.

Resolves #52

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add script hooks for images
1 participant