Compare commits

..

20 Commits
29 ... 60

Author SHA1 Message Date
sparklyballs
b4e526cedf fix formatting markdown README 2017-03-15 17:42:28 +00:00
sparklyballs
f0c27ab450 Merge pull request #30 from patsissons/patch-1
add openssl to installed packages
2017-03-04 12:13:51 +00:00
Pat Sissons
244f5c6810 add openssl to installed packages
openssl is required for the blocklist updater script to support https uri's.
resolves #29
2017-02-27 11:22:02 -08:00
Neil
d22fdb48dc Merge pull request #25 from linuxserver/3.5
rebase to alpine 3.5
2017-02-06 17:29:05 +00:00
sparklyballs
97dfe76a57 rebase to alpine 3.5 2017-02-06 17:00:43 +00:00
sparklyballs
76293d786a fix spacing one of headers 2017-01-16 13:00:59 +00:00
Neil
1f0f18517d Merge pull request #23 from linuxserver/unpackers
add p7zip, tar , unrar and unzip packages
2017-01-15 22:31:19 +00:00
sparklyballs
f505697081 add p7zip, tar , unrar and unzip packages 2017-01-15 22:12:38 +00:00
sparklyballs
d9420323ac add p7zip, tar , unrar and unzip packages 2017-01-15 22:08:31 +00:00
sparklyballs
5138709d55 Merge pull request #18 from phendryx/blocklist-cleanup
Blocklist script cleanup
2016-11-10 05:01:51 +00:00
Paul Hendryx
f7490f4fd7 full path to settings.json 2016-11-03 07:12:13 -04:00
Paul Hendryx
6bad2d716e replace & with &, static filename output for wget 2016-11-02 10:04:54 -04:00
Paul Hendryx
72c8df500e working script from container 2016-11-02 09:39:55 -04:00
Paul Hendryx
a1b5353ea2 fixed update script 2016-11-02 09:38:19 -04:00
sparklyballs
96a625b9cd Merge pull request #16 from phendryx/blocklist-update
Blocklist update
2016-10-30 13:30:10 +00:00
Paul Hendryx
90510c1308 change update script to download blocklist, decompress, restart service. no auth required. 2016-10-19 09:34:04 -04:00
Paul Hendryx
401a469bb8 add newline 2016-10-18 08:53:43 -04:00
Paul Hendryx
8d7f56dcde dockerfile cleanup 2016-10-18 08:53:19 -04:00
Paul Hendryx
c3e2acd4c9 readme version entry 2016-10-18 08:53:15 -04:00
Paul Hendryx
4f5055dc4a blocklist w/ cron 2016-10-18 08:53:05 -04:00
6 changed files with 63 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
FROM lsiobase/alpine
FROM lsiobase/alpine:3.5
MAINTAINER sparklyballs
# set version label
@@ -10,7 +10,14 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
RUN \
apk add --no-cache \
curl \
transmission-daemon
jq \
openssl \
p7zip \
tar \
transmission-cli \
transmission-daemon \
unrar \
unzip
# copy local files
COPY root/ /

View File

@@ -2,6 +2,8 @@
[forumurl]: https://forum.linuxserver.io
[ircurl]: https://www.linuxserver.io/irc/
[podcasturl]: https://www.linuxserver.io/podcast/
[appurl]: https://www.transmissionbt.com/
[hub]: https://hub.docker.com/r/linuxserver/transmission/
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
@@ -12,12 +14,10 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f
# linuxserver/transmission
[![](https://images.microbadger.com/badges/version/linuxserver/transmission.svg)](https://microbadger.com/images/linuxserver/transmission "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/transmission.svg)](http://microbadger.com/images/linuxserver/transmission "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/transmission.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/transmission.svg)][hub][![Build Status](http://jenkins.linuxserver.io:8080/buildStatus/icon?job=Dockers/LinuxServer.io/linuxserver-transmission)](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-transmission/)
[hub]: https://hub.docker.com/r/linuxserver/transmission/
Transmission is designed for easy, powerful use. Transmission has the features you want from a BitTorrent client: encryption, a web interface, peer exchange, magnet links, DHT, µTP, UPnP and NAT-PMP port forwarding, webseed support, watch directories, tracker editing, global and per-torrent speed limits, and more. [Transmission](http://www.transmissionbt.com/about/)
[![transmission](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/transmission.png)][transurl]
[transurl]: https://www.transmissionbt.com/
[![transmission](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/transmission.png)][appurl]
## Usage
@@ -67,7 +67,7 @@ In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as bel
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.
## Securing the webui with a username/password.
## Securing the webui with a username/password.
this requires 3 settings to be changed in the settings.json file.
@@ -81,6 +81,13 @@ this requires 3 settings to be changed in the settings.json file.
Transmission will convert it to a hash when you restart the container after making the above edits.
## Updating Blocklists Automatically
This requires `"blocklist-enabled": true,` to be set. By setting this to true, it is assumed you have also populated `blocklist-url` with a valid block list.
The automatic update is a shell script that downloads a blocklist from the url stored in the settings.json, gunzips it, and restarts the transmission daemon.
The automatic update will run once a day at 3am local server time.
## Info
@@ -97,6 +104,9 @@ Transmission will convert it to a hash when you restart the container after maki
## Versions
+ **06.02.17:** Rebase to alpine linux 3.5.
+ **15.01.17:** Add p7zip, tar , unrar and unzip packages.
+ **16.10.16:** Blocklist autoupdate with optional authentication.
+ **14.10.16:** Add version layer information.
+ **23.09.16:** Add information about securing the webui to README..
+ **21.09.16:** Add curl package.

View File

@@ -0,0 +1,20 @@
#!/usr/bin/with-contenv bash
BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' /config/settings.json`
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' /config/settings.json | sed 's/\&/\&/g'`
if [ $BLOCKLIST_ENABLED == true ]; then
mkdir -p /tmp/blocklists
rm -rf /tmp/blocklists/*
cd /tmp/blocklists
wget -q -O blocklist.gz "$BLOCKLIST_URL"
if [ $? == 0 ]; then
gunzip *.gz
if [ $? == 0 ]; then
chmod go+r *
rm -rf /config/blocklists/*
cp /tmp/blocklists/* /config/blocklists
s6-svc -h /var/run/s6/services/transmission
fi
fi
fi

View File

@@ -8,10 +8,17 @@ mkdir -p \
[[ ! -f /config/settings.json ]] && cp \
/defaults/settings.json /config/settings.json
# copy blocklist-update script
[[ ! -f /config/blocklist-update.sh ]] && cp \
/defaults/blocklist-update.sh /config/blocklist-update.sh
# permissions
chown abc:abc \
/config/settings.json \
/config/blocklist-update.sh \
/downloads \
/downloads/complete \
/downloads/incomplete \
/watch
chmod 755 /config/blocklist-update.sh

10
root/etc/crontabs/root Normal file
View File

@@ -0,0 +1,10 @@
# do daily/weekly/monthly maintenance
# min hour day month weekday command
*/15 * * * * run-parts /etc/periodic/15min
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly
# run daily blocklist update
0 3 * * * /config/blocklist-update.sh 2>&1

View File

@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
/usr/sbin/crond -f -S -l 0 -c /etc/crontabs