Note: RHEL or any other Docker-supporting Linux distro should work. Install the prerequisites analogously.
Upgrade to 22.04.sudo -i
byobu
apt update && apt upgrade -y && do-release-upgrade -f DistUpgradeViewNonInteractive
reboot
Get a root prompt.
sudo -i
Updated package list.
apt update
Install pre-requisites.
apt install apt-transport-https ca-certificates curl software-properties-common ntpdate -y
Add Docker repo key.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add Docker repo.
add-apt-repository --yes "deb [arch=amd64] https://download.docker.com/linux/ubuntu jammy stable"
It should have updated the package list. If not, update it.
apt update
Install Docker-CE, Docker-compose, & unzip.
apt install docker-ce docker-compose unzip -y
Create the Longship network for EDGE Manager containers.
docker network create --subnet=172.24.0.0/16 --gateway=172.24.0.1 longship_network
Grab the AWS CLI, unzip, & install.
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
Provide AWS CLI your AWS credentials. Get the actual inputs from your sales rep.
aws configure
# Access key id - XXXXXXXXX
# Secret Access key - XXXXXXXXX
# Default Region - us-west-2
# Default output format - leave blank
Test it by logging in to AWS ECR in order to pull down the container images later.
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 836891784212.dkr.ecr.us-west-2.amazonaws.com
Prepare directories.
mkdir -p /opt/inseego/bin/edge_manager
mkdir -p /opt/inseego/srv
mkdir -p /opt/inseego/stage
cd /opt/inseego/stage
Review the available versions here: https://repo.inseego5g.net/debs/upgrade or:
apt install w3m -y && w3m https://repo.inseego5g.net/debs/upgrade/ | grep -E '202' | awk '{print $2}'
2023.16.2.2 is currently the latest RTM release.
Important: set version here
EM_VERSION=yyyy.ss.x.z
e.g.
EM_VERSION=2023.18.1.1
echo $EM_VERSION
Grab the EDGE Manager docker-compose.yaml & initialization scripts.
mkdir -p /opt/inseego/stage
cd /opt/inseego/stage
wget https://repo.inseego5g.net/debs/upgrade/$EM_VERSION/upgrade.tar
Un-TAR & copy scripts
tar xvf upgrade.tar
cp init-scripts/* /opt/inseego/bin/edge_manager/
cp fresh-install/docker-compose.yaml /opt/inseego/bin/edge_manager/
Set NTP configuration
cat <<EOF > /opt/inseego/srv/ntp.conf
driftfile /var/lib/ntp/ntp.drift
leapfile /usr/share/zoneinfo/leap-seconds.list
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
pool 0.ubuntu.pool.ntp.org iburst
pool 1.ubuntu.pool.ntp.org iburst
pool 2.ubuntu.pool.ntp.org iburst
pool 3.ubuntu.pool.ntp.org iburst
pool ntp.ubuntu.com
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
restrict 127.0.0.1
restrict ::1
restrict source notrap nomodify noquery
EOF
Pre-download Docker containers
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 836891784212.dkr.ecr.us-west-2.amazonaws.com
cd /opt/inseego/bin/edge_manager
echo "EM_VERSION=$EM_VERSION" > .env
Verify version in .env file.
cat .env
docker-compose pull
See Configure port forwarding and any necessary firewall rules
See Deployment