Deploy Intel® Smart Edge Open Developer Experience Kit without Edge Software Provisioner (ESP) in an Air-Gapped Environment
Preparation
Setup
# install pip3 cd ~/iotg/pwek-aio-offline-installer (cd pip-20.2.4 && python3 setup.py install) # install python packages ./pip.sh # setup pipenv (cd ~/iotg/dek && pipenv run bash ~/iotg/pwek-aio-offline-installer/pipenv.sh)
Setup SSH access with authorized key:
# generate a key pair # DO leave passphrase as empty ssh-keygen cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Add hostname into
sed -i "s/localhost.*\$/& $(hostname)/" /etc/hosts
Configure
ufw allow 80 ufw allow 8080 ufw allow 8081 ufw allow 5000
Install required packages:
cd ~/iotg/archives
dpkg -iR /root/iotg/archives/
apt --fix-broken install -y
Set variables for later usage:
# IP of the primary interface export HOST_IP=$(ip route get 1 | head -1 | awk '{print $7}') # double check echo $HOST_IP
Update the files for host IP:
cd ~/iotg sed -i -e "s/ansible_host=[0-9.]*/ansible_host=$HOST_IP/" pwek-aio-offline-installer/ansible_playbook/ubuntu/inventory.ini sed -i -e "s/IP=[0-9. ]*/IP=$HOST_IP/" pwek-aio-offline-installer/docker-compose.yml sed -i -e "s/ansible_host:[0-9. ]*/ansible_host: $HOST_IP/" dek/inventory.yml