Compare commits

...

56 Commits
13 ... 145

Author SHA1 Message Date
sparklyballs
ad5f6ecfaa Merge pull request #60 from linuxserver/rebase_alpine_3.8
rebase to alpine 3.8, don't need to pull from edge
2018-08-15 21:59:30 +01:00
sparklyballs
9f73545a49 rebase to alpine 3.8, don't need to pull from edge 2018-08-15 21:11:21 +01:00
sparklyballs
14ced70888 Merge pull request #48 from linuxserver/edge_repo_for_transmission
use edge repo for transmission
2018-02-12 19:19:48 +00:00
sparklyballs
4302df7270 use edge repo for transmission 2018-02-12 16:02:09 +00:00
sparklyballs
2a202a800f Merge pull request #47 from linuxserver/bump_alpine_3.7
bump alpine 3.7
2018-01-10 15:32:26 +00:00
sparklyballs
227da52355 bump alpine 3.7 2018-01-10 11:16:55 +00:00
j0nnymoe
8fc46f45ec Merge pull request #38 from linuxserver/rsync
Add rsync package
2017-07-31 08:52:20 +01:00
aptalca
0461071b92 Update README.md 2017-07-25 11:38:25 -04:00
aptalca
9fb8dcd358 add rsync 2017-07-25 11:37:34 -04:00
sparklyballs
328068e20d update of README with badges for new ci 2017-07-12 01:16:00 +01:00
j0nnymoe
9091730d00 Merge pull request #35 from linuxserver/alpine_3.6
bump to alpine 3.6
2017-05-27 09:38:15 +01:00
sparklyballs
4246f944d6 bump to alpine 3.6 2017-05-27 00:25:33 +01:00
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
sparklyballs
2329699f53 fix date separator 2016-10-18 03:05:37 +01:00
sparklyballs
8538165d17 add extra parameters info 2016-10-17 23:54:40 +01:00
sparklyballs
d322a13696 add version layer information 2016-10-14 15:27:26 +01:00
sparklyballs
33589b220f update media links README 2016-10-07 10:36:30 +01:00
sparklyballs
3da388bba1 update image link 2016-10-05 12:20:02 +01:00
sparklyballs
fcd4c32ba5 Merge pull request #12 from sparklyballs/readme-password
Readme password
2016-09-23 17:41:44 +01:00
sparklyballs
e97bd50b83 add info about securing webui to setting up application section 2016-09-23 17:13:05 +01:00
sparklyballs
ad91ae6396 add info about securing webui to setting up application section 2016-09-23 17:11:44 +01:00
sparklyballs
eecebfb5c2 add info about securing webui to setting up application section 2016-09-23 17:11:02 +01:00
sparklyballs
6c1e5e273a add info about securing webui to setting up application section 2016-09-23 17:08:39 +01:00
sparklyballs
3420cab227 add info about securing webui to setting up application section 2016-09-23 17:07:03 +01:00
aptalca
39909f7c4b Merge pull request #11 from sparklyballs/add-curl
add curl package per LT support thread
2016-09-21 12:56:43 -04:00
sparklyballs
9253db127d add curl package per LT support thread 2016-09-21 09:09:40 +01:00
sparklyballs
44c007bebb add .ignores and templates 2016-09-17 03:07:06 +01:00
sparklyballs
f310f9de7a Merge pull request #10 from sparklyballs/microbadger
add layer badge to README
2016-09-09 21:58:05 +01:00
sparklyballs
044d7fc580 add layer badge to README 2016-09-09 21:55:25 +01:00
sparklyballs
29d0edf931 Merge pull request #9 from sparklyballs/badges
Badges
2016-08-28 01:32:48 +01:00
sparklyballs
4a478efa62 add badges to README 2016-08-28 01:31:17 +01:00
sparklyballs
3142aea0d1 add badges to README 2016-08-28 01:29:02 +01:00
sparklyballs
48b367cb91 Merge pull request #5 from sparklyballs/alpine
rebase to alpine
2016-08-09 10:52:44 +01:00
sparklyballs
1365022454 Add image to README 2016-08-09 10:51:42 +01:00
sparklyballs
037c87a002 tidy up Dockerfile, init and services files spruce up README 2016-08-09 10:40:46 +01:00
sparklyballs
c3b8ed7c83 rebase to alpine 2016-07-01 09:46:34 +01:00
Paul Fauchon
1f0277a2b8 Add UPD port to create command
UDP port is required otherwise magnetized downloads won't start with UDP trackers.
2016-05-01 13:26:39 +02:00
15 changed files with 266 additions and 43 deletions

6
.dockerignore Normal file
View File

@@ -0,0 +1,6 @@
.git
.gitignore
.github
.gitattributes
READMETEMPLATE.md
README.md

17
.gitattributes vendored Normal file
View File

@@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

