mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-10-30 16:35:48 +01:00
rebase to alpine
This commit is contained in:
30
Dockerfile
30
Dockerfile
@@ -1,26 +1,14 @@
|
|||||||
FROM linuxserver/baseimage
|
FROM lsiobase/alpine
|
||||||
|
MAINTAINER sparklyballs
|
||||||
|
|
||||||
MAINTAINER Sparklyballs <sparklyballs@linuxserver.io>
|
# install packages
|
||||||
|
RUN \
|
||||||
|
apk add --no-cache \
|
||||||
|
transmission-daemon
|
||||||
|
|
||||||
ENV APTLIST="transmission-daemon"
|
# add local files
|
||||||
|
COPY root/ /
|
||||||
|
|
||||||
# add repository
|
|
||||||
RUN add-apt-repository ppa:transmissionbt/ppa && \
|
|
||||||
|
|
||||||
# install packages
|
|
||||||
apt-get update -q && \
|
|
||||||
apt-get install $APTLIST -qy && \
|
|
||||||
|
|
||||||
# cleanup
|
|
||||||
apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
|
||||||
|
|
||||||
#Adding Custom files
|
|
||||||
ADD init/ /etc/my_init.d/
|
|
||||||
ADD services/ /etc/service/
|
|
||||||
#ADD cron/ /etc/cron.d/
|
|
||||||
ADD defaults/ /defaults/
|
|
||||||
RUN chmod -v +x /etc/service/*/run && chmod -v +x /etc/my_init.d/*.sh
|
|
||||||
|
|
||||||
# Volumes and Ports
|
# Volumes and Ports
|
||||||
VOLUME /config /downloads /watch
|
VOLUME /config /downloads /watch
|
||||||
EXPOSE 9091 51413
|
EXPOSE 9091 51413
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -1,6 +1,6 @@
|
|||||||

|

|
||||||
|
|
||||||
The [LinuxServer.io](https://www.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/index.php) or for real-time support our [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`.
|
The [LinuxServer.io](https://www.linuxserver.io/) team brings you another quality container release featuring easy user mapping and community support. Be sure to checkout our [forums](https://forum.linuxserver.io/index.php) or for real-time support our [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`.
|
||||||
|
|
||||||
# linuxserver/transmission
|
# linuxserver/transmission
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ linuxserver/transmission
|
|||||||
* `-e PGID` for GroupID - see below for explanation
|
* `-e PGID` for GroupID - see below for explanation
|
||||||
* `-e PUID` for UserID - see below for explanation
|
* `-e PUID` for UserID - see below for explanation
|
||||||
|
|
||||||
It is based on phusion-baseimage with ssh removed, for shell access whilst the container is running do `docker exec -it transmission /bin/bash`.
|
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it transmission /bin/bash`.
|
||||||
|
|
||||||
### User / Group Identifiers
|
### User / Group Identifiers
|
||||||
|
|
||||||
@@ -43,14 +43,14 @@ Part of what makes our containers work so well is by allowing you to specify you
|
|||||||
Webui is on port 9091, the settings.json file in /config has extra settings not available in the webui. Stop the container before editing it or any changes won't be saved.
|
Webui is on port 9091, the settings.json file in /config has extra settings not available in the webui. Stop the container before editing it or any changes won't be saved.
|
||||||
|
|
||||||
|
|
||||||
## Updates
|
## Info
|
||||||
|
|
||||||
* Upgrade to the latest version simply `docker restart transmission`.
|
|
||||||
* To monitor the logs of the container in realtime `docker logs -f transmission`.
|
* To monitor the logs of the container in realtime `docker logs -f transmission`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
+ **06.12.2015:** Separate mapping for watch folder.
|
+ **01.07.16:** Rebase to alpine for smaller image size.
|
||||||
+ **16.11.2015:** Initial Release.
|
+ **06.12.15:** Separate mapping for watch folder.
|
||||||
|
+ **16.11.15:** Initial Release.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
mkdir -p /downloads/{complete,incomplete} /watch
|
mkdir -p /downloads/{complete,incomplete} /watch
|
||||||
|
|
||||||
3
root/etc/services.d/transmission/run
Normal file
3
root/etc/services.d/transmission/run
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
s6-setuidgid abc /usr/bin/transmission-daemon -g /config -c /watch -f
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
/sbin/setuser abc /usr/bin/transmission-daemon -g /config -c /watch -f
|
|
||||||
Reference in New Issue
Block a user