You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Running Control-Core FRI with Kong as containers
53
-
54
-
If you are already running FRI, make sure to stop and clear existing FRI container as it is likely conflict with the port. If there is Kong gateway running in default ports, stop and clear it too.
55
-
````
56
-
$ docker stop fri
57
-
$ docker rm fri
58
-
$ docker stop kong
59
-
$ docker rm kong
60
-
````
61
-
62
-
Start and configure Cassandra container for Kong API.
Delete if there is a previously configured Kong service. If not, skip this step. First you need to find the ID-VALUE for the route with a GET command before deleting the route and service.
105
-
````
106
-
$ curl -X GET "http://localhost:8001/services/fri/routes"
107
-
````
108
-
Use the ID output from above to issue the delete command as below (issue this only if you have a previous conflicting service definiton in kong. Otherwise, skip this step):
$ curl -i -X POST --url http://localhost:8001/services/fri/routes --data 'paths=/'
124
-
````
125
-
126
-
Now, controlcore.org is routed through the Kong APIs.
127
-
128
-
129
-
# Troubleshooting the FRI
130
-
131
-
Connect to the Server VM
132
-
````
133
-
$ ssh -i "controlcore.pem" ubuntu@x.x.x.x
134
-
````
135
-
Check the Server logs.
136
-
````
137
-
$ tail -f controlcore.out
138
-
````
139
-
or
140
-
````
141
-
$ sudo docker logs fri -f
142
-
````
143
-
Find the FRI docker container
144
-
````
145
-
$ sudo docker ps
146
-
````
147
-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
148
-
dfdd3b3d3308 fri "python main.py" 38 minutes ago Up 38 minutes 0.0.0.0:80->80/tcp fri
149
-
150
-
Access the container
151
-
````
152
-
$ sudo docker exec -it dfdd /bin/bash
153
-
````
154
-
155
-
156
-
157
-
# Citing the CONTROL-CORE FRI
158
-
159
-
If you use the CONTROL-CORE FRI in your research, please cite the below paper:
160
-
161
-
* Kathiravelu, P., Arnold, M., Fleischer, J., Yao, Y., Awasthi, S., Goel, A. K., Branen, A., Sarikhani, P., Kumar, G., Kothare, M. V., and Mahmoudi, B. **CONTROL-CORE: A Framework for Simulation and Design of Closed-Loop Peripheral Neuromodulation Control Systems**. In IEEE Access. March 2022. https://doi.org/10.1109/ACCESS.2022.3161471
0 commit comments