Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nexus_semantic_logger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
nexus_semantic_logger
Commits
55822a30
Commit
55822a30
authored
2 years ago
by
John Harris
Browse files
Options
Downloads
Patches
Plain Diff
doc: local development instructions
parent
06199f70
No related branches found
No related tags found
No related merge requests found
Pipeline
#30671
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+33
-0
33 additions, 0 deletions
README.md
with
33 additions
and
0 deletions
README.md
+
33
−
0
View file @
55822a30
# 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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment