Skip to content

Commit 6ddecbf

Browse files
author
gireg.roussel
committed
rollback
1 parent 16f4dd1 commit 6ddecbf

File tree

7 files changed

+36
-48
lines changed

7 files changed

+36
-48
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,48 @@ help:
1212

1313
.PHONY: edge_model_serving ## 💁 Start model_serving service (Docker container)
1414
edge_model_serving:
15-
docker compose up -d --build edge_model_serving
15+
docker-compose up -d --build edge_model_serving
1616

1717
.PHONY: edge_orchestrator ## 🕵 Start edge_orchestrator service (Docker container)
1818
edge_orchestrator:
19-
docker compose up -d --build edge_orchestrator
19+
docker-compose up -d --build edge_orchestrator
2020

2121
.PHONY: edge_interface ## 📸 Start edge_interface inside a docker container
2222
edge_interface:
23-
docker compose up -d --build edge_interface
23+
docker-compose up -d --build edge_interface
2424

2525
.PHONY: edge_db ## 📁 Start edge_db inside a docker container
2626
edge_db:
27-
docker compose up -d --build edge_db
27+
docker-compose up -d --build edge_db
2828

2929
.PHONY: hub_monitoring ## ⚙️ Start hub_monitoring inside a docker container
3030
hub_monitoring:
31-
docker compose up -d --build hub_monitoring
31+
docker-compose up -d --build hub_monitoring
3232

3333
.PHONY: hub_labelizer ## ⚙️ Start hub_labelizer inside a docker container
3434
hub_labelizer:
35-
docker compose up -d --build hub_labelizer
35+
docker-compose up -d --build hub_labelizer
3636

3737
.PHONY: hub_monitoring_db ## ⚙️ Start hub_monitoring database inside a docker container
3838
hub_monitoring_db:
39-
docker compose up -d --build hub_monitoring_db
39+
docker-compose up -d --build hub_monitoring_db
4040

4141
.PHONY: vio-hub-up ## 🐳 Start all hub services (monitoring, monitoring_db, labelizer)
4242
vio-hub-up:
43-
docker compose --profile hub up -d --build
43+
docker-compose --profile hub up -d --build
4444

4545
.PHONY: vio-edge-up ## 🐳 Start all edge services (db, model_serving, orchestrator, interface)
4646
vio-edge-up:
47-
docker compose --profile edge up -d --build
47+
docker-compose --profile edge up -d --build
4848

4949
.PHONY: vio-up ## 🐳 Start all edge services (db, model_serving, orchestrator, interface) and hubs (monitoring, monitoring_db, labelizer)
5050
vio-up:
51-
docker compose --profile hub --profile edge up -d --build
51+
docker-compose --profile hub --profile edge up -d --build
5252

5353
.PHONY: vio-edge-up-raspberrypi ## 🐳 Start all edge services on RaspberryPI (db, model_serving, orchestrator, interface)
5454
vio-edge-up-raspberrypi:
55-
docker compose -f docker-compose.raspberrypi.yml up -d --build
55+
docker-compose -f docker-compose.raspberrypi.yml up -d --build
5656

5757
.PHONY: vio-down ## ❌ Stop all services (model_serving, edge_orchestrator, ui)
5858
vio-down:
59-
docker compose down
59+
docker-compose down

deployment/edge/ansible/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ deploy-vio-on-inventory:
1919

2020
.PHONY: register-inventory-on-gcp-hub ## 🚀 Register the edge devices on the GCP hub
2121
register-inventory-on-gcp-hub:
22-
ansible-playbook -v -i inventory.ini register_inventory_on_gcp_hub.yml -e ansible_python_interpreter=.venv/bin/python
22+
ansible-playbook -v -i inventory.ini register_edge_on_gcp_hub.yml -e ansible_python_interpreter=.venv/bin/python
2323

