scientist-softserv / hykuup_knapsack

container project for the Hyku Up deploy of Hyku
Apache License 2.0
1 stars 0 forks source link

Working knapsacked bundler-inject setup #159

Closed bkiahstroud closed 1 month ago

bkiahstroud commented 4 months ago

Story

Working knapsacked bundler-inject setup plus Bulkrax bug fix (Importer form).

Expected Behavior Before Changes

The importer form throws an error.

Expected Behavior After Changes

Gems listed in bundler.d/injected_gems.rb are injected into bundler.

The importer form doesn't throw an error.

Notes

HykuUP Knapsack's implementation technically works differently than Hyku's; Hyku will load all files in the bundler.d/ dir automatically and considers these "local" gems. HykuUP Knapsack, on the other hand, copies files in the bundler.d/ dir into the Docker image's /app/.bundler.d/ dir, which gets loaded as "global" gems.

The main reason for this difference is due to all the file loading differences between Hyku and a knapsack'ed Hyku. The true app is nested within hyrax-webapp/, which the plugin doesn't look at.

jeremyf commented 3 months ago

We've got a problem in the build regarding what Rails version you're requesting.

bkiahstroud commented 3 months ago

We've got a problem in the build regarding what Rails version you're requesting.

@jeremyf you're referring to the local build? Can you add more details?