Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 8c37888

Browse files
authored
Merge pull request #14 from linuxserver-labs/mongodb-v4.4
2 parents 0ceaaaa + 53ff417 commit 8c37888

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ RUN \
1616
apt-get install --no-install-recommends -y \
1717
bash \
1818
curl \
19+
gnupg \
1920
jsvc \
2021
libcap2 \
2122
logrotate \
22-
mongodb-server \
2323
openjdk-8-jre-headless && \
24+
echo "**** install mongodb ****" && \
25+
curl -s https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add - && \
26+
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list && \
27+
apt-get update && \
28+
apt-get install -y \
29+
mongodb-org-server && \
2430
echo "**** download omada ****" && \
2531
# Somehow figure out version detection and download URL here
2632
if [ -z ${APP_VERSION+x} ]; then \
@@ -78,4 +84,4 @@ COPY root/ /
7884

7985
# Volumes and Ports
8086
VOLUME /config
81-
EXPOSE 8088 8043 29810 29811 29812 29813
87+
EXPOSE 8088 8043 29810 29811 29812 29813 29814

README.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Find us at:
4444

4545
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
4646

47-
Simply pulling `ghcr.io/linuxserver-labs/omada-controller` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
47+
Simply pulling `lscr.io/linuxserver-labs/omada-controller` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
4848

4949
The architectures supported by this image are:
5050

@@ -57,6 +57,10 @@ The architectures supported by this image are:
5757

5858
Access the webui at `<your-ip>:8088`, for more information check out [omada-controller](https://www.tp-link.com/uk/support/download/omada-software-controller/).
5959

60+
### Upgrades from v4 -> v5
61+
62+
**Due to breaking changes it is necessary to take a backup of your v4 install, spin up a clean v5 container and then restore the backup.**
63+
6064
## Usage
6165

6266
Here are some example snippets to help you get started creating a container.
@@ -68,7 +72,7 @@ Here are some example snippets to help you get started creating a container.
6872
version: "2.1"
6973
services:
7074
omada-controller:
71-
image: ghcr.io/linuxserver-labs/omada-controller
75+
image: lscr.io/linuxserver-labs/omada-controller
7276
container_name: omada-controller
7377
environment:
7478
- PUID=1000
@@ -83,6 +87,7 @@ services:
8387
- 29811:29811
8488
- 29812:29812
8589
- 29813:29813
90+
- 29814:29814
8691
restart: unless-stopped
8792
```
8893
@@ -100,9 +105,10 @@ docker run -d \
100105
-p 29811:29811 \
101106
-p 29812:29812 \
102107
-p 29813:29813 \
108+
-p 29814:29814 \
103109
-v /path/to/data:/config \
104110
--restart unless-stopped \
105-
ghcr.io/linuxserver-labs/omada-controller
111+
lscr.io/linuxserver-labs/omada-controller
106112
```
107113

108114
## Parameters
@@ -117,6 +123,7 @@ Container images are configured using parameters passed at runtime (such as thos
117123
| `-p 29811` | EAP Management |
118124
| `-p 29812` | EAP adoption |
119125
| `-p 29813` | EAP upgrade |
126+
| `-p 29814` | v5 EAP Discovery & Adoption |
120127
| `-e PUID=1000` | for UserID - see below for explanation |
121128
| `-e PGID=1000` | for GroupID - see below for explanation |
122129
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London, this is required for omada-controller |
@@ -165,7 +172,7 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
165172
* container version number
166173
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' omada-controller`
167174
* image version number
168-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-labs/omada-controller`
175+
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver-labs/omada-controller`
169176

170177
## Updating Info
171178

@@ -183,7 +190,7 @@ Below are the instructions for updating containers:
183190

184191
### Via Docker Run
185192

186-
* Update the image: `docker pull ghcr.io/linuxserver-labs/omada-controller`
193+
* Update the image: `docker pull lscr.io/linuxserver-labs/omada-controller`
187194
* Stop the running container: `docker stop omada-controller`
188195
* Delete the container: `docker rm omada-controller`
189196
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
@@ -218,7 +225,7 @@ cd docker-omada-controller
218225
docker build \
219226
--no-cache \
220227
--pull \
221-
-t ghcr.io/linuxserver-labs/omada-controller:latest .
228+
-t lscr.io/linuxserver-labs/omada-controller:latest .
222229
```
223230

224231
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
@@ -231,5 +238,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
231238

232239
## Versions
233240

241+
* **12.01.22:** - Switch to MongoDB 4.4
234242
* **29.09.21:** - Documentation updates
235-
* **13.08.21:** - Initial Release
243+
* **13.08.21:** - Initial Release

0 commit comments

Comments
 (0)