This project runs the Granta MI:Scripting Toolkit for Python inside a docker container for dev purposes. It also provides a tool to build an image with customized Python packages.
- Joe Eklund - https://github.com/joe-eklund
- Sam Eklund - https://github.com/samueldeklund
- Make sure you have docker installed (https://www.docker.com/community-edition).
- Download the MIScriptingToolkit from https://mygranta.grantadesign.com/downloads.
- Copy the MIScriptingToolkit_vX.X.X.zip file to the Toolkit_zip_files folder. Currently only version 1.4.0 is supported.
- Run
./docker-build.shto build the container.- Run
./custom-docker-build.sh -r /path/to/requirements.txtto build a custom container.
- Run
- Run
./docker-run.shto launch the container.- Run
./custom-docker-run.shto launch the custom container.
- Run
-
Running
./docker-build.shwith no arguments will build a container with default settings. Run./docker-build.sh -hto see a list of options. -
You can specify the operating system when building and running the scripts. For example:
./docker-build.sh -o debianor
./docker-run.sh -o centosAvailable operating systems:
- ubuntu_14_04 (Ubuntu 14.04)
- ubuntu_16_04 (Ubuntu 16.04, default)
- centos (CentOS 7)
- debian (Debian 8)
If you would like to use the custom container you built using the ./custom-docker-build.sh script, you can run the following command:
./custom-docker-run.sh -f /path/to/test_toolkit.py
Make sure to replace test_toolkit.py with the name of your Python script.
If you'd like to get involved, you can email either of the authors, create an issue, or fork and open a PR.
Create an issue or fork and open a PR if you'd like to contribute.
mstk-docker is distributed under the terms of the MIT license. All new contributions must be made under this license.
LLNL-CODE-766762
SPDX-License-Identifier: MIT