mirror of
https://github.com/finmars-platform/finmars-core.git
synced 2026-04-26 06:35:59 +03:00
[GH-ISSUE #185] One command install for Finmars Community Edition with optional demo data #98
Labels
No labels
BackEnd
FrontEnd
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/finmars-core#98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @falendary on GitHub (Feb 23, 2026).
Original GitHub issue: https://github.com/finmars-platform/finmars-core/issues/185
Originally assigned to: @HenkKalkwater on GitHub.
Summary
Speed up Community Edition installation by replacing migrations + post-setup with prebuilt, versioned Postgres dumps matched to the platform semantic version
Installer supports two flows
Default
curl -fsSL https://finmars.com/install.sh | bashRestores
base-vX.Y.Z.dumpWith demo data
curl -fsSL https://finmars.com/install.sh?demo_data=true | bashRestores
base-demo-data-vX.Y.Z.dumpMotivation
Current install can take up to ~10 minutes largely due to running 200+ migrations and manual setup
Target is ≤ 60 seconds to a usable login
Dumps design
Part 1 Base dump
Filename
base-vX.Y.Z.dumpContains
X.Y.ZAfter restore the installer updates
space_coderealm_codePart 2 Demo-ready dump
Filename
base-demo-data-vX.Y.Z.dumpContains
X.Y.ZAfter restore the installer updates
space_coderealm_codeNo extra marketplace or demo steps required because they are already inside the dump
Installer behavior
Version selection
Installer determines
X.Y.Zfrom the installed platform versionThen downloads the matching dump
base-vX.Y.Z.dumpdemo_data=trueusesbase-demo-data-vX.Y.Z.dumpIntegrity and safety
sha256Optional knobs
recreate_db=truedrop and recreate DB automaticallyadmin_userandadmin_passwordfor non interactive installspace_codeandrealm_codeas params too, so it can be fully scriptedAcceptance criteria
Performance
Correctness
After install completes
Base
space_code,realm_code) reflect inputsDemo
Reliability
Security
Implementation tasks
Dump build pipeline
Define procedure to generate dumps for each release version
base-vX.Y.Z.dumpafter migrations onlybase-demo-data-vX.Y.Z.dumpafter PMS Core install + demo importUpload to public S3 bucket with versioned naming
Generate and publish checksum files
base-vX.Y.Z.dump.sha256base-demo-data-vX.Y.Z.dump.sha256Add CI job that restores each dump and runs smoke checks
Installer script
X.Y.ZPost restore update logic
Definition of done
@falendary commented on GitHub (Feb 23, 2026):
@paktusov please assist @HenkKalkwater with bash script, s3 bucket and other any requests