Skip to main content

Using MVIS with Docker and local storage

  • August 10, 2020
  • 2 replies
  • 0 views

Jonathan Evans
Forum|alt.badge.img+2
I've been looking into Docker with a view to using it with MVIS.
The manual is very short on examples, only covering using Azure for storage.
I did see the deployment scripts, but these also lack any documentation.

Does anyone have examples of MVIS working with docker local storage?

------------------------------
Jonathan Evans
MBS
------------------------------

2 replies

Amey Rokde
Forum|alt.badge.img
  • Rocketeer
  • 2 replies
  • August 11, 2020
I've been looking into Docker with a view to using it with MVIS.
The manual is very short on examples, only covering using Azure for storage.
I did see the deployment scripts, but these also lack any documentation.

Does anyone have examples of MVIS working with docker local storage?

------------------------------
Jonathan Evans
MBS
------------------------------
Hi Jonathan 

Here is an example for using the local storage 

docker run -d -p 7171:7171 -p 7870:7870 -p 7871:7871 -e "JAVA_OPTS=-DTYPE=MVCM -DFS_DIR=/data/" -v c:\\data:/data cm:latest

docker run -d -p 7077:7077 -e "JAVA_OPTS=-DTYPE=MVCM -DFS_DIR=/data/" -v c:\\data:/data cmadmin:latest

I have tried the below examples using Docker for desktop but should work for any docker environment. In case of docker for desktop , you need to add the host folder into the
docker for desktop => Resources section.

The important parameter -DFS_DIR wherein I have specified volume /data to be used for retrieving/modifying the cm.ini

I have mounted /data/ to c:\\data folder. Please make sure that you drop cm.ini into this folder before starting the container.

Hope this helps 

Thanks


------------------------------
Amey Rokde
Rocket Software
------------------------------

Jonathan Evans
Forum|alt.badge.img+2
  • Author
  • New Participant
  • 4 replies
  • August 12, 2020
Hi Jonathan 

Here is an example for using the local storage 

docker run -d -p 7171:7171 -p 7870:7870 -p 7871:7871 -e "JAVA_OPTS=-DTYPE=MVCM -DFS_DIR=/data/" -v c:\\data:/data cm:latest

docker run -d -p 7077:7077 -e "JAVA_OPTS=-DTYPE=MVCM -DFS_DIR=/data/" -v c:\\data:/data cmadmin:latest

I have tried the below examples using Docker for desktop but should work for any docker environment. In case of docker for desktop , you need to add the host folder into the
docker for desktop => Resources section.

The important parameter -DFS_DIR wherein I have specified volume /data to be used for retrieving/modifying the cm.ini

I have mounted /data/ to c:\\data folder. Please make sure that you drop cm.ini into this folder before starting the container.

Hope this helps 

Thanks


------------------------------
Amey Rokde
Rocket Software
------------------------------
Thanks Amey,

That was very useful. I did find I needed to add a u2rest sub-directory to \\data to get MVIS working smoothly, but now all works well.

------------------------------
Jonathan Evans
MBS
------------------------------