Skip to content

Commit

Permalink
test the simplified deployment scripts for cloud and edges
Browse files Browse the repository at this point in the history
  • Loading branch information
smartfog committed May 8, 2018
1 parent 96f5dd5 commit 1760f1c
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 0 deletions.
Binary file added deployment/core/fogflow-core.tar.gz
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added deployment/edge/fogflow-edge.tar.gz
Binary file not shown.
19 changes: 19 additions & 0 deletions deployment/edge/withBroker/broker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"port": 8060,
"websocket": 8066,
"host": "195.37.154.32",
"discoveryURL": "http://195.37.154.32:8071/ngsi9",
"physical_location":{
"longitude": 139.709059,
"latitude": 35.692221,
"section": "01",
"district": "02",
"city": "Tokyo"
},
"logging":{
"info":"stdout",
"error":"stderr",
"protocol": "stdout",
"debug": "discard"
}
}
14 changes: 14 additions & 0 deletions deployment/edge/withBroker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "2"
services:
edge_broker:
image: fogflow/broker
volumes:
- ./broker-config.json:/config.json
worker:
image: fogflow/worker
volumes:
- ./worker-config.json:/config.json
- /var/run/docker.sock:/var/run/docker.sock



29 changes: 29 additions & 0 deletions deployment/edge/worker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"my_ip": "195.37.154.32",
"message_bus": "amqp://admin:[email protected]:5672/",
"iot_discovery_url": "http://195.37.154.32:8071/ngsi9",
"my_role": "EdgeNode",
"container_autoremove": false,
"my_capacity":{
"cpu": 6,
"memory": 2000,
"tasks": 10
},
"physical_location":{
"longitude": 139.463377,
"latitude": 36.509163,
"section": "01",
"district": "02",
"city": "Tokyo"
},
"logical_location": {
"node_no": 1,
"site_no": 3,
"layer_no": 2,
"parent_site_no": 1
},
"logging": {
"info":"stdout",
"debug":"stdout"
}
}
6 changes: 6 additions & 0 deletions deployment/packup_deployment_scripts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rm ./core/fogflow-core.tar.gz
tar -cf ./core/fogflow-core.tar.gz ./core/*.json ./core/*.yml

rm ./edge/fogflow-edge.tar.gz
tar -cf ./edge/fogflow-edge.tar.gz ./edge/*.json ./edge/*.yml

0 comments on commit 1760f1c

Please sign in to comment.