Skip to content

Add local macOS deployment with Apple container - #1665

Closed
dlq wants to merge 5 commits into
aces:devfrom
dlq:apple-container-local-deployment
Closed

dlq wants to merge 5 commits into
aces:devfrom
dlq:apple-container-local-deployment

Conversation

@dlq

@dlq dlq commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Run CBRAIN locally on Apple silicon using Apple's container CLI. The launcher under deploy/apple-container starts BrainPortal, MariaDB, and a separate UNIX Bourreau. BrainPortal starts Bourreau over SSH and forwards its database connection. Bourreau stores reports and other files in the portal's persistent LocalStorage over SSH. The worker volume retains work directories, cache, logs, and SSH host keys across recreation.

On upgrade from the combined container, the launcher preserves the storage provider ID and its files and copies the previous work and cache directories into the worker volume. The setup requires Apple silicon and macOS 26 or newer and uses Ruby 2.7 and Rails 5.

Validated at 3a066bdce in an isolated Apple-container stack:

The earlier combined setup was also checked for portal login, Files and Tasks page rendering, and persistence through a database address change. Validation used the deployment branch. Replaces #1662 and targets dev.

Simplified launcher

  • up builds the image if it is missing. rebuild builds and replaces BrainPortal and Bourreau in one command, retaining the MariaDB and application volumes.
  • The launcher shares the service startup and readiness logic. It uses the exact image tag written by the builder and detects mismatched database credentials before replacing containers.
  • The plain smoke test selects the local Diagnostics Tool Config explicitly.

Validated the updated UNIX branch on Apple silicon. rebuild and a second up started the portal and Bourreau. Diagnostics task 3 saved Diagnostics-LocalBourreau-3-1.txt to LocalStorage as userfile 3. An earlier test with the wrong checkout credentials stopped at the credential check before recreating any services.

ShellCheck, Bash and Ruby syntax checks, and Git whitespace checks passed for the launcher update.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dlq dlq closed this 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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant