https://github.com/psu-libraries/metadata-listener
A queue listener that grabs a file out of s3, and extracts text / gets metadata for said file
https://github.com/psu-libraries/metadata-listener
docker ruby
Last synced: 12 months ago
JSON representation
A queue listener that grabs a file out of s3, and extracts text / gets metadata for said file
- Host: GitHub
- URL: https://github.com/psu-libraries/metadata-listener
- Owner: psu-libraries
- Created: 2020-04-21T14:57:11.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-06-05T17:43:02.000Z (about 1 year ago)
- Last Synced: 2025-06-05T18:37:08.756Z (about 1 year ago)
- Topics: docker, ruby
- Language: Ruby
- Homepage:
- Size: 261 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configure
install direnv to make your life easier! (https://direnv.net/)
```
cp .envrc.sample .envrc
direnv allow
```
without direnv
```
cp .envrc.sample .envrc
source .envrc
```
# Build
Occasionally you'll need to rebuild the container, it's a good idea to rebuild anytime the Dockerfile changes, it's been awhile since your last rebuild, or there's been massive changes to your gemfile. It's always good to test that building still works.
```
docker-compose build
# or as one single step to build & run
docker-compuse up --build -d
```
# Run
Requires scholarsphere to be running, or at the very least a redis instance, and minio instance for the queue to connect to
```
docker-compose up -d
# get a terminal
./bin/dc-shell
# fire up the listener
./start.sh
```
# Run tests
from the container:
```
./bin/rspec
```
from outside the container:
```
./bin/dc-rspec
```
# Stop developing and go home for the day
```
docker-compose down
```