-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathDockerfile.v5.x
27 lines (21 loc) · 1.31 KB
/
Dockerfile.v5.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# rebased/repackaged base image that only updates existing packages
ARG BASE=mbentley/ubuntu:20.04
FROM ${BASE}
LABEL maintainer="Matt Bentley <[email protected]>"
LABEL org.opencontainers.image.source="https://github.com/mbentley/docker-omada-controller"
COPY healthcheck.sh install.sh /
# valid values: amd64 (default) | arm64 | armv7l
ARG ARCH=amd64
# install version (major.minor or full version); OMADA_URL set in install.sh
ARG INSTALL_VER="5.15.8.2"
ARG NO_MONGODB=false
# install omada controller (instructions taken from install.sh)
RUN /install.sh &&\
rm /install.sh
COPY entrypoint-5.x.sh /entrypoint.sh
WORKDIR /opt/tplink/EAPController/lib
EXPOSE 8088 8043 8843 29810/udp 29811 29812 29813 29814
HEALTHCHECK --start-period=5m CMD /healthcheck.sh
VOLUME ["/opt/tplink/EAPController/data","/opt/tplink/EAPController/logs"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["java","-server","-Xms128m","-Xmx1024m","-XX:MaxHeapFreeRatio=60","-XX:MinHeapFreeRatio=30","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=/opt/tplink/EAPController/logs/java_heapdump.hprof","-Djava.awt.headless=true","--add-opens","java.base/sun.security.x509=ALL-UNNAMED","--add-opens","java.base/sun.security.util=ALL-UNNAMED","-cp","/opt/tplink/EAPController/lib/*::/opt/tplink/EAPController/properties:","com.tplink.smb.omada.starter.OmadaLinuxMain"]