Skip to content
Snippets Groups Projects
Commit 55822a30 authored by John Harris's avatar John Harris
Browse files

doc: local development instructions

parent 06199f70
No related branches found
No related tags found
No related merge requests found
Pipeline #30671 passed
# nexus_semantic_logger
Configures a [semantic_logger](https://rubygems.org/gems/rails_semantic_logger) as required for NexusMods components.
# Local gem development
Steps to run this gem from local sources in one the nexus 'staged build' rails components:
## Copy gem sources to component
```
cd ~/legacy/users
cp -r ../nexus_semantic_logger .
```
## Adjust component Dockerfile to include gem sources
Within stage 1, append a COPY after the Gemfile copy:
```
COPY --chown=nexus:nexus Gemfile* ./
COPY --chown=nexus:nexus nexus_semantic_logger/ ./nexus_semantic_logger/
```
Within stage 2, append a COPY after the bundle copy:
```
COPY --from=stage1 /usr/local/bundle /usr/local/bundle
COPY --from=stage1 /app/nexus_semantic_logger/ /app/nexus_semantic_logger/
```
## Adjust Gemfile to use local path
```
gem 'nexus_semantic_logger', :path => "/app/nexus_semantic_logger"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment