Skip to content

fix: allow exec on the /tmp tmpfs in docker-compose - #158

Merged
cassiodias merged 1 commit into
mainfrom
fix/tmpfs-exec
Nov 11, 2026
Merged

cassiodias merged 1 commit into
mainfrom
fix/tmpfs-exec

Conversation

@cassiodias

Copy link
Copy Markdown
Contributor

What changes are being made and why?

#141 mounts /tmp as tmpfs to work around the JFR startup error (kestra-io/kestra#17405). Docker mounts a tmpfs noexec by default, so anything a task writes to /tmp and runs fails with Permission denied: the Python that uv downloads (the tour's order_summary flow) and native libraries like Snappy in plugin-serdes (libsnappyjava.so: failed to map segment).

This keeps the tmpfs, so the JFR workaround stays, and adds exec in docker-compose.yml and in the README's docker run example.


How the changes have been QAed?

Local run of the template's compose, with the template jar in build/libs/, before and after the change. In the container: mount | grep " /tmp ", then write a script to /tmp and run it.

/tmp mount Script in /tmp Kestra starts, template plugin registered JFR error
Before (- /tmp) noexec Permission denied, exit 126 yes no
After (- /tmp:exec) no noexec runs, exit 0 yes no
README docker run --tmpfs /tmp:exec no noexec runs, exit 0 yes no

The JFR error doesn't show up on my host with either setting, so this checks that the tmpfs is still mounted, not the original JFR failure itself.


Contributor Checklist ✅

@github-project-automation github-project-automation Bot moved this to To review in Pull Requests Nov 11, 2026
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
🔎 OpenGrep ✅ (0 findings)

Found 0 finding(s).

🐷 TruffleHog ✅ (0 secrets)

No secret found.

📦 Artifacts (1 jar)
Name Size Updated Expiration
jar 24.32 KB Nov 11, 26, 10:00:15 AM UTC Nov 18, 26, 10:00:14 AM UTC
🧪 Java Unit Tests ✅ (0 failed, 2 passed, 0 skipped)
TestsPassed ✅SkippedFailedTime ⏱
Java Tests Report2 ran2 ✅0 ⚠️0 ❌1s 838ms
📊 Coverage — plugin ✅ (42.86%, no changes)

42.86% line coverage (▬ 0.00pp)
6/14 lines covered

Coverage by module

Module Lines Coverage
root 6/14 42.86% (▬ 0.00pp)
🔁 Unreleased Commits ✅ (0 commits)

✅ No unreleased commits found.

@github-actions

Copy link
Copy Markdown

Tests report quick summary:

success ✅ > tests: 2, success: 2, skipped: 0, failed: 0

unfold for details
Project Status Success Skipped Failed
plugin-template success ✅ 2 0 0

@Malaydewangan09 Malaydewangan09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@cassiodias
cassiodias merged commit 5f20432 into main Nov 11, 2026
9 checks passed
@cassiodias
cassiodias deleted the fix/tmpfs-exec branch November 11, 2026 10:30
@github-project-automation github-project-automation Bot moved this from To review to Done in Pull Requests Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants