{"id":19578599,"url":"https://github.com/materialsproject/mp_docker","last_synced_at":"2026-03-19T10:35:22.444Z","repository":{"id":151271004,"uuid":"123195771","full_name":"materialsproject/mp_docker","owner":"materialsproject","description":"docker image for materials_django","archived":false,"fork":false,"pushed_at":"2021-09-22T23:13:10.000Z","size":94,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-26T11:47:16.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/materialsproject.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":"2018-02-27T22:19:59.000Z","updated_at":"2024-11-29T14:20:48.000Z","dependencies_parsed_at":"2023-04-18T03:49:15.585Z","dependency_job_id":null,"html_url":"https://github.com/materialsproject/mp_docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/materialsproject/mp_docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materialsproject%2Fmp_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materialsproject%2Fmp_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materialsproject%2Fmp_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materialsproject%2Fmp_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/materialsproject","download_url":"https://codeload.github.com/materialsproject/mp_docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materialsproject%2Fmp_docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271901182,"owners_count":24841115,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T07:12:08.790Z","updated_at":"2025-10-28T23:47:17.011Z","avatar_url":"https://github.com/materialsproject.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mp_docker\n\nRepo for building a materials_django docker image\n\n## To build\n\n```\ngit clone git@github.com:materialsproject/mp_docker.git\ncd mp_docker\ngit submodule init\ngit submodule update\ndocker build -t mp_docker .\n```\n\n## To Run \n\nThere are 3 ways to run the container\n\n### Start by hand\n```\ndocker run -it -p 8000:80 mp_docker /bin/bash\n\n## If prod turn uncomment PRODUCTION flag\n# export PRODUCTION=1\nexport SSL_TERMINATION=1\nexport LD_LIBRARY_PATH=/opt/miniconda3/lib\n\n## If you need to setup tunnel:\n# ssh -f -N -L *:57003:mongodb03.nersc.gov:27017 -L *:57001:mongodb01.nersc.gov:27017 -L *:57004:mongodb04.nersc.gov:27017 \u003cusername\u003e@matgen.nersc.gov\n\napachectl start\n\n## Create superuser\n## Follow instructions in MP docs\n\n```\n\n### Standalone Container \n```\ndocker run -d -8000:80 -e SSL_TERMINATION=1 -e LD_LIBRARY_PATH=/opt/miniconda3/lib mp_docker apachectl -DFOREGROUND\n```\n\n### Docker Compose\n```\ndocker-compose up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaterialsproject%2Fmp_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaterialsproject%2Fmp_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaterialsproject%2Fmp_docker/lists"}