containerizing omada controller

This commit is contained in:
Ibrahim Mkusa 2024-11-17 16:09:13 -05:00
parent e56d4c6c09
commit 64c10516df
9 changed files with 62 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
id_rsa.pub id_rsa.pub
Omada_SDN_Controller_v5.14.32.4_linux_x64

View File

@ -1,3 +1,3 @@
## AMI builds using packer ## AMI builds using packer
Packer builds to automate image creation. Got tired of doing it manually. Builds to automate image and container creation. Got tired of doing it manually.

4
docker/omada/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM debian:bookworm
COPY ./omada-install.sh .
RUN chmod +x omada-install.sh;sudo ./omada-install.sh
CMD ["tpeap", "start"]

6
docker/omada/download_omada.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
wget https://static.tp-link.com/upload/software/2024/202411/20241115/Omada_SDN_Controller_v5.14.32.4_linux_x64.tar.gz -O omada_sdn.tar.gz
mkdir omada
tar xvf omada_sdn.tar.gz -C omada
rm -rf omada_sdn.tar.gz

View File

@ -0,0 +1,29 @@
Omada Controller v5.14.32.4 for Linux (X64)
For how to install Omada Controller on the Linux operation system, please refer to the faq: https://www.tp-link.com/en/support/faq/2917/
If you are using the old controller and planning to upgrade to this version, please follow the Omada Controller Upgrade Guide.
Upgrade Guide: https://www.tp-link.com/en/omada-sdn/controller-upgrade
Notes:
1. This version of Omada Controller supports Java 8 and MongoDB 3.0-3.6. And there are no built-in JRE and MongoDB, so you need to install them by yourself.
2. You need to install jsvc and curl first before you install Omada Controller.
3. If you want Omada Controller to run as a non-root user (it runs as root by default), please refer to https://www.tp-link.com/support/faq/3583/
4. Supporting 64-bit Linux operating system, including Ubuntu 14.04/16.04/18.04, CentOS 6.x/7.x, Fedora 20 (or above) and Debian 8/9.
Installation Steps:
1. Install Java 8.
2. Install MongoDB 3.0-3.6
3. Install jsvc
4. Install curl
5. Install Omada SDN Controller
5. Start the Omada Controller service using the command: tpeap start. Launch a web browser and visit http://localhost:8088 or https://localhost:8043 to enter the management interface of Omada Controller.
You can also use the following commands to stop the service or view the service status:
To stop the service: tpeap stop
To view the service status: tpeap status
6. Follow the quick setup wizard to complete the basic settings.
For more instructions, please refer to the User Guide of Omada Controller.
Tips:
1. To uninstall Omada Controller, run the command: sudo bash /opt/tplink/EAPController/uninstall.sh
2. If the Omada Controller cannot detect EAP devices, it is possibly because the firewall intercepts the service.
Please make sure that the ports 8088, 8043, 27001, 27002, 29810, 29811, 29812, 29813 and 29814 are available.

21
docker/omada/omada_install.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
function install_prereqs() {
sudo apt install -y jsvc curl default-jre default-jdk
sudo apt-get install gnupg curl -y
}
function install_mongodb () {
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
--dearmor
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
sudo apt-get update -y
sudo apt-get install -y mongodb-org
}
install_prereqs
install_mongodb
cd omada/Omada_SDN_Controller_v5.14.32.4_linux_x64/ || exit
sudo ./install.sh