{"id":19706033,"url":"https://github.com/llnl/mstk-docker","last_synced_at":"2026-04-11T21:02:21.283Z","repository":{"id":66082959,"uuid":"170213354","full_name":"LLNL/mstk-docker","owner":"LLNL","description":"This project runs the Granta MI:Scripting Toolkit V2 for Python inside a docker container for dev purposes.","archived":false,"fork":false,"pushed_at":"2020-02-03T23:16:51.000Z","size":15387,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-10T12:25:15.305Z","etag":null,"topics":["python","shell"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LLNL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-11T22:32:49.000Z","updated_at":"2020-06-08T05:17:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"d778bbbd-677f-4575-a9fe-ac6bf3198269","html_url":"https://github.com/LLNL/mstk-docker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fmstk-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fmstk-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fmstk-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LLNL%2Fmstk-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LLNL","download_url":"https://codeload.github.com/LLNL/mstk-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241020688,"owners_count":19895481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","shell"],"created_at":"2024-11-11T21:33:16.237Z","updated_at":"2026-04-11T21:02:16.242Z","avatar_url":"https://github.com/LLNL.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mstk-docker\n\n## Description\nThis project runs the Granta MI:Scripting Toolkit V2 for Python inside a docker container for development purposes.\n\n\n## Requirements\n- Docker and Docker Compose\n- A My Granta account\n\n## Getting Started\n\n1. Make sure you have docker installed.\n    - [Download for Windows or Mac](https://www.docker.com/products/docker-desktop)\n    - [Instructions for Linux flavors](https://docs.docker.com/install/).\n1. [Download the MIScriptingToolkit V2](https://grantadesign.com/industry/support/).\n    - Click on \"Restricted\" on the left side and login with your My Granta account.\n    - Click on \"Download\" on the left side in the Download Software section.\n    - Select the Granta MI version that you require. The MI:Scripting Toolkit V2 requires  at least Granta MI v11.0.\n    - Select \"Options\".\n    - Scroll down to \"MI:Scripting Toolkit v2.0 for Python\" and download the zip file.\n1. Copy the zip file to the `Toolkit_zip_files` folder. \n    \u003e **_NOTE:_** Currently only version 2.0 of the scripting toolkit is supported.\n\n1. Run `docker-compose build` to build the container.\n    \u003e **_NOTE:_** If you would like to install additional python packages into the image you can list these in the included `requirements.txt` file. You will then need to run the previous build command again.\n\n## Running the container\n\n1. Run `docker-compose run mstk` to run the container and drop into an interactive shell. This requires you be in the directory with the included `docker-compose.yml` file. \n    - Alternatively, you can run `docker run -it mstk` from anywhere, given you have built the image.\n1. Run `docker-compose run mstk python` to run the container and drop into a Python REPL. \n    - Alternatively, you can uncomment the `command` portion of the `docker-compose.yml` file and run `docker-compose run mstk` to acheive the same effect.\n    - Alternatively, you can run `docker run -it mstk python` from anywhere, given you have built the image.\n    - You can verify you have the toolkit available by typing `from GRANTA_MIScriptingToolkit import granta as gdl` into your REPL.\n\n## Options\n\n- If you would like to mount a folder from your host into the mstk docker container, uncomment the `volumes` section of the `docker-compose.yml` file and put in the path to the folder you would like to mount.\n\n## Documentation\n\n- The Granta:MI Scripting Toolkit documentation can be found in the zip file that was downloaded. Unzip the file and open up the docs index file at `MI_ScriptingToolkit_v2.0.0_for_Python/HTML5/index.htm`.\n\n## Extending this image\n\nIf you would like to build upon this docker image you must follow the above build instructions first listed in the **Getting Started** section. Then in your Dockerfile begin with `FROM mstk`. That's it! Your new docker image will now have the Granta:MI Scripting Toolkit available in the system Python environment.\n\n## Authors\n- Data Lifecycle Management Team - https://github.com/orgs/LLNL/teams/dlm\n- Joe Eklund - https://github.com/joe-eklund\n- Sam Eklund - https://github.com/samueldeklund\n- Sam Maphey - https://github.com/sammaphey \n\n## Contributing\n\nCreate an issue or fork and open a PR if you'd like to contribute.\n\nmstk-docker is distributed under the terms of the MIT license. All new\ncontributions must be made under this license.\n\n## Release\n\nLLNL-CODE-766762\n\nSPDX-License-Identifier: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllnl%2Fmstk-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllnl%2Fmstk-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllnl%2Fmstk-docker/lists"}