This repository was archived by the owner on Jan 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
root/etc/services.d/unifi Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ docker create \
53
53
--name=unifi-controller \
54
54
-e PUID=1000 \
55
55
-e PGID=1000 \
56
+ -e MEM_LIMIT=1024M `#optional` \
56
57
-p 3478:3478/udp \
57
58
-p 10001:10001/udp \
58
59
-p 8080:8080 \
@@ -96,6 +97,7 @@ services:
96
97
environment:
97
98
- PUID=1000
98
99
- PGID=1000
100
+ - MEM_LIMIT=1024M #optional
99
101
volumes:
100
102
- <path to data>:/config
101
103
ports:
@@ -126,6 +128,7 @@ Container images are configured using parameters passed at runtime (such as thos
126
128
| ` -p 6789 ` | For throughput test |
127
129
| ` -e PUID=1000 ` | for UserID - see below for explanation |
128
130
| ` -e PGID=1000 ` | for GroupID - see below for explanation |
131
+ | ` -e MEM_LIMIT=1024M ` | Optionally change the Java memory limit (-Xmx) (default is 1024M). |
129
132
| ` -v /config ` | All Unifi data stored here |
130
133
131
134
## User / Group Identifiers
@@ -225,5 +228,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
225
228
226
229
## Versions
227
230
231
+ * ** 29.07.19:** - Allow for changing Java mem limit via new optional environment variable.
228
232
* ** 23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
229
233
* ** 10.02.19:** - Initial release of new unifi-controller image with new tags and pipeline logic
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ available_architectures:
14
14
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
15
15
- { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
16
16
17
+ # optional container parameters
18
+ opt_param_usage_include_env : true
19
+ opt_param_env_vars :
20
+ - { env_var: "MEM_LIMIT", env_value: "1024M", desc: "Optionally change the Java memory limit (-Xmx) (default is 1024M)." }
21
+
17
22
# Optional Block
18
23
optional_block_1 : true
19
24
optional_block_1_items :
@@ -70,5 +75,6 @@ app_setup_block: |
70
75
71
76
# changelog
72
77
changelogs :
78
+ - { date: "29.07.19:", desc: "Allow for changing Java mem limit via new optional environment variable." }
73
79
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
74
80
- { date: "10.02.19:", desc: "Initial release of new unifi-controller image with new tags and pipeline logic" }
Original file line number Diff line number Diff line change 2
2
3
3
cd /config || exit
4
4
5
+ if [ -z ${MEM_LIMIT+x} ]; then
6
+ MEM_LIMIT="1024M"
7
+ fi
8
+
5
9
exec \
6
- s6-setuidgid abc java -Xmx1024M -jar /usr/lib/unifi/lib/ace.jar start
10
+ s6-setuidgid abc java -Xmx"${MEM_LIMIT}" -jar /usr/lib/unifi/lib/ace.jar start
You can’t perform that action at this time.
0 commit comments