Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 827 Bytes

File metadata and controls

23 lines (17 loc) · 827 Bytes

Building and running a docker image locally

To build the image run the following command from the Dockerfile directory. Note: for non-LASP users you must retrieve your MATLAB licensing information from your own institute. More information is available here: https://github.com/mathworks-ref-arch/matlab-dockerfile

NOTE: the --platform flag is optional for Intel macs.

docker build -t matlab-image --platform linux/amd64 --rm . --build-arg \
LICENSE_SERVER=27000@lasp-lmgr.colorado.edu

Now we can run our image using bind mounting.

For local directory

docker run --rm -it   -e PROCESSING_DROPBOX=/opt/data/dropbox/   \
--volume="$(pwd)/container_example_data:/opt/data" --platform linux/amd64  matlab-image:latest \
"algorithm_example /opt/data/dropbox/input_manifest_20220923t000000.json"