Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Duc Cao
source-extractor
Commits
c07ac307
Commit
c07ac307
authored
May 31, 2018
by
Bertrand Goupil
Browse files
Add docker run example with environment settings
Example: increase memory allocation for extractor run time
parent
5887cba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Readme.md
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
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment