Skip to content

Add local CBRAIN v8 deployment with Apple container - #1717

Open
dlq wants to merge 1 commit into
aces:masterfrom
dlq:apple-container-v8
Open

dlq wants to merge 1 commit into
aces:masterfrom
dlq:apple-container-v8

Conversation

@dlq

@dlq dlq commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Run CBRAIN v8 locally on Apple silicon using Apple’s container CLI. deploy/apple-container/apple-container.sh up builds the image and starts BrainPortal, MariaDB, and a separate UNIX Bourreau. The image uses Ruby 4.0.2 and the Rails 8.1 dependencies specified upstream.

BrainPortal starts Bourreau over SSH and forwards its database connection. Bourreau reads and writes persistent LocalStorage over SSH. Named volumes retain database contents, files, work directories, cache, SSH identities, and logs. rebuild replaces the application containers while retaining those volumes. The launcher checks host prerequisites and saved database credentials.

Validation

Tested on Apple silicon with Ruby 4.0.2 / Rails 8.1.4.1 against upstream master at 0924e6308.

  • Rebuilt the exact UNIX-only PR branch. Diagnostics task 5 completed on the separate Bourreau and saved report 5 to LocalStorage.
  • Chromium checks passed for login, Files, Tasks, and Background Activities, local stylesheets, and absence of uncaught JavaScript errors. The disposable QA account was removed afterwards.
  • Existing LocalStorage files retained their checksums through the v8 upgrade. Database backups were taken before migration.
  • ShellCheck, Bash/Ruby syntax, and Git whitespace checks passed.

Replaces withdrawn #1665. The optional Slurm/Apptainer profile is in #1718, which depends on this PR.

@dlq

dlq commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

The failed CI run hit the same test-order issue fixed by #1720. With seed 46193, the first failure is an undefined RSpec::Mocks::Matchers::ReceiveMessageChain in spec/models/data_provider_spec.rb:882, followed by cascading failures. The portal suite stopped at 719 examples, 50 failures, and 4 pending. The Bourreau suite passed all 92 examples.

#1720 narrows the cache-revision filesystem mocks, and its GitHub CI run passes. Both locally checked full-suite seeds, 13752 and 48268, also pass with that fix applied. Once #1720 merges, this PR can be updated and its CI rerun.

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