Skip to content

fix: Rename docker workdir to /opt/githubapp, aligning with Helm chart - #132

Merged
spoonman01 merged 1 commit into
mainfrom
fix/rename-docker-folder
Aug 3, 2026
Merged

fix: Rename docker workdir to /opt/githubapp, aligning with Helm chart#132
spoonman01 merged 1 commit into
mainfrom
fix/rename-docker-folder

Conversation

@spoonman01

Copy link
Copy Markdown
Contributor

No description provided.

@spoonman01
spoonman01 requested a review from a team as a code owner August 3, 2026 14:09
@spoonman01 spoonman01 self-assigned this Aug 3, 2026
@claude

claude Bot commented Aug 3, 2026

Copy link
Copy Markdown

PR Review

Summary: Renames the Docker image workdir/copy path from /opt/github-app to /opt/githubapp to align with the Helm chart. Small, focused, and correct.

Correctness — I verified the alignment claim against the Helm chart:

  • helm/githubapp/templates/statefulset.yaml:79 mounts the persistent volume at mountPath: /opt/githubapp/storage.
  • Before this change the container WORKDIR was /opt/github-app (hyphenated), so the app's working directory did not match the mount point. Since the Wire SDK's CryptoBox/storage directory is resolved relative to the working directory, crypto state written to ./storage would have landed at /opt/github-app/storage — outside the mounted PVC, so it wouldn't persist across pod restarts.

So this isn't purely cosmetic — it makes the storage volume mount actually effective. Nice catch. The ENTRYPOINT ["java", "-jar", "github-app.jar"] still resolves correctly, since the jar is copied into the new /opt/githubapp/ and WORKDIR points there.

Minor observations (non-blocking, out of scope)

  • docker-compose.yml:23 mounts a named volume at github-app:/app, which matches neither the build stage nor the runtime workdir (/opt/githubapp). Looks like a leftover that provides no storage persistence for local runs — worth cleaning up in a follow-up.
  • Consider having the app read the storage location from an explicit env var / config value rather than relying on the CWD, so a Dockerfile/Helm mismatch like the one this PR fixes can't silently recur.

Tests — No tests apply to a Dockerfile path change; nothing needed here. A quick docker build + confirming the container starts and writes to /opt/githubapp/storage is sufficient sanity check.

LGTM.

@spoonman01
spoonman01 merged commit 340fa05 into main Aug 3, 2026
5 checks passed
@spoonman01
spoonman01 deleted the fix/rename-docker-folder branch August 3, 2026 14:12
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.

2 participants