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

introduce service hooks #694

Merged
merged 1 commit into from
Oct 7, 2024
Merged

introduce service hooks #694

merged 1 commit into from
Oct 7, 2024

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Oct 7, 2024

Introduce Service lifecycle hooks to run commands on post_start or pre_stop inside service container

Signed-off-by: Nicolas De Loof <[email protected]>
Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me, I'm just wondering if we aren't just missing the Extensions attribut in the ServiceHook struct

Comment on lines +25 to +26
Environment MappingWithEquals `yaml:"environment,omitempty" json:"environment,omitempty"`
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aren't we missing the extensions here?

Suggested change
Environment MappingWithEquals `yaml:"environment,omitempty" json:"environment,omitempty"`
}
Environment MappingWithEquals `yaml:"environment,omitempty" json:"environment,omitempty"`
Extensions Extensions `yaml:"#extensions,inline,omitempty" json:"-"`
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed by a59035a

@ndeloof ndeloof merged commit 2e78b55 into compose-spec:main Oct 7, 2024
8 checks passed
@ndeloof ndeloof deleted the hooks branch October 7, 2024 09:02
@laurazard
Copy link
Member

Nice!!! 🎉

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

Successfully merging this pull request may close these issues.

3 participants