The purpose of this repository is to document the chosen way of registering and running applications within a GridAPPS-D deployment.
- Docker ce version 17.12 or better. You can install this via the docker_install_ubuntu.sh script. (note for mint you will need to modify the file to work with xenial rather than ubuntu generically)
The following procedure will use the already existing containers for the gridappsd sample application.
-
Clone the gridappsd-docker repository
git clone https://github.com/GRIDAPPSD/gridappsd-docker cd gridappsd-docker
-
Run the docker containers
./run.sh
-
Once inside the container start gridappsd
./run-gridappsd.sh
-
Open browser to http://localhost:8080 (follow instructions https://gridappsd.readthedocs.io/en/latest/using_gridappsd/index.html to run the application)
The following is the recommended structure for an applications working with gridappsd:
.
├── README.md
├── requirements.txt
├── sample_app
│ └── runsample.py
└── sample_app.config
-
Docker ce version 17.12 or better. You can install this via the docker_install_ubuntu.sh script. (note for mint you will need to modify the file to work with xenial rather than ubuntu generically)
-
Please clone the repository https://github.com/GRIDAPPSD/gridappsd-docker (refered to as gridappsd-docker repository) next to this repository (they should both have the same parent folder)
git clone https://github.com/GRIDAPPSD/gridappsd-docker git clone https://github.com/GRIDAPPSD/gridappsd-sample-app ls -l drwxrwxr-x 7 osboxes osboxes 4096 Sep 4 14:56 gridappsd-docker drwxrwxr-x 5 osboxes osboxes 4096 Sep 4 19:06 gridappsd-sample-app
-
From the command line execute the following commands to build the sample-app container
osboxes@osboxes> cd gridappsd-sample-app osboxes@osboxes> docker build --network=host -t sample-app .
-
Add the following to the gridappsd-docker/docker-compose.yml file
sampleapp: image: sample-app depends_on: gridappsd
-
Run the docker application
osboxes@osboxes> cd gridappsd-docker osboxes@osboxes> ./run.sh # you will now be inside the container, the following starts gridappsd gridappsd@f4ede7dacb7d:/gridappsd$ ./run-gridappsd.sh
Next to start the application through the viz follow the directions here: https://gridappsd.readthedocs.io/en/latest/using_gridappsd/index.html#start-gridapps-d-platform