Skip to main content
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
------------------------------
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
------------------------------
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
------------------------------