Skip to content
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

add support for docker-based mongo #200

Merged
merged 21 commits into from
Oct 11, 2023
Merged

add support for docker-based mongo #200

merged 21 commits into from
Oct 11, 2023

Conversation

cmentzer
Copy link
Contributor

@cmentzer cmentzer commented Oct 11, 2023

To test:

  • pip install scooze
  • install docker desktop and make sure it's running
  • run scooze setup docker to pull and initailize a docker-based mongo instance
  • populate that DB as normal with scooze load-cards oracle

Limitations:

  • Needs docker installed and running
  • Needs port 27017 to be free on the host machine

iambroadband
iambroadband previously approved these changes Oct 11, 2023
README.md Show resolved Hide resolved
src/scooze/api/bulkdata.py Outdated Show resolved Hide resolved
src/scooze/cli.py Show resolved Hide resolved
@fjork3
Copy link
Contributor

fjork3 commented Oct 11, 2023

Base branch for this PR should be dev rather than main

@iambroadband iambroadband changed the base branch from main to dev October 11, 2023 18:43
@iambroadband iambroadband dismissed their stale review October 11, 2023 18:43

The base branch was changed.

fjork3 and others added 17 commits October 11, 2023 11:48
Co-authored-by: Jacob Ginsparg <jacobginsparg@gmail.com>
Co-authored-by: broadband <iambroadband@gmail.com>
Co-authored-by: Jacob Ginsparg <jacobginsparg@gmail.com>
Co-authored-by: broadband <iambroadband@gmail.com>
Co-authored-by: Jacob Ginsparg <jacobginsparg@gmail.com>
Co-authored-by: broadband <iambroadband@gmail.com>
@iambroadband iambroadband merged commit 399f495 into dev Oct 11, 2023
@iambroadband iambroadband deleted the cm/198/docker-mongodb branch October 11, 2023 19:33
iambroadband added a commit that referenced this pull request Nov 10, 2023
## [1.0.5] - 2023-11-09

### Added

- Added scooze_id to CardModel and Card. Changed the MongoDB _id to scooze_id. ([#193](#193))
- Added AsyncScoozeApi as a way to use API endpoints in an async context (fixes Jupyter compatibility) ([#199](#199))
- Add Docker support for starting MongoDB via the CLI ([#200](#200))
- CLI rework to be more robust ([#203](#203))
- Github Actions to test on push and deploy on tag ([#211](#211))
- Add `cmc` field to top level for reversible cards ([#212](#212))

### Changed

- Changed the database lookup behavior to treat _id and scooze_id as the same. Also support snake case and camel case for property names. ([#205](#205))
- Added `None` as valid return type in normalizers ([#190](#190))
- Use `super().__init__()` for Card subclasses ([#217](#217))

### Fixed

- Fixed the use of mutable default arguments ([#188](#188))
- Fixed improper runner call in API init ([#190](#190))
- Fixed missing `await` call ([#190](#190))

### Docs

- More completely document possible exceptions ([#209])(#209)

---------

Co-authored-by: Ben Horkley <ben.horkley@gmail.com>
Co-authored-by: Jacob Ginsparg <jacobginsparg@gmail.com>
Co-authored-by: Clayton Mentzer <cwolfmentzer@gmail.com>
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.

None yet

4 participants