Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
WIKI
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GOM_2020
  • WIKI
  • Wiki
  • Install Edge & Gom Service

Install Edge & Gom Service · Changes

Page history
Create Install Edge & Gom Service authored Nov 19, 2020 by 김명섭's avatar 김명섭
Hide whitespace changes
Inline Side-by-side
Showing with 123 additions and 0 deletions
+123 -0
  • Install-Edge-&-Gom-Service.md Install-Edge-&-Gom-Service.md +123 -0
  • No files found.
Install-Edge-&-Gom-Service.md 0 → 100644
View page @ 8097331a
# ALL NODE DO
## INSTALL EDGE_CLOUD
cd /home/pi
rm -rf edge_cloud
git clone http://gitlab.icnslab.net/gom_2020/edge_cloud.git
## PREPARE IMAGE AND STORAGE
docker pull icnslab/project_gom:ad4e
docker pull icnslab/project_gom:ml4e
cd /home/pi/edge_cloud
docker run -d --name minio --restart=always -p 9000:9000 --network=host -v /home/pi/edge_cloud/volume/minio:/data -e "MINIO_ACCESS_KEY=kms@icns" -e "MINIO_SECRET_KEY=iloveicns1@3$" dimianstudio/minio-arm server http://192.168.4.129:9000/data/export{1...4} http://192.168.4.130:9000/data/export{1...4} http://192.168.4.131:9000/data/export{1...4} http://192.168.4.132:9000/data/export{1...4}
# MANAGER DO
## INSTALL REDIS
cd /home/pi/edge_cloud
docker run -d --name redis --restart=always -p 6379:6379 --network=host -v /home/pi/edge_cloud/volume/redis:/data redis
## SAM
cd /home/pi/edge_cloud/SAM
sudo pip3 install --upgrade python-iptables
sudo pip3 install minio
python3 main.py
## IPTABLES
sudo update-alternatives --config iptables
sudo mv /usr/sbin/iptables /root/scripts
sudo ln -s /usr/sbin/iptables-legacy /usr/sbin/iptables
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i eth1 -o eth0
sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o eth1
sudo apt install iptables-persistent netfilter-persistent
sudo systemctl enable netfilter-persistent
1> /proc/sys/net/bridge/bridge-nf-call-iptables
1> /proc/sys/net/bridge/bridge-nf-call-arptables
vi /etc/sysctl.conf
~~~
net.ipv4.ip_forward=1
net.bridge.bridge-nf-call-arptables=1
net.bridge.bridge-nf-call-iptables=1
~~~
sudo modprobe br_netfilter
sudo lsmod | grep br_netfilter
sudo sysctl -p
sudo netfilter-persistent save
## DHCPCD
vi /etc/dhcpcd.conf
~~~
interface eth1
static ip_address=172.16.12.100 /24
~~~
## DNSMASQ
apt-get install -y dnsmasq
vi /etc/dnsmasq.conf
~~~
interface=eth1
dhcp-range=172.16.12.10,172.16.12.200,255.255.255.0,24h
dhcp-option=option:router,172.16.12.100
~~~
service dnsmasq restart
service dhcpcd restart
sudo netfilter-persistent save
# INSTALL GOM_SERVICE
cd /home/pi
git clone http://gitlab.icnslab.net/gom_2020/gom_service.git
cd gom_service
sh install_edge.sh
# INSTALL EDGE_SERVICE
cd /home/pi/edge_cloud
git clone http://gitlab.icnslab.net/gom_2020/edge_service.git
mkdir /usr/lib/python3/dist-packages/main
cp -r edge_service/src/main/* /usr/lib/python3/dist-packages/main
sudo pip3 install paho-mqtt
sudo vi /etc/rc.local
~~~
sleep 30
python3 /home/pi/edge_cloud/edge_service/src/main/__init__.py &
~~~
\ No newline at end of file
Clone repository
  • Age and gender recognition model generation and usage
  • DeepLens Project
  • Edge monitoring
  • History
    • KMS
  • Install Edge & Gom Service
  • Minio
  • Network
  • Raspberry pi Cluster Manual
  • Redis
  • Home
  • micro_service