An Omada Controller Docker container built for an ARM64v8 (aarch64) Raspberry Pi4 using Balena
This image makes use of omada-sdn-controller-4.2.4_1_all.deb made by the TP-link community available with the following link: https://community.tp-link.com/en/business/forum/topic/162210
THIS IS NOT A FULLY AUTOMATED BUILD!
The Oracle JDK License has changed for releases starting April 16, 2019. The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. Please review the FAQ for more information.
Commercial license and support is available with a low cost Java SE Subscription.
Oracle also provides the latest OpenJDK release under the open source GPL License at jdk.java.net.
Reference: https://hub.docker.com/_/oracle-serverjre-8
omada:
build: ./omada
container_name: omada-controller
privileged: true
network_mode: host
volumes:
- omada-data:/opt/tplink/OmadaController/data
- omada-work:/opt/tplink/OmadaController/work
- omada-logs:/opt/tplink/OmadaController/logs
ports:
- 8088:8088
- 8043:8043
restart: unless-stopped
Component | Version |
---|---|
Omada Controller | v4.2.4 |
Java ORACLE JDK | v1.8.0 |
MongoDB | v2.6.10 |
git clone https://github.com/HDebeuf/balena-raspberry-pi4-omada-controller.git
Go on the official Oracle website in order to download the Java Oracle 1.8.0 JDK. You'll have to accept the license aggreements and create a personnal account.
Rename the downloaded JDK to java_jdk.tar.gz
and place it in the project folder
Follow the Balena documentation to push your image to your Raspberry Pi 4. !! It takes approximatelly 5 minutes to upload your source package to balena cloud due to the heavy Java JDK .tar.gz file
cd ProjectFolder
balena push ProjectName --emulated
!! Omada may throw a Java error on first run due to the volume creation. Simply retry the push
Configure your Omada Controller following the setup tutorial.
In order to reduce build time, you may upload the Java JDK on a personnal download link and let the container process it by himself during build.
Simply add your download link to the Dockerfile_wget_java_jdk
file and rename it to Dockerfile
.
ENV OMADA_JAVA_JDK_DOWNLOAD_URL https://add-your-link-here.com
You may use a OneDrive link for example -> https://unix.stackexchange.com/questions/223734/how-to-download-files-and-folders-from-onedrive-using-wget
- Right-click on the file you are interested in download (from web interface), and choose Embed.
- Press "Generate HTML code to embed this file".
- Copy the part contained in the "" of src is your link. This will look like <https://onedrive.live.com/embed?cid=6EBB03E38A53ED3E& resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA>.
- Replace embed with download. This will look like https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA.
- Add &download=1 to the link. This will look like https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA&download=1.