Skip to content

Commit 0b09187

Browse files
committed
Create 8.5/official, v8.5.6 - Promote 8.5 official to latest - Tag 8.5.6 release - Archive 8.3
1 parent 25f40cb commit 0b09187

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1152
-17
lines changed

.github/workflows/build-8.4-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build 8.4 Beta
1+
name: Build Beta
22

33
on:
44
workflow_dispatch:
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
name: Build Official
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 8.4/official/**
10+
- .github/workflows/build-8.4-official.yml
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
-
17+
name: Checkout
18+
uses: actions/checkout@v4
19+
-
20+
name: Set up dynamic build ARGs
21+
id: getargs
22+
run: echo "version=$(cat ./8.4/official/VERSION)" >> $GITHUB_OUTPUT
23+
-
24+
name: Set up Docker metadata for Alpine
25+
id: meta-alpine
26+
uses: docker/metadata-action@v5
27+
with:
28+
images: |
29+
${{ github.repository }}
30+
ghcr.io/${{ github.repository }}
31+
tags: |
32+
type=raw,8.4-alpine
33+
labels: |
34+
org.opencontainers.image.vendor=The Goofball - [email protected]
35+
org.opencontainers.image.title=UniFi Controller
36+
org.opencontainers.image.description=UniFi Controller
37+
org.opencontainers.image.version=${{ steps.getargs.outputs.version }}-Alpine
38+
-
39+
name: Set up Docker metadata for Debian
40+
id: meta-debian
41+
uses: docker/metadata-action@v5
42+
with:
43+
images: |
44+
${{ github.repository }}
45+
ghcr.io/${{ github.repository }}
46+
tags: |
47+
type=raw,8.4-debian
48+
labels: |
49+
org.opencontainers.image.vendor=The Goofball - [email protected]
50+
org.opencontainers.image.title=UniFi Controller
51+
org.opencontainers.image.description=UniFi Controller
52+
org.opencontainers.image.version=${{ steps.getargs.outputs.version }}-Debian
53+
-
54+
name: Set up Docker metadata for Ubuntu
55+
id: meta-ubuntu
56+
uses: docker/metadata-action@v5
57+
with:
58+
images: |
59+
${{ github.repository }}
60+
ghcr.io/${{ github.repository }}
61+
tags: |
62+
type=raw,8.4
63+
type=raw,8.4-ubuntu
64+
labels: |
65+
org.opencontainers.image.vendor=The Goofball - [email protected]
66+
org.opencontainers.image.title=UniFi Controller
67+
org.opencontainers.image.description=UniFi Controller
68+
org.opencontainers.image.version=${{ steps.getargs.outputs.version }}-Ubuntu
69+
-
70+
name: Set up QEMU
71+
uses: docker/setup-qemu-action@v3
72+
-
73+
name: Set up Docker Buildx
74+
uses: docker/setup-buildx-action@v3
75+
-
76+
name: Login to DockerHub
77+
uses: docker/login-action@v3
78+
with:
79+
username: ${{ github.repository_owner }}
80+
password: ${{ secrets.DOCKERHUB_TOKEN }}
81+
-
82+
name: Login to GHCR
83+
uses: docker/login-action@v3
84+
with:
85+
registry: ghcr.io
86+
username: ${{ github.repository_owner }}
87+
password: ${{ secrets.GITHUB_TOKEN }}
88+
-
89+
name: Build and push Alpine Docker image
90+
uses: docker/build-push-action@v6
91+
with:
92+
context: ./8.4/official
93+
file: ./8.4/official/Dockerfile.alpine
94+
platforms: linux/amd64,linux/arm64
95+
push: ${{ github.event_name != 'pull_request' }}
96+
tags: ${{ steps.meta-alpine.outputs.tags }}
97+
labels: ${{ steps.meta-alpine.outputs.labels }}
98+
build-args: VERSION=${{ steps.getargs.outputs.version }}
99+
-
100+
name: Build and push Debian Docker image
101+
uses: docker/build-push-action@v6
102+
with:
103+
context: ./8.4/official
104+
file: ./8.4/official/Dockerfile.debian
105+
platforms: linux/amd64
106+
push: ${{ github.event_name != 'pull_request' }}
107+
tags: ${{ steps.meta-debian.outputs.tags }}
108+
labels: ${{ steps.meta-debian.outputs.labels }}
109+
build-args: VERSION=${{ steps.getargs.outputs.version }}
110+
-
111+
name: Build and push Ubuntu Docker image
112+
uses: docker/build-push-action@v6
113+
with:
114+
context: ./8.4/official
115+
file: ./8.4/official/Dockerfile
116+
platforms: linux/amd64,linux/arm64
117+
push: ${{ github.event_name != 'pull_request' }}
118+
tags: ${{ steps.meta-ubuntu.outputs.tags }}
119+
labels: ${{ steps.meta-ubuntu.outputs.labels }}
120+
build-args: VERSION=${{ steps.getargs.outputs.version }}

.github/workflows/build-8.5-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build 8.5 Beta
1+
name: Build Beta
22

33
on:
44
workflow_dispatch:

.github/workflows/build-latest.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- main
88
paths:
9-
- 8.4/official/**
9+
- 8.5/official/**
1010
- .github/workflows/build-latest.yml
1111

1212
jobs:
@@ -19,7 +19,7 @@ jobs:
1919
-
2020
name: Set up dynamic build ARGs
2121
id: getargs
22-
run: echo "version=$(cat ./8.4/official/VERSION)" >> $GITHUB_OUTPUT
22+
run: echo "version=$(cat ./8.5/official/VERSION)" >> $GITHUB_OUTPUT
2323
-
2424
name: Set up Docker metadata for Alpine
2525
id: meta-alpine
@@ -30,7 +30,7 @@ jobs:
3030
ghcr.io/${{ github.repository }}
3131
tags: |
3232
type=raw,latest-alpine
33-
type=raw,8.4-alpine
33+
type=raw,8.5-alpine
3434
labels: |
3535
org.opencontainers.image.vendor=The Goofball - [email protected]
3636
org.opencontainers.image.title=UniFi Controller
@@ -46,7 +46,7 @@ jobs:
4646
ghcr.io/${{ github.repository }}
4747
tags: |
4848
type=raw,latest-debian
49-
type=raw,8.4-debian
49+
type=raw,8.5-debian
5050
labels: |
5151
org.opencontainers.image.vendor=The Goofball - [email protected]
5252
org.opencontainers.image.title=UniFi Controller
@@ -62,9 +62,9 @@ jobs:
6262
ghcr.io/${{ github.repository }}
6363
tags: |
6464
type=raw,latest
65-
type=raw,8.4
65+
type=raw,8.5
6666
type=raw,latest-ubuntu
67-
type=raw,8.4-ubuntu
67+
type=raw,8.5-ubuntu
6868
labels: |
6969
org.opencontainers.image.vendor=The Goofball - [email protected]
7070
org.opencontainers.image.title=UniFi Controller
@@ -93,8 +93,8 @@ jobs:
9393
name: Build and push Alpine Docker image
9494
uses: docker/build-push-action@v6
9595
with:
96-
context: ./8.4/official
97-
file: ./8.4/official/Dockerfile.alpine
96+
context: ./8.5/official
97+
file: ./8.5/official/Dockerfile.alpine
9898
platforms: linux/amd64,linux/arm64
9999
push: ${{ github.event_name != 'pull_request' }}
100100
tags: ${{ steps.meta-alpine.outputs.tags }}
@@ -104,8 +104,8 @@ jobs:
104104
name: Build and push Debian Docker image
105105
uses: docker/build-push-action@v6
106106
with:
107-
context: ./8.4/official
108-
file: ./8.4/official/Dockerfile.debian
107+
context: ./8.5/official
108+
file: ./8.5/official/Dockerfile.debian
109109
platforms: linux/amd64
110110
push: ${{ github.event_name != 'pull_request' }}
111111
tags: ${{ steps.meta-debian.outputs.tags }}
@@ -115,8 +115,8 @@ jobs:
115115
name: Build and push Ubuntu Docker image
116116
uses: docker/build-push-action@v6
117117
with:
118-
context: ./8.4/official
119-
file: ./8.4/official/Dockerfile
118+
context: ./8.5/official
119+
file: ./8.5/official/Dockerfile
120120
platforms: linux/amd64,linux/arm64
121121
push: ${{ github.event_name != 'pull_request' }}
122122
tags: ${{ steps.meta-ubuntu.outputs.tags }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

8.5/official/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.5.6
File renamed without changes.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
* **2024-10-11:**
2+
* Create 8.5/official, v[8.5.6](https://community.ui.com/releases/UniFi-Network-Application-8-5-6/bfa15dd8-8b58-4d40-9d83-73ebe8c9a955)
3+
* Promote 8.5 official to "latest", "latest-alpine" and "latest-ubuntu" tags
4+
* Tag 8.5.6 release
5+
* Archive 8.3
6+
---
17
* **2024-10-03:**
28
* Update 8.5/beta to v[8.5.6](https://community.ui.com/releases/UniFi-Network-Application-8-5-6/a3338adf-1d59-42e4-8734-95f24c135e82)
39
---

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
## Docker tags:
77
| Tag | UniFi Version | Description | Release Date |
88
| --- | :---: | --- | :---: |
9-
| [8.4, 8.4-alpine, 8.4-debian, 8.4-ubuntu, latest, latest-alpine, latest-debian, latest-ubuntu](https://github.com/goofball222/unifi/blob/main/8.4/official/Dockerfile) | [8.4.62](https://community.ui.com/releases/UniFi-Network-Application-8-4-62/40240312-bb43-4648-adab-5b05f3d4354e) | UniFi Network Application official release | 2024-09-11 |
9+
| [8.5, 8.5-alpine, 8.5-debian, 8.5-ubuntu, latest, latest-alpine, latest-debian, latest-ubuntu](https://github.com/goofball222/unifi/blob/main/8.5/official/Dockerfile) | [8.5.6](https://community.ui.com/releases/UniFi-Network-Application-8-5-6/bfa15dd8-8b58-4d40-9d83-73ebe8c9a955) | UniFi Network Application official release | 2024-10-09 |
1010
| [8.5-beta, 8.5-alpine-beta, 8.5-debian-beta, 8.5-ubuntu-beta, latest-beta, latest-alpine-beta, latest-debian-beta, latest-ubuntu-beta](https://github.com/goofball222/unifi/blob/main/8.5/beta/Dockerfile) | [8.5.6](https://community.ui.com/releases/UniFi-Network-Application-8-5-6/a3338adf-1d59-42e4-8734-95f24c135e82) | UniFi Network Application beta/release candidate | 2024-10-03 |
11-
| [8.4-beta, 8.4-alpine-beta, 8.4-debian-beta, 8.4-ubuntu-beta](https://github.com/goofball222/unifi/blob/main/8.4/beta/Dockerfile) | [8.4.62](https://community.ui.com/releases/UniFi-Network-Application-8-4-62/01f9801d-23d9-42e1-b2da-f4862db4948d) | UniFi Network Application beta/release candidate | 2024-09-02 |
11+
| [8.4, 8.4-alpine, 8.4-debian, 8.4-ubuntu](https://github.com/goofball222/unifi/blob/main/8.4/official/Dockerfile) | [8.4.62](https://community.ui.com/releases/UniFi-Network-Application-8-4-62/40240312-bb43-4648-adab-5b05f3d4354e) | UniFi Network Application official release | 2024-09-11 |
1212
| [8.3, 8.3-alpine, 8.3-debian, 8.3-ubuntu](https://github.com/goofball222/unifi/blob/main/8.3/official/Dockerfile) | [8.3.32](https://community.ui.com/releases/UniFi-Network-Application-8-3-32/54f3b506-afcf-4a7c-aba6-01a884dd9003) | UniFi Network Application official release | 2024-07-15 |
13+
| [8.5.6](https://github.com/goofball222/unifi/releases/tag/8.5.6) | [8.5.6](https://community.ui.com/releases/UniFi-Network-Application-8-5-6/bfa15dd8-8b58-4d40-9d83-73ebe8c9a955) | Static official release tag/image | 2024-10-09 |
1314
| [8.4.62](https://github.com/goofball222/unifi/releases/tag/8.4.62) | [8.4.62](https://community.ui.com/releases/UniFi-Network-Application-8-4-62/40240312-bb43-4648-adab-5b05f3d4354e) | Static official release tag/image | 2024-09-11 |
1415
| [8.3.32](https://github.com/goofball222/unifi/releases/tag/8.3.32) | [8.3.32](https://community.ui.com/releases/UniFi-Network-Application-8-3-32/54f3b506-afcf-4a7c-aba6-01a884dd9003) | Static official release tag/image | 2024-07-15 |
1516
| [8.2.93](https://github.com/goofball222/unifi/releases/tag/8.2.93) | [8.2.93](https://community.ui.com/releases/UniFi-Network-Application-8-2-93/fce86dc6-897a-4944-9c53-1eec7e37e738) | Static official release tag/image | 2024-06-03 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

archive/8.3/official/Dockerfile

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
FROM ubuntu:20.04
2+
3+
ARG BUILD_DATE
4+
ARG VCS_REF
5+
ARG VERSION
6+
7+
LABEL \
8+
org.opencontainers.image.vendor="The Goofball - [email protected]" \
9+
org.opencontainers.image.url="https://github.com/goofball222/unifi" \
10+
org.opencontainers.image.title="UniFi Controller" \
11+
org.opencontainers.image.description="UniFi Controller" \
12+
org.opencontainers.image.version=${VERSION}-Ubuntu \
13+
org.opencontainers.image.source="https://github.com/goofball222/unifi" \
14+
org.opencontainers.image.revision=${VCS_REF} \
15+
org.opencontainers.image.created=${BUILD_DATE} \
16+
org.opencontainers.image.licenses="Apache-2.0"
17+
18+
ENV \
19+
BIND_PRIV=false \
20+
DEBIAN_FRONTEND=noninteractive \
21+
DEBUG=false \
22+
JVM_EXTRA_OPTS= \
23+
JVM_INIT_HEAP_SIZE= \
24+
JVM_MAX_HEAP_SIZE=1024M \
25+
PGID=999 \
26+
PUID=999 \
27+
RUN_CHOWN=true \
28+
RUNAS_UID0=false
29+
30+
WORKDIR /usr/lib/unifi
31+
32+
COPY root /
33+
34+
RUN set -x \
35+
&& groupadd -r unifi -g $PGID \
36+
&& useradd --no-log-init -r -u $PUID -g $PGID unifi \
37+
&& apt-get -y update \
38+
&& apt-get -y install apt-utils \
39+
&& apt-get -y --no-install-recommends install \
40+
binutils curl dirmngr \
41+
gosu libcap2 libcap2-bin \
42+
procps tzdata \
43+
&& apt-get -y --no-install-recommends install \
44+
ca-certificates-java openjdk-17-jre-headless \
45+
&& apt-get -y --no-install-recommends install \
46+
mongodb-server-core \
47+
&& rm -rf /usr/bin/mongos \
48+
&& curl -sSL https://dl.ui.com/unifi/${VERSION}/unifi_sysvinit_all.deb -o /tmp/unifi-${VERSION}.deb \
49+
&& apt-get -y purge \
50+
dirmngr \
51+
&& apt-get -y autoremove --purge \
52+
&& apt-get -y clean autoclean \
53+
&& dpkg --force-all -i /tmp/unifi-${VERSION}.deb \
54+
&& rm -rf data logs run \
55+
&& bash -c 'mkdir -p {data,logs,run,cert}' \
56+
&& chown -R unifi:unifi /usr/lib/unifi \
57+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/*
58+
59+
EXPOSE 3478/udp 6789/tcp 8080/tcp 8443/tcp 8843/tcp 8880/tcp 10001/udp
60+
61+
VOLUME ["/usr/lib/unifi/cert", "/usr/lib/unifi/data", "/usr/lib/unifi/logs"]
62+
63+
HEALTHCHECK --start-period=2m CMD /usr/local/bin/docker-healthcheck.sh
64+
65+
ENTRYPOINT ["docker-entrypoint.sh"]
66+
67+
CMD ["unifi"]
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
FROM alpine:latest
2+
3+
ARG BUILD_DATE
4+
ARG VCS_REF
5+
ARG VERSION
6+
7+
LABEL \
8+
org.opencontainers.image.vendor="The Goofball - [email protected]" \
9+
org.opencontainers.image.url="https://github.com/goofball222/unifi" \
10+
org.opencontainers.image.title="UniFi Controller" \
11+
org.opencontainers.image.description="UniFi Controller" \
12+
org.opencontainers.image.version=${VERSION}-Alpine \
13+
org.opencontainers.image.source="https://github.com/goofball222/unifi" \
14+
org.opencontainers.image.revision=${VCS_REF} \
15+
org.opencontainers.image.created=${BUILD_DATE} \
16+
org.opencontainers.image.licenses="Apache-2.0"
17+
18+
ENV \
19+
BIND_PRIV=false \
20+
DEBUG=false \
21+
JVM_EXTRA_OPTS= \
22+
JVM_INIT_HEAP_SIZE= \
23+
JVM_MAX_HEAP_SIZE=1024M \
24+
PGID=999 \
25+
PUID=999 \
26+
RUN_CHOWN=true \
27+
RUNAS_UID0=false
28+
29+
WORKDIR /usr/lib/unifi
30+
31+
COPY root /
32+
33+
RUN set -x \
34+
&& delgroup ping \
35+
&& addgroup -g $PGID unifi \
36+
&& adduser -D -G unifi -u $PUID unifi \
37+
&& apk add -q --no-cache \
38+
gcompat libc6-compat \
39+
&& apk add -q --no-cache \
40+
bash binutils coreutils curl libcap \
41+
openjdk17-jre openssl shadow su-exec \
42+
tzdata \
43+
&& curl -sSL https://dl.ui.com/unifi/${VERSION}/UniFi.unix.zip -o /tmp/UniFi.unix.${VERSION}.zip \
44+
&& unzip -q /tmp/UniFi.unix.${VERSION}.zip -d /tmp \
45+
&& mv /tmp/UniFi/* /usr/lib/unifi/ \
46+
&& bash -c 'mkdir -p {data,logs,run,cert}' \
47+
&& chown -R unifi:unifi /usr/lib/unifi \
48+
&& rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
49+
50+
EXPOSE 3478/udp 6789/tcp 8080/tcp 8443/tcp 8843/tcp 8880/tcp 10001/udp
51+
52+
VOLUME ["/usr/lib/unifi/cert", "/usr/lib/unifi/data", "/usr/lib/unifi/logs"]
53+
54+
HEALTHCHECK --start-period=2m CMD /usr/local/bin/docker-healthcheck.sh
55+
56+
ENTRYPOINT ["docker-entrypoint.sh"]
57+
58+
CMD ["unifi"]

0 commit comments

Comments
 (0)