Open
Conversation
Signed-off-by: Luke Roy <luke.roy@ibm.com>
reggeenr
requested changes
Apr 16, 2026
Collaborator
reggeenr
left a comment
There was a problem hiding this comment.
Great stuff - And very very useful use cases.
Co-authored-by: Enrico Regge <36001299+reggeenr@users.noreply.github.com>
Co-authored-by: Enrico Regge <36001299+reggeenr@users.noreply.github.com>
Signed-off-by: Luke Roy <luke.roy@ibm.com>
reggeenr
previously approved these changes
Apr 16, 2026
Collaborator
reggeenr
left a comment
There was a problem hiding this comment.
LGTM
Soon we should add an example that demonstrates the BEFORE_SHUTDOWN, like mimic a worker registration and de-registration
PREHOOK=$(cat <<'EOF'
#!/bin/bash
echo "Registering fleet worker '${hostname}' ..."
// TODO implement your fleet worker registration logic
EOF
)
POSTHOOK=$(cat <<'EOF'
#!/bin/bash
echo "Deregistering fleet worker '${hostname}' ..."
// TODO implement your fleet worker deregistration logic
EOF
)Furthermore, we should add a link to the automatically injected variables, once we merged the docs PR: https://github.ibm.com/cloud-docs/codeengine/pull/1100
jeremiaswerner
requested changes
Apr 16, 2026
Collaborator
jeremiaswerner
left a comment
There was a problem hiding this comment.
@Luke-Roy-IBM cool, thanks a lot! this is fantastic and will help users to experiment advanced use cases... looking forward to more examples like mounting remote HPC storage systems.
Just two small changes to remove the login logic.
Luke-Roy-IBM
commented
Apr 16, 2026
Luke-Roy-IBM
commented
Apr 16, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Add Fleet Worker Customization Examples to Documentation
This PR adds documentation for two experimental examples that demonstrate how to customize fleet workers using startup hooks.
Changes Made
Added new section to
serverless-fleets/README.md:New Examples Documented
Running Ollama on Fleet Workers (
run_hook_ollama)Running Podman-in-Podman (
run_hook_podman_in_podman)Key Features Documented
__CE_INTERNAL_HOOK_AFTER_STARTUPto execute setup scripts before tasks runImportant Note
The documentation includes a clear note that this is an experimental feature that may change or be deprecated in the future, setting appropriate expectations for users.
Files Modified
serverless-fleets/README.md- Added new "How to customize fleet workers" sectionFiles Referenced
serverless-fleets/run_hook_ollama- Ollama example scriptserverless-fleets/run_hook_podman_in_podman- Podman-in-Podman example script