Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
source-extractor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Duc Cao
source-extractor
Commits
c07ac307
Commit
c07ac307
authored
6 years ago
by
Bertrand Goupil
Browse files
Options
Downloads
Patches
Plain Diff
Add docker run example with environment settings
Example: increase memory allocation for extractor run time
parent
5887cba1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Readme.md
+4
-0
4 additions, 0 deletions
Readme.md
with
4 additions
and
0 deletions
Readme.md
+
4
−
0
View file @
c07ac307
...
...
@@ -48,6 +48,9 @@ Models and resources are embedded by default in the docker image.
+
Start default image
`docker run -p 8080:8080 -t limsi-source-extractor`
+
Start named default image
`docker run --name limsi-extractor -p 8080:8080 -t limsi-source-extractor`
Note: Memory usage can be setup with JAVA_OPTS in the docker command line:
`docker run --name limsi-extractor -p 8080:8080 -e JAVA_OPTS='-Xmx3g' -d limsi-source-extractor`
####Custom resources/lib
Build image can be used with new training set. In this case it is possible to overwrite default model configuration.
...
...
@@ -71,6 +74,7 @@ In the docker image volumes have been setup to mount new resources.
+
Remove image
`docker rmi <image_name>`
+
Load image from file
`docker load < image_file.tar`
+
Export image
`docker export > image_file.tar`
+
Set environment variables
`docker run -e JAVA_OPTS=`
## Test
...
...
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