21
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,21 @@
<!--- Provide a general summary of the issue in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- If you have an issue with the project, please provide us with the following information -->
<!--- Host OS -->
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. -->
<!--- Docker log output, docker log <container-name> -->
<!--- Mention if you're using symlinks on any of the volume mounts. -->
<!--- If you have a suggestion or fix for the project, please provide us with the following information -->
<!--- What you think your suggestion brings to the project, or fixes with the project -->
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? -->
## Thanks, team linuxserver.io

15
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,15 @@
<!--- Provide a general summary of your changes in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- Before submitting a pull request please check the following -->
<!--- That you have made a branch in your fork, we'd rather not merge from your master -->
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
<!--- -->
## Thanks, team linuxserver.io

43
.gitignore vendored Normal file
View File

@@ -0,0 +1,43 @@
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# =========================
# Operating System Files
# =========================
# OSX
# =========================
.DS_Store
.AppleDouble
.LSOverride
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

View File

@@ -1,26 +1,28 @@
FROM linuxserver/baseimage
FROM lsiobase/alpine:3.8
MAINTAINER Sparklyballs <sparklyballs@linuxserver.io>
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
ENV APTLIST="transmission-daemon"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
jq \
openssl \
p7zip \
rsync \
tar \
transmission-cli \
transmission-daemon \
unrar \
unzip
# add repository
RUN add-apt-repository ppa:transmissionbt/ppa && \
# copy local files
COPY root/ /
# 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
VOLUME /config /downloads /watch
# ports and volumes
EXPOSE 9091 51413
VOLUME /config /downloads /watch

View File

@@ -1,56 +1,123 @@
![https://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)
[linuxserverurl]: https://linuxserver.io
[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/
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`.
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
* [forum.linuxserver.io][forumurl]
* [IRC][ircurl] on freenode at `#linuxserver.io`
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
# 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)](https://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](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Builders/x86-64/x86-64-transmission)](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-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)][appurl]
## Usage
```
docker create --name=transmission \
-v /etc/localtime:/etc/localtime:ro \
-v <path to data>:/config \
-v <path to downloads>:/downloads \
-v <path to watch folder>:/watch \
-e PGID=<gid> -e PUID=<uid> \
-e TZ=<timezone> \
-p 9091:9091 -p 51413:51413 \
-p 51413:51413/udp \
linuxserver/transmission
```
**Parameters**
## Parameters
`The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container.
So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.`
* `-p 9091`
* `-p 51413` - the port(s)
* `-v /etc/localtime` for timesync - *optional*
* `-v /config` - where transmission should store config files and logs
* `-v /downloads` - local path for downloads
* `-v /watch` - watch folder for torrent files
* `-e PGID` for GroupID - see below for explanation
* `-e PUID` for UserID - see below for explanation
* `-e TZ` for timezone information, eg Europe/London
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
**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
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.
## Updates
this requires 3 settings to be changed in the settings.json file.
`Make sure the container is stopped before editing these settings.`
`"rpc-authentication-required": true,` - check this, the default is false, change to true.
`"rpc-username": "transmission",` substitute transmission for your chosen user name, this is just an example.
`rpc-password` will be a hash starting with {, replace everything including the { with your chosen password, keeping the quotes.
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
* Upgrade to the latest version simply `docker restart transmission`.
* To monitor the logs of the container in realtime `docker logs -f transmission`.
* container version number
`docker inspect -f '{{ index .Config.Labels "build_version" }}' transmission`
* image version number
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/transmission`
## Versions
+ **06.12.2015:** Separate mapping for watch folder.
+ **16.11.2015:** Initial Release.
+ **15.08.18:** Rebase to alpine linux 3.8.
+ **12.02.18:** Pull transmission from edge repo.
+ **10.01.18:** Rebase to alpine linux 3.7.
+ **25.07.17:** Add rsync package.
+ **27.05.17:** Rebase to alpine linux 3.6.
+ **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.
+ **09.09.16:** Add layer badges to README.
+ **28.08.16:** Add badges to README.
+ **09.08.16:** Rebase to alpine linux.
+ **06.12.15:** Separate mapping for watch folder.
+ **16.11.15:** Initial Release.

View File

@@ -1,7 +0,0 @@
#!/bin/bash
mkdir -p /downloads/{complete,incomplete} /watch
[[ ! -f /config/settings.json ]] && cp /defaults/settings.json /config/settings.json
chown abc:abc /watch /config/settings.json /downloads /downloads/incomplete /downloads/complete

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/\&amp;/\&/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

@@ -0,0 +1,24 @@
#!/usr/bin/with-contenv bash
# make folders
mkdir -p \
/downloads/{complete,incomplete} /watch
# copy config
[[ ! -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

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
exec \
s6-setuidgid abc /usr/bin/transmission-daemon \
-g /config -c /watch -f

View File

@@ -1,3 +0,0 @@
#!/bin/bash
/sbin/setuser abc /usr/bin/transmission-daemon -g /config -c /watch -f