-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrap entrypoint script to trigger pre/post hook commands (#435)
* wrapped entrypoint script in runner script to trigger pre/post hook commands * updated changelog and added comment
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# This wrapper script allows commands that are embedded in environment variables | ||
# to be invoked to carry out actions when the main container is complete. | ||
# N.B. for airflow services (scheduler, webserver, worker) this will not be relevant | ||
# as the service has to be terminated, but for pods spawned and terminated by the | ||
# kubernetes executor this allows us to stop other containers, such as vector. | ||
eval "$_STACKABLE_PRE_HOOK" | ||
|
||
/entrypoint.sh "$@" | ||
result=$? | ||
|
||
eval "$_STACKABLE_POST_HOOK" | ||
|
||
exit $result |