This repository contains MongoDB packaging artifacts used by Canonical, including snaps and rocks for MongoDB server deployments.
The main directory structure is:
mongodb-artifacts/
├── LICENSE
├── README.md
└── mongodb/
├── snaps/
| ├── charmed/ # Snap for Charmed MongoDB Operator
│ └── slim/
│ ├── mongodb-server-replicaset/ # Snap for a MongoDB replica set deployment.
│ └── mongodb-server-sharded/ # Snap for a full MongoDB sharded deployment that includes both `mongod` and `mongos`.
└── rocks/
├── charmed/ # Rock for Charmed MongoDB Operator
└── slim/
├── mongodb-server-replicaset/ # Rock for a MongoDB replica set deployment.
└── mongodb-server-sharded/ # Rock for a full MongoDB sharded deployment that includes both `mongod` and `mongos`.
└── mongos/
├── snaps/
│ └── slim/
│ └── mongos/ # Snap for the MongoDB sharded cluster query router only (`mongos`).
└── rocks/
│ └── slim/
└── mongos/ # Rock for the MongoDB sharded cluster query router only (`mongos`).
This repository contains packaging artifacts for MongoDB in both Snap and Rock formats.
To work on an artifact, clone the repository and change into the appropriate subdirectory.
Each artifact includes its own README.md and CONTRIBUTING.md with build and usage instructions.
Snaps (example):
git clone https://github.com/canonical/mongodb-artifacts.git
cd mongodb-artifacts/mongodb/snaps/slim/<snap-name>
snapcraft packRocks (example):
git clone https://github.com/canonical/mongodb-artifacts.git
cd mongodb-artifacts/mongodb/rocks/slim/<rock-name>
rockcraft packThere are some scripts available in scripts/
The only script currently is set-version.sh
Usage: bash scripts/set-version.sh X.Y.Z-W
This will update all the charms and rocks .version field to the provided version.
MongoDB artifacts is an open source project that warmly welcomes community contributions, suggestions, fixes, and constructive feedback.
- Check our Code of Conduct
- Raise software issues or feature requests in GitHub
- Report security issues through LaunchPad
- Meet the community and chat with us on Matrix
If you want to contribute, see the CONTRIBUTING.md file in the relevant snap subdirectory for clone, build, lint, and test instructions.
This repository is licensed under the Apache License 2.0. See LICENSE for details.