https://github.com/materialsproject/mp_docker
docker image for materials_django
https://github.com/materialsproject/mp_docker
Last synced: 5 months ago
JSON representation
docker image for materials_django
- Host: GitHub
- URL: https://github.com/materialsproject/mp_docker
- Owner: materialsproject
- License: bsd-3-clause
- Created: 2018-02-27T22:19:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T23:13:10.000Z (almost 5 years ago)
- Last Synced: 2025-02-26T11:47:16.978Z (over 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 91.8 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mp_docker
Repo for building a materials_django docker image
## To build
```
git clone git@github.com:materialsproject/mp_docker.git
cd mp_docker
git submodule init
git submodule update
docker build -t mp_docker .
```
## To Run
There are 3 ways to run the container
### Start by hand
```
docker run -it -p 8000:80 mp_docker /bin/bash
## If prod turn uncomment PRODUCTION flag
# export PRODUCTION=1
export SSL_TERMINATION=1
export LD_LIBRARY_PATH=/opt/miniconda3/lib
## If you need to setup tunnel:
# ssh -f -N -L *:57003:mongodb03.nersc.gov:27017 -L *:57001:mongodb01.nersc.gov:27017 -L *:57004:mongodb04.nersc.gov:27017 @matgen.nersc.gov
apachectl start
## Create superuser
## Follow instructions in MP docs
```
### Standalone Container
```
docker run -d -8000:80 -e SSL_TERMINATION=1 -e LD_LIBRARY_PATH=/opt/miniconda3/lib mp_docker apachectl -DFOREGROUND
```
### Docker Compose
```
docker-compose up
```