Skip to content

Commit ec5b601

Browse files
authored
Merge pull request #24 from thelamer/master
adding dynamic readme
2 parents 43fca5d + 380e41f commit ec5b601

File tree

2 files changed

+207
-165
lines changed

2 files changed

+207
-165
lines changed

README.md

Lines changed: 144 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,138 @@
1-
[linuxserverurl]: https://linuxserver.io
2-
[forumurl]: https://forum.linuxserver.io
3-
[ircurl]: https://www.linuxserver.io/irc/
4-
[podcasturl]: https://www.linuxserver.io/podcast/
5-
[appurl]: https://vaemendis.net/ubooquity/
6-
[hub]: https://hub.docker.com/r/linuxserver/ubooquity/
1+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
72

8-
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
3+
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring :-
94

10-
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
11-
* [forum.linuxserver.io][forumurl]
12-
* [IRC][ircurl] on freenode at `#linuxserver.io`
13-
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
5+
* regular and timely application updates
6+
* easy user mappings (PGID, PUID)
7+
* custom base image with s6 overlay
8+
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
9+
* regular security updates
1410

15-
# linuxserver/ubooquity
16-
[![](https://images.microbadger.com/badges/version/linuxserver/ubooquity.svg)](https://microbadger.com/images/linuxserver/ubooquity "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/ubooquity.svg)](https://microbadger.com/images/linuxserver/ubooquity "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/ubooquity.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/ubooquity.svg)][hub][![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Builders/x86-64/x86-64-ubooquity)](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-ubooquity/)
11+
Find us at:
12+
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
13+
* [IRC](https://irc.linuxserver.io) - on freenode at `#linuxserver.io`. Our primary support channel is Discord.
14+
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
15+
* [Podcast](https://anchor.fm/linuxserverio) - on hiatus. Coming back soon (late 2018).
1716

18-
Ubooquity is a free, lightweight and easy-to-use home server for your comics and ebooks. Use it to access your files from anywhere, with a tablet, an e-reader, a phone or a computer.
17+
# PSA: Changes are happening
18+
19+
From August 2018 onwards, Linuxserver are in the midst of switching to a new CI platform which will enable us to build and release multiple architectures under a single repo. To this end, existing images for `arm64` and `armhf` builds are being deprecated. They are replaced by a manifest file in each container which automatically pulls the correct image for your architecture. You'll also be able to pull based on a specific architecture tag.
20+
21+
TLDR: Multi-arch support is changing from multiple repos to one repo per container image.
22+
23+
# [linuxserver/ubooquity](https://github.com/linuxserver/docker-ubooquity)
24+
[![](https://img.shields.io/discord/354974912613449730.svg?logo=discord&label=LSIO%20Discord&style=flat-square)](https://discord.gg/YWrKVTn)
25+
[![](https://images.microbadger.com/badges/version/linuxserver/ubooquity.svg)](https://microbadger.com/images/linuxserver/ubooquity "Get your own version badge on microbadger.com")
26+
[![](https://images.microbadger.com/badges/image/linuxserver/ubooquity.svg)](https://microbadger.com/images/linuxserver/ubooquity "Get your own version badge on microbadger.com")
27+
![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/ubooquity.svg)
28+
![Docker Stars](https://img.shields.io/docker/stars/linuxserver/ubooquity.svg)
29+
[![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Pipeline-Builders/docker-ubooquity/master)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ubooquity/job/master/)
30+
[![](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/ubooquity/latest/badge.svg)](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/ubooquity/latest/index.html)
31+
32+
[Ubooquity](https://vaemendis.net/ubooquity/) is a free, lightweight and easy-to-use home server for your comics and ebooks. Use it to access your files from anywhere, with a tablet, an e-reader, a phone or a computer.
33+
34+
[![ubooquity](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/ubooquity-banner.png)](https://vaemendis.net/ubooquity/)
35+
36+
## Supported Architectures
37+
38+
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).
39+
40+
Simply pulling `linuxserver/ubooquity` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
41+
42+
The architectures supported by this image are:
43+
44+
| Architecture | Tag |
45+
| :----: | --- |
46+
| x86-64 | amd64-latest |
47+
| arm64 | arm64v8-latest |
48+
| armhf | arm32v6-latest |
1949

20-
[![ubooquity](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/ubooquity-banner.png)][appurl]
2150

2251
## Usage
2352

53+
Here are some example snippets to help you get started creating a container.
54+
55+
### docker
56+
2457
```
2558
docker create \
2659
--name=ubooquity \
60+
-e PUID=1001 \
61+
-e PGID=1001 \
62+
-e TZ=Europe/London \
63+
-e MAXMEM=<maxmem> \
64+
-p 2202:2202 \
65+
-p 2203:2203 \
2766
-v <path to data>:/config \
2867
-v <path to books>:/books \
2968
-v <path to comics>:/comics \
3069
-v <path to raw files>:/files \
31-
-e MAXMEM=<maxmem> \
32-
-e PGID=<gid> -e PUID=<uid> \
33-
-p 2202:2202 \
34-
-p 2203:2203 \
70+
--restart unless-stopped \
3571
linuxserver/ubooquity
3672
```
3773

38-
## Parameters
39-
40-
`The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
41-
For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container.
42-
So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080
43-
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.`
44-
4574

75+
### docker-compose
4676

47-
* `-p 2202` - the library port
48-
* `-p 2203` - the admin port
49-
* `-v /config` - Config files and database for ubooquity
50-
* `-v /books` - Location of books.
51-
* `-v /comics` - Location of comics.
52-
* `-v /files` - Location of raw files.
53-
* `-e MAXMEM` - to set the maximum memory
54-
* `-e PGID` for GroupID - see below for explanation
55-
* `-e PUID` for UserID - see below for explanation
77+
Compatible with docker-compose v2 schemas.
5678

57-
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it ubooquity /bin/bash`.
79+
```
80+
---
81+
version: "2"
82+
services:
83+
ubooquity:
84+
image: linuxserver/ubooquity
85+
container_name: ubooquity
86+
environment:
87+
- PUID=1001
88+
- PGID=1001
89+
- TZ=Europe/London
90+
- MAXMEM=<maxmem>
91+
volumes:
92+
- <path to data>:/config
93+
- <path to books>:/books
94+
- <path to comics>:/comics
95+
- <path to raw files>:/files
96+
ports:
97+
- 2202:2202
98+
- 2203:2203
99+
mem_limit: 4096m
100+
restart: unless-stopped
101+
```
58102

59-
### MAXMEM
103+
## Parameters
60104

61-
The quantity of memory allocated to Ubooquity depends on the hardware your are running it on. If this quantity is too small, you might sometime saturate it with when performing memory intensive operations. That’s when you get `java.lang.OutOfMemoryError:` Java heap space errors.
105+
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
62106

63-
You can explicitly set the amount of memory Ubooquity is allowed to use (be careful to set a value lower than the actual physical memory of your hardware).
107+
| Parameter | Function |
108+
| :----: | --- |
109+
| `-p 2202` | The library port. |
110+
| `-p 2203` | The admin port. |
111+
| `-e PUID=1001` | for UserID - see below for explanation |
112+
| `-e PGID=1001` | for GroupID - see below for explanation |
113+
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London. |
114+
| `-e MAXMEM=<maxmem>` | To set the maximum memory. |
115+
| `-v /config` | Config files and database for ubooquity. |
116+
| `-v /books` | Location of books. |
117+
| `-v /comics` | Location of comics. |
118+
| `-v /files` | Location of raw files. |
64119

65-
If no value is set it will default to 512MB.
120+
## User / Group Identifiers
66121

67-
### User / Group Identifiers
122+
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
68123

69-
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
124+
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
70125

71-
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
126+
In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as below:
72127

73128
```
74-
$ id <dockeruser>
129+
$ id username
75130
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
76131
```
77132

78-
## Setting up the application
133+
134+
&nbsp;
135+
## Application Setup
79136

80137
**IMPORTANT**
81138
Ubooquity has now been upgraded to [version 2](http://vaemendis.net/ubooquity/article19/ubooquity-2-1-0) and for existing v1.x users we recommend cleaning your appdata and reinstalling, due to changes in the application itself making the two versions essentially incompatible with each other. Also the admin page and library pages are now on separate ports as detailed below.
@@ -86,28 +143,53 @@ Then you can access the webui at `http://<your-ip>:2202/ubooquity/`
86143

87144
This container will automatically scan your files at startup.
88145

89-
## Info
146+
### MAXMEM
90147

91-
* Shell access whilst the container is running: `docker exec -it ubooquity /bin/bash`
92-
* To monitor the logs of the container in realtime: `docker logs -f ubooquity`
148+
The quantity of memory allocated to Ubooquity depends on the hardware your are running it on. If this quantity is too small, you might sometime saturate it with when performing memory intensive operations. That’s when you get `java.lang.OutOfMemoryError:` Java heap space errors.
93149

94-
* container version number
150+
You can explicitly set the amount of memory Ubooquity is allowed to use (be careful to set a value lower than the actual physical memory of your hardware).
95151

96-
`docker inspect -f '{{ index .Config.Labels "build_version" }}' ubooquity`
152+
If no value is set it will default to 512MB.
97153

98-
* image version number
99154

100-
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/ubooquity`
155+
156+
## Support Info
157+
158+
* Shell access whilst the container is running: `docker exec -it ubooquity /bin/bash`
159+
* To monitor the logs of the container in realtime: `docker logs -f ubooquity`
160+
* container version number
161+
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' ubooquity`
162+
* image version number
163+
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/ubooquity`
164+
165+
## Updating Info
166+
167+
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
168+
169+
Below are the instructions for updating containers:
170+
171+
### Via Docker Run/Create
172+
* Update the image: `docker pull linuxserver/ubooquity`
173+
* Stop the running container: `docker stop ubooquity`
174+
* Delete the container: `docker rm ubooquity`
175+
* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
176+
* Start the new container: `docker start ubooquity`
177+
* You can also remove the old dangling images: `docker image prune`
178+
179+
### Via Docker Compose
180+
* Update the image: `docker-compose pull linuxserver/ubooquity`
181+
* Let compose update containers as necessary: `docker-compose up -d`
182+
* You can also remove the old dangling images: `docker image prune`
101183

102184
## Versions
103185

104-
+ **28.01.19:** Add pipeline logic and multi arch.
105-
+ **15.10.18:** Upgrade to Ubooquity 2.1.2.
106-
+ **23.08.18:** Rebase to alpine 3.8.
107-
+ **09.12.17:** Rebase to alpine 3.7.
108-
+ **07.10.17:** Upgrade to Ubooquity 2.1.1.
109-
+ **16.07.17:** Upgrade to Ubooquity 2.1.0, see setting up application section for important info for existing v1.x users.
110-
+ **26.05.17:** Rebase to alpine 3.6.
111-
+ **08.04.17:** Switch to java from 3.5 repo, fixes login crashes.
112-
+ **06.02.17:** Rebase to alpine 3.5.
113-
+ **06.12.16:** Initial Release.
186+
* **28.01.19:** - Add pipeline logic and multi arch.
187+
* **15.10.18:** - Upgrade to Ubooquity 2.1.2.
188+
* **23.08.18:** - Rebase to alpine 3.8.
189+
* **09.12.17:** - Rebase to alpine 3.7.
190+
* **07.10.17:** - Upgrade to Ubooquity 2.1.1.
191+
* **16.07.17:** - Upgrade to Ubooquity 2.1.0, see setting up application section for important info for existing v1.x users.
192+
* **26.05.17:** - Rebase to alpine 3.6.
193+
* **08.04.17:** - Switch to java from 3.5 repo, fixes login crashes.
194+
* **06.02.17:** - Rebase to alpine 3.5.
195+
* **06.12.16:** - Initial Release.

0 commit comments

Comments
 (0)