Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

HykuAddons: Development using a local Gem

Paul Danelli edited this page Feb 18, 2022 · 1 revision

If you wish to use a local version of a gem, from your host machine, then you will need to make changes in 3 locations. I will use the Hyrax-Oricid Gem as an example below:

In the Dockerfile add the following to create a directory where your local Gem will be copied to:

RUN mkdir /home/app/hyrax-orcid

In the docker-compose.yml, inside of the &app configuration block, which is the path to the local gem and the path to the location added above:

app: &app
  #...
  volumes:
  #...
  - /home/paul/Ubiquity/hyrax-orcid:/home/app/hyrax-orcid

In your HykuAddons Gemfile:

gem 'hyrax-orcid', path: "/home/app/hyrax-orcid"

Now you can build the app again with docker-compose build and then up and you should be able to make Gem changes and see them on the next request.

Clone this wiki locally