24-
.PHONY: test-register-localhost-on-gcp-hub ## 🚀 Test register localhost on the GCP hub
25-
test-register-localhost-on-gcp-hub:
26-
ansible-playbook -v -c local -l localhost -i inventory.ini register_inventory_on_gcp_hub.yml -e ansible_python_interpreter=.venv/bin/python
24+
.PHONY: test-registering-localhost-on-gcp-hub ## 🚀 Test registering localhost on the GCP hub
25+
test-registering-localhost-on-gcp-hub:
26+
ansible-playbook -v -c local -l localhost -i inventory.ini register_edge_on_gcp_hub.yml -e ansible_python_interpreter=.venv/bin/python

deployment/edge/ansible/README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,6 @@ Before launching ansible export a env to specify your local vio directory
22
```
33
export LOCAL_VIO_DIR=
44
```
5-
### Setup the edge
6-
7-
Install openssh-server on the edge:
8-
```bash
9-
sudo apt-get install openssh-server
10-
```
11-
12-
Do not forget to install the google-cloud-storage package:
13-
```bash
14-
pip install google-cloud-storage==3.0.0
15-
```
16-
17-
Then, try to connect through:
18-
```bash
19-
ssh localhost
20-
```
21-
22-
Install Docker on the edge help you with [this link](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)
23-
Don't forget [post-installation](https://docs.docker.com/engine/install/linux-postinstall/) steps to run docker as a non-root user.
24-
25-
Install *make* on the edge:
26-
```bash
27-
sudo apt-get install build-essential
28-
```
295

306

317
### Install sshpass and the requirements
@@ -49,7 +25,7 @@ ip a | grep -A 2 'wlx' | grep 'inet ' | awk '{print $2}' | cut -d/ -f1
4925

5026
Then change the IP addresses on the inventory file
5127

52-
## docker compose devices
28+
## docker-compose devices
5329

5430
We are adding those devices to be able to trigger capture from 2 cameras connected on the usb port of your edge.
5531

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
- name: "Register edge on GCP hub"
2+
hosts: all
3+
tasks:
4+
- name: Create edge_ip file
5+
ansible.builtin.copy:
6+
content: "{{ IP_ADDRESS }}"
7+
dest: "{{ REMOTE_VIO_DIR }}/edge_orchestrator/config/edge_ip.txt"
8+
9+
- name: Upload edge_ip file on GCP
10+
google.cloud.gcp_storage_object:
11+
action: upload
12+
bucket: "{{ GCP_VIO_BUCKET }}"
13+
dest: "{{ EDGE_NAME }}/edge_ip.txt"
14+
src: "{{ REMOTE_VIO_DIR }}/edge_orchestrator/config/edge_ip.txt"
15+
project: "{{ GCP_VIO_PROJECT }}"
16+
auth_kind: "serviceaccount"
17+
service_account_file: "{{ REMOTE_VIO_DIR }}/edge_orchestrator/config/secrets/credentials.json"

deployment/edge/ansible/register_inventory_on_gcp_hub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: "Register inventory on GCP hub"
1+
- name: "Register edge on GCP hub"
22
hosts: all
33
tasks:
44
- name: Create edge_ip file

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ In case you want to run a specific module, each module has its own make command:
4242
Indeed each of the above target correspond to a command [docker-compose.yml](https://github.com/octo-technology/VIO/blob/main/docker-compose.yml). For example, the target `edge_orchestrator` correspond to :
4343

4444
```shell
45-
$ docker compose up -d --build edge_orchestrator
45+
$ docker-compose up -d --build edge_orchestrator
4646
```
4747

4848
To check all services are up and running you can run the command `docker ps`, you should see something like below:

edge_orchestrator/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,3 @@ MacOS:
2525
```bash
2626
brew install postgresql
2727
```
28-
MAC : 172.23.26.18
29-
ipconfig getifaddr en0
30-
31-
Intel : 192.168.1.25
32-
ip a | grep -A 2 'wlx' | grep 'inet ' | awk '{print $2}' | cut -d/ -f1

0 commit comments

Comments
 (0)