This repository was archived by the owner on Jan 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +32
-47
lines changed Expand file tree Collapse file tree 8 files changed +32
-47
lines changed Original file line number Diff line number Diff line change 1
- FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-xenial
1
+ FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-focal
2
2
3
3
# set version label
4
4
ARG BUILD_DATE
@@ -7,42 +7,9 @@ ARG UNIFI_VERSION
7
7
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8
8
LABEL maintainer="aptalca"
9
9
10
- # environment settings
11
- ARG UNIFI_BRANCH="stable"
12
- ARG DEBIAN_FRONTEND="noninteractive"
13
-
14
- RUN \
15
- echo "**** install packages ****" && \
16
- apt-get update && \
17
- apt-get install -y \
18
- binutils \
19
- jsvc \
20
- logrotate \
21
- mongodb-server \
22
- openjdk-8-jre-headless \
23
- wget && \
24
- echo "**** install unifi ****" && \
25
- if [ -z ${UNIFI_VERSION+x} ]; then \
26
- UNIFI_VERSION=$(curl -sX GET http://dl-origin.ubnt.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \
27
- |grep -A 7 -m 1 'Package: unifi' \
28
- | awk -F ': ' '/Version/{print $2;exit}' \
29
- | awk -F '-' '{print $1}'); \
30
- fi && \
31
- mkdir -p /app && \
32
- curl -o \
33
- /app/unifi.deb -L \
34
- "https://dl.ui.com/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" && \
35
- echo "**** cleanup ****" && \
36
- apt-get clean && \
37
- rm -rf \
38
- /tmp/* \
39
- /var/lib/apt/lists/* \
40
- /var/tmp/*
41
-
42
10
# add local files
43
11
COPY root/ /
44
12
45
13
# Volumes and Ports
46
14
WORKDIR /usr/lib/unifi
47
- VOLUME /config
48
- EXPOSE 8080 8443 8843 8880
15
+
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ The architectures supported by this image are:
56
56
| :----: | :----: | ---- |
57
57
| x86-64 | ✅ | amd64-\< version tag\> |
58
58
| arm64 | ✅ | arm64v8-\< version tag\> |
59
- | armhf| ✅ | arm32v7- \< version tag \> |
59
+ | armhf| ❌ | |
60
60
61
61
## Application Setup
62
62
@@ -261,6 +261,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
261
261
262
262
## Versions
263
263
264
+ * ** 01.06.22:** - Deprecate armhf.
264
265
* ** 23.12.21:** - Move min/max memory config from run to system.properties.
265
266
* ** 22.12.21:** - Move deb package install to first init to avoid overlayfs performance issues.
266
267
* ** 13.12.21:** - Rebase 64 bit containers to Focal.
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_
11
11
available_architectures :
12
12
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
13
13
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
14
- - { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
15
14
16
15
# development version
17
16
development_versions : false
@@ -64,6 +63,7 @@ app_setup_block: |
64
63
65
64
# changelog
66
65
changelogs :
66
+ - { date: "01.06.22:", desc: "Deprecate armhf."}
67
67
- { date: "23.12.21:", desc: "Move min/max memory config from run to system.properties."}
68
68
- { date: "22.12.21:", desc: "Move deb package install to first init to avoid overlayfs performance issues."}
69
69
- { date: "13.12.21:", desc: "Rebase 64 bit containers to Focal."}
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
+ if [[ "$(uname -m)" == "armv7l" ]]; then
4
+ # We don't support armhf any more
5
+ exit 0
6
+ fi
7
+
3
8
if [[ ! -d /usr/lib/unifi/bin ]]; then
4
9
echo "*** installing unifi packages ***"
5
10
export DEBIAN_FRONTEND=noninteractive
Original file line number Diff line number Diff line change @@ -6,11 +6,8 @@ cat <<-EOF
6
6
********************************************************
7
7
* *
8
8
* !!!! *
9
- * This 32 bit ARM image will be deprecated *
10
- * in June 2022 due to lack of upstream support. *
11
- * *
12
- * For further information please visit *
13
- * https://info.linuxserver.io/issues/2021-11-25-unifi/ *
9
+ * This Unifi-Controller image does not support *
10
+ * 32 bit ARM due to lack of available OS packages *
14
11
* *
15
12
* *
16
13
********************************************************
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
+ if [[ "$(uname -m)" == "armv7l" ]]; then
4
+ # We don't support armhf any more
5
+ exit 0
6
+ fi
7
+
3
8
# create our folders
4
9
mkdir -p \
5
- /config/{data,logs,run}
10
+ /config/{data,logs,run}
6
11
7
12
8
13
# create symlinks for config
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
+ if [[ "$(uname -m)" == "armv7l" ]]; then
4
+ # We don't support armhf any more
5
+ exit 0
6
+ fi
7
+
3
8
# generate key
4
9
[[ ! -f /config/data/keystore ]] && \
5
- keytool -genkey -keyalg RSA -alias unifi -keystore /config/data/keystore \
6
- -storepass aircontrolenterprise -keypass aircontrolenterprise -validity 1825 \
7
- -keysize 4096 -dname "cn=unifi"
10
+ keytool -genkey -keyalg RSA -alias unifi -keystore /config/data/keystore \
11
+ -storepass aircontrolenterprise -keypass aircontrolenterprise -validity 1825 \
12
+ -keysize 4096 -dname "cn=unifi"
8
13
9
14
# permissions
10
15
chown abc:abc \
11
- /config/data/keystore
16
+ /config/data/keystore
Original file line number Diff line number Diff line change 2
2
3
3
cd /config || exit
4
4
5
+ if [[ "$(uname -m)" == "armv7l" ]]; then
6
+ # We don't support armhf any more
7
+ sleep infinity
8
+ fi
9
+
5
10
exec \
6
11
s6-setuidgid abc java -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;
You can’t perform that action at this time.
0 commit comments