clamsproject / clams-python

CLAMS SDK for python
http://sdk.clams.ai/
Apache License 2.0
4 stars 1 forks source link

add brandeis-specific container images #182

Open keighrim opened 10 months ago

keighrim commented 10 months ago

New Feature Summary

Back in June, we added a Brandeis specific file location resolution system that consists of

  1. https://github.com/clamsproject/mmif-python/issues/222
  2. https://github.com/clamsproject/aapb-brandeis-datahousing
  3. https://github.com/clamsproject/mmif-docloc-baapb

But to utilize the new resolver server, app container should install the additional mmif-docloc-baapb plugin.

Also moving forward, I believe there will be more Brandeis-specific MMIF/CLAMS components added to the platform. Hence, I'd like to make more container images pre-shipped with Brandeis specific components.

Issue will be done when

Related

No response

Alternatives

Until these new images are added to our ghcr, devs can use something like this in debugging process to use the (WIP) resolver server.


podman run \
  --rm \
  --name <some-container-name> \
  -e BAAPB_RESOLVER_ADDRESS=<resolver_server_name>.brandeis.edu:<resolver_server_port> \  # IMPORTANT: let docloc resovler to know where to query
  -p <someport>:5000 \
  -v /mnt:/mnt \ 
  ghcr.io/clamsproject/<appimage-id>:<appimage-ver> \  # OR if you build a new image fro WIP codebase, use that name
  /bin/bash -c 'pip3 install mmif-docloc-baapb && python3 /app/app.py'  # IMPORTANT: swap default cmd with `pip install + app.py` 

### Additional context

_No response_