Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

DEV-667: stage item in repo & index with catalog & full-text #5

Merged
merged 3 commits into from
Apr 6, 2023

Conversation

aelkiss
Copy link
Member

@aelkiss aelkiss commented Apr 4, 2023

Like #1 but rebased & squashed (I didn't want to overwrite that branch since there's some other stuff happening off of it).

@aelkiss aelkiss force-pushed the DEV-667-rebased-squashed branch from 43b3611 to 342292d Compare April 4, 2023 20:32
This attempts to reconcile earlier work here with later work in the
imgsrv repo.

It uses:

- nginx for catalog, imgsrv fastcgi, and static files
- proxy to apache for cgi

It runs most containers as the current user to avoid permissions
problems with cache, logs, etc.

So far working:

- catalog incl. CSS & JS (via shared checked-out common repo)
- imgsrv fcgi & cgi
- pageturner
- ssd
@aelkiss
Copy link
Member Author

aelkiss commented Apr 4, 2023

I think this is ready to make sure that everything works as advertised, especially on ARM.

depends_on:
- solr-sdr-catalog
volumes:
- "./sample-data/metadata:/app/metadata"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs - ./hathitrust_catalog_indexer:/app for the script to be found in stage_item.rb.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But then I get

bundler: command not found: traject
Install missing gem executables with `bundle install`

It doesn't seem any bundle install persists between babel_traject_run calls.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh. I think this is a side effect of using the hathitrust_catalog_indexer via the checked out copy rather than via the image. I will make the required changes...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be fixed now.

With using the 'build' dockerfile instead of the image, we need to make
sure that we install gems and have a place for them.
@aelkiss aelkiss requested a review from respinos April 5, 2023 15:53
Copy link
Contributor

@respinos respinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huzzah! I had to do docker-compose run traject bundle install but after that everything works!

@aelkiss
Copy link
Member Author

aelkiss commented Apr 6, 2023

Huzzah! I had to do docker-compose run traject bundle install but after that everything works!

Yup, that's in the README now.

@aelkiss aelkiss merged commit 9d67bd5 into main Apr 6, 2023
@aelkiss aelkiss deleted the DEV-667-rebased-squashed branch April 6, 2023 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants