From 02e4ec7b5d9dd90a4007e042e0517ac48ebd1ab8 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 11 Feb 2025 20:35:02 -0600 Subject: [PATCH] Initial commit --- 100-ubnt-unifi.list | 1 + Containerfile | 33 +++++++++++++++++++++++++++++++++ Jenkinsfile | 1 + mongodb-org-3.6.list | 1 + monodb-repo.gpg | 0 unifi-repo.gpg | Bin 0 -> 1196 bytes unifi.sh | 26 ++++++++++++++++++++++++++ 7 files changed, 62 insertions(+) create mode 100644 100-ubnt-unifi.list create mode 100644 Containerfile create mode 100644 Jenkinsfile create mode 100644 mongodb-org-3.6.list create mode 100644 monodb-repo.gpg create mode 100644 unifi-repo.gpg create mode 100755 unifi.sh diff --git a/100-ubnt-unifi.list b/100-ubnt-unifi.list new file mode 100644 index 0000000..b27b1a6 --- /dev/null +++ b/100-ubnt-unifi.list @@ -0,0 +1 @@ +deb [ arch=amd64,arm64 ] https://www.ui.com/downloads/unifi/debian stable ubiquiti diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..facf95f --- /dev/null +++ b/Containerfile @@ -0,0 +1,33 @@ +FROM docker.io/library/debian:bullseye-slim + +RUN --mount=type=cache,target=/var/cache \ + --mount=type=cache,target=/var/lib/apt \ + apt-get update \ + && apt-get install -y \ + --no-install-recommends \ + ca-certificates \ + apt-transport-https \ + && : + +COPY *.list /etc/apt/sources.list.d/ + +COPY *.gpg /etc/apt/trusted.gpg.d/ + +RUN --mount=type=cache,target=/var/cache \ + --mount=type=cache,target=/var/lib/apt \ + apt-get update \ + && apt-get install -y \ + --no-install-recommends \ + procps \ + tini \ + unifi \ + && : + +COPY unifi.sh /usr/local/sbin/unifi + +USER unifi:unifi + +VOLUME /var/lib/unifi +VOLUME /var/log/unifi + +CMD ["tini", "unifi"] diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c187df7 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1 @@ +buildContainerImage2() diff --git a/mongodb-org-3.6.list b/mongodb-org-3.6.list new file mode 100644 index 0000000..b18a27d --- /dev/null +++ b/mongodb-org-3.6.list @@ -0,0 +1 @@ +deb [trusted=yes] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 multiverse diff --git a/monodb-repo.gpg b/monodb-repo.gpg new file mode 100644 index 0000000..e69de29 diff --git a/unifi-repo.gpg b/unifi-repo.gpg new file mode 100644 index 0000000000000000000000000000000000000000..1859bcc6d37af27ee7dec12becbf55a66b890ef7 GIT binary patch literal 1196 zcmV;d1XKH&0SyFANR3ee2mrJAu|74A81njiRD}D_isS-S`WnzM7`=Qa++S=h;s42= zfA7C@iOE%BsjSUyUiU>x`ka#7yM0o!d^0CV|08Q_4NWE7$J-&+u4Yi?RAoc53g`XA zNF0ZK9unmMSd*^ypL;i`ylN9lf8*^t;spBi_4QCvVB9@r*|PGtO}8Vc4s1!yFXh9A z=;DcmB4_5t`O(N(5A$klz~D0FD3QI`A}hKU*eF!sAw!tk1SdQK4jd%%7=)RBVtv0LCWnsvftlV=Tc@`tA* zJZ+y5Xr(9i>|-iQ`-1=x0RRECB~@-|Mrj~KWp-t3Z*XODb09o*ZfRy|Eo5bOKy_kn zbS`6WZ9a(sI0O>`0stZf0!>JbQ34wS1`7!Y2Ll2I6$kw zrfh%N4U7C(@tN(FU(Sj2*`wl<`svj)p6;D=G{XGyp2o)Bn*d?rwELx1Qkx=GI|PMK1JFrE%^GC z{64Y2pZ4B2udo6D1GxbW1WibdQ2_`5w?-;({O9qV9a$C8pf8N5T83<>3Y!LlD2;Wg zgmkS?OnVVVy%9Vrtv#BgOCERs57`LKBzRxlv5^N6Fa!>BtXg@kr^3&BW8PW~i@K5f zf;gv8tx*tQ%dpF^pMUHjf^LnWpztZZhe4)oWvi6LTQ1nlzZ0CY-NLky7>;(({f1TS zqH&ES1$|U^XUu$CSYuJT1G}bTYe71Xd+Hk*d0R9yu#?kfro>44HaA4Pqs17ydT~Vc zIFCTwlZ&p@_2QQYRmfS`;Qwu0et01*KI0f_-01Q-DV00{*GO-PMV0vikf3JDMf=vQFC zr7Tbtng{=ED2(bpWq_?4$zo3ODn~2#cLNX&edBs&vgNHrA#BYd{QyUCEE`*VGS;O7 z*iSDq8$rP#TTlRuB--XzgYyHr1%8O?`i<2f48NLT>_-u6jVS=*oF#+ZtXGuq0fFf7 z(n&uLG%DJq4&W63IB$bQyblp3H^F$7rN=sLEXQrf$jR^mnRSqgpE6uE!R-vdx!5gZYy9uYKw(82hcGgBtcuA0JT%k>gb*SSKZ+C#OWAm`YoBUfqg+*F0okMJ2 z3I?I8k1O;*lPEpzeZPf)l-OY)=H=P^i$KoT8IJ3RJq^vM6fL^byyecV_!307NS>11 K5INbf0ssRMaV;eP literal 0 HcmV?d00001 diff --git a/unifi.sh b/unifi.sh new file mode 100755 index 0000000..a40d702 --- /dev/null +++ b/unifi.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +UNIFI_CORE_ENABLED=${UNIFI_CORE_ENABLED:-"false"} +UNIFI_JVM_OPTS=${UNIFI_JVM_OPTS:-"-Xmx1024M -XX:+UseParallelGC"} + +cd /usr/lib/unifi + +exec /usr/bin/java \ + -Dfile.encoding=UTF-8 \ + -Djava.awt.headless=true \ + -Dapple.awt.UIElement=true \ + -Dunifi.core.enabled=${UNIFI_CORE_ENABLED} \ + $UNIFI_JVM_OPTS \ + -XX:+ExitOnOutOfMemoryError \ + -XX:+CrashOnOutOfMemoryError \ + -XX:ErrorFile=/var/log/unifi/hs_err_pid%p.log \ + -Dunifi.datadir=/var/lib/unifi \ + -Dunifi.logdir=/var/log/unifi \ + -Dunifi.rundir=/run/unifi \ + --add-opens java.base/java.lang=ALL-UNNAMED \ + --add-opens java.base/java.time=ALL-UNNAMED \ + --add-opens java.base/sun.security.util=ALL-UNNAMED \ + --add-opens java.base/java.io=ALL-UNNAMED \ + --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED \ + -jar /usr/lib/unifi/lib/ace.jar \ + start