Skip to content

Add Apple container Slurm profile with ARM64 Apptainer for v8 - #1718

Open
dlq wants to merge 2 commits into
aces:masterfrom
dlq:apple-container-slurm-v8
Open

dlq wants to merge 2 commits into
aces:masterfrom
dlq:apple-container-slurm-v8

Conversation

@dlq

@dlq dlq commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Add CBRAIN_LOCAL_PROFILE=slurm to the Apple container deployment in #1717. The profile starts a portal, a separate Bourreau using ScirSlurm, and a one-node Slurm container. Bourreau and the compute node share /cluster for work and cache. The image installs ARM64 Apptainer 1.5.5 on both, allowing Bourreau to stage an image and submit a containerized job. The portal is available at http://localhost:3003.

The profile retains Slurm 20.11 for compatibility with the existing local accounting data and process-based job tracking. Cgroup resource enforcement is disabled for this local setup.

Database isolation

The Slurm profile has its own MariaDB container and persistent volume, container network, generated credentials, and state directory under .local/apple-container/slurm. The application uses the cbrain schema, with Bourreau connecting through the portal’s SSH tunnel. Slurm accounting uses slurm_acct_db and a dedicated database user scoped to that schema.

Validation

Tested on Apple silicon with Ruby 4.0.2 / Rails 8.1.4.1 and the combined source tree in this PR.

  • Rebuilt and recreated the portal, Bourreau, and compute node while retaining the database and data volumes. Both Bourreau and the node have Apptainer installed automatically.
  • Plain Diagnostics task 10 ran as Slurm job 11 and saved report 16 to LocalStorage.
  • ARM64 Apptainer Diagnostics task 11 ran as Slurm job 12 on cbrain-slurm-node and saved report 17 (Diagnostics-LocalBourreau-11-1.txt) to LocalStorage. Its report confirms successful reads of all 3,973 bytes of the existing input through both the shared cache path and the relative path in the task directory. This run reused the existing registered ARM64 image.
  • Both Slurm jobs reached COMPLETED with exit code 0:0. Existing LocalStorage files retained their checksums. Chromium checks passed for portal login, authenticated pages, stylesheets, and absence of uncaught JavaScript errors.
  • ShellCheck, Bash/Ruby syntax, and Git whitespace checks passed. The final combined Git tree is identical to the source used for these runtime tests.

Review order

This PR targets aces:master and depends on #1717. Until #1717 merges, GitHub’s diff includes the base deployment. Review #1717 first, then use the Slurm/Apptainer-only diff for this addition.

Replaces withdrawn #1712.

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.

1 participant