remove git update on startup, tidy readme, init and services files
This commit is contained in:
parent
09912ed66e
commit
936c64dd9e
6 changed files with 34 additions and 27 deletions
|
@ -15,4 +15,4 @@ COPY root/ /
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 8181
|
EXPOSE 8181
|
||||||
VOLUME ["/config", "/downloads", "/music"]
|
VOLUME /config /downloads /music
|
||||||
|
|
23
README.md
23
README.md
|
@ -1,6 +1,9 @@
|
||||||

|

|
||||||
|
|
||||||
The [LinuxServer.io](https://linuxserver.io) team brings you another quality container release featuring auto-update on startup, easy user mapping and community support. Be sure to checkout our [forums](https://forum.linuxserver.io) or for real-time support our [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`.
|
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring easy user mapping and community support. Find us for support at:
|
||||||
|
* [forum.linuxserver.io](https://forum.linuxserver.io)
|
||||||
|
* [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`
|
||||||
|
* [Podcast](https://www.linuxserver.io/index.php/category/podcast/) covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||||
|
|
||||||
# linuxserver/Headphones
|
# linuxserver/Headphones
|
||||||

|

|
||||||
|
@ -35,22 +38,24 @@ It is based on alpine linux with s6 overlay, for shell access whilst the contain
|
||||||
|
|
||||||
### User / Group Identifiers
|
### User / Group Identifiers
|
||||||
|
|
||||||
**TL;DR** - The `PGID` and `PUID` values set the user / group you'd like your container to 'run as' to the host OS. This can be a user you've created or even root (not recommended).
|
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" ™.
|
||||||
|
|
||||||
Part of what makes our containers work so well is by allowing you to specify your own `PUID` and `PGID`. This avoids nasty permissions errors with relation to data volumes (`-v` flags). When an application is installed on the host OS it is normally added to the common group called users, Docker apps due to the nature of the technology can't be added to this group. So we added this feature to let you easily choose when running your containers.
|
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ id <dockeruser>
|
||||||
|
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
|
||||||
|
```
|
||||||
|
|
||||||
## Setting up the application
|
## Setting up the application
|
||||||
|
|
||||||
Access WebUI at http://localhost:8181 and walk through the wizard.
|
Access WebUI at http://localhost:8181 and walk through the wizard.
|
||||||
|
|
||||||
## Updates
|
## Info
|
||||||
|
|
||||||
* Upgrade to the latest version simply `docker restart Headphones`.
|
|
||||||
* To monitor the logs of the container in realtime `docker logs -f Headphones`.
|
* To monitor the logs of the container in realtime `docker logs -f Headphones`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Version History
|
## Version History
|
||||||
|
|
||||||
+ **04.07.16:** Rebase to alpine for smaller image size
|
+ **08.08.16:** Rebase to alpine linux.
|
||||||
+ **18.07.15:** Inital Release
|
+ **18.07.15:** Inital Release
|
||||||
|
|
9
root/etc/cont-init.d/30-install
Normal file
9
root/etc/cont-init.d/30-install
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# install app
|
||||||
|
[[ ! -d /app/headphones/.git ]] && \
|
||||||
|
git clone https://github.com/rembo10/headphones.git /app/headphones
|
||||||
|
|
||||||
|
# permissions
|
||||||
|
chown -R abc:abc \
|
||||||
|
/app
|
|
@ -1,13 +0,0 @@
|
||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
[[ ! -d /app/headphones/.git ]] && (git clone https://github.com/rembo10/headphones.git /app/headphones && \
|
|
||||||
chown -R abc:abc /app)
|
|
||||||
|
|
||||||
|
|
||||||
# opt out for autoupdates
|
|
||||||
[ "$ADVANCED_DISABLEUPDATES" ] && exit 0
|
|
||||||
|
|
||||||
cd /app/headphones
|
|
||||||
git pull
|
|
||||||
chown -R abc:abc /app
|
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
[[ ! -e /config/config.ini ]] && cp /defaults/config.ini /config/config.ini
|
# copy config
|
||||||
|
[[ ! -e /config/config.ini ]] && \
|
||||||
|
cp /defaults/config.ini /config/config.ini
|
||||||
|
|
||||||
chown abc:abc /config/*
|
# permissions
|
||||||
|
chown abc:abc \
|
||||||
|
/config/*
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
exec s6-setuidgid abc python /app/headphones/Headphones.py -p 8181 --datadir=/config
|
exec \
|
||||||
|
s6-setuidgid abc python /app/headphones/Headphones.py -p 8181 \
|
||||||
|
--datadir=/config
|
||||||
|
|
Loading…
Add table
Reference in a new issue