-
Notifications
You must be signed in to change notification settings - Fork 2
Make core work on arm64 #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Needs some hackery to initialize the replication sets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates container images and configuration to enable core support on arm64 platforms by switching to newer images and customizing the MongoDB service to handle replication set initialization. Key changes include:
- Updating healthcheck parameters for MariaDB.
- Switching the MongoDB container from a Bitnami image to the official mongo:7 image with custom replica set initialization in the healthcheck.
- Upgrading several service images (mujina-idp, oidcplaygroundgui, oidcplaygroundserver, teamsgui, and teamserver) to use the latest tags.
Comments suppressed due to low confidence (1)
core/docker-compose.yml:69
- Environment variable inconsistency detected: the replica set name is defined as 'MONGO_REPLICA_SET_NAME' in the environment block (line 52) but referenced as 'MONGODB_RS_NAME' here. Consider aligning these variable names for clarity.
_id : "${MONGODB_RS_NAME:-openconext}",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates core services to run on arm64 by switching to images that support this architecture and handling MongoDB replication setup manually.
- Adjusted MariaDB healthcheck timings
- Replaced Bitnami Mongo image with the official
mongo:7
, added keyfile-based auth and a mongosh-driven replica set initialization - Upgraded several OpenConext service images to use the
latest
tag
Comments suppressed due to low confidence (1)
core/docker-compose.yml:127
- [nitpick] Using the
latest
tag can lead to non-reproducible builds when images change unexpectedly. Consider pinning to a specific version to ensure determinism.
image: ghcr.io/openconext/mujina/mujina-idp:latest
Most of the containers simply needed to switch to a newer version (that includes arm64 builds in the container images). Only for Mongo some work work was necessary: the bitnami container don't support arm64 (for bureaucratic reasons), so we switch to the official mongo images. That required some hackery to initialise the replication set, which the bitnami containers handled internally in the entrypoint scripts.