Merge pull request #459 from davinkevin/ui-transmission-web-control
feat(web-ui): add transmission-web-control UI
This commit is contained in:
		| @@ -17,6 +17,10 @@ RUN apt-get update \ | ||||
|     && wget https://github.com/Secretmapper/combustion/archive/release.zip \ | ||||
|     && unzip release.zip -d /opt/transmission-ui/ \ | ||||
|     && rm release.zip \ | ||||
|     && wget https://github.com/ronggang/twc-release/raw/master/src.tar.gz \ | ||||
|     && mkdir /opt/transmission-ui/transmission-web-control \ | ||||
|     && tar -xvf src.tar.gz -C /opt/transmission-ui/transmission-web-control/ \ | ||||
|     && rm src.tar.gz \ | ||||
|     && git clone git://github.com/endor/kettu.git /opt/transmission-ui/kettu \ | ||||
|     && apt-get install -y tinyproxy telnet \ | ||||
|     && wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb \ | ||||
|   | ||||
| @@ -15,6 +15,9 @@ RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/ap | ||||
|     && echo "Install kettu" \ | ||||
|     && wget -qO- https://github.com/endor/kettu/archive/master.tar.gz | tar xz -C /opt/transmission-ui \ | ||||
|     && mv /opt/transmission-ui/kettu-master /opt/transmission-ui/kettu \ | ||||
|     && echo "Install Transmission-Web-Control" \ | ||||
|     && mkdir /opt/transmission-ui/transmission-web-control | ||||
|     && wget -q0- https://github.com/ronggang/twc-release/raw/master/src.tar.gz | tar xz -C /opt/transmission-ui/transmission-web-control \ | ||||
|     && rm -rf /tmp/* /var/tmp/* \ | ||||
|     && groupmod -g 1000 users \ | ||||
|     && useradd -u 911 -U -d /config -s /bin/false abc \ | ||||
|   | ||||
| @@ -13,6 +13,10 @@ RUN apt-get update \ | ||||
|     && unzip release.zip -d /opt/transmission-ui/ \ | ||||
|     && rm release.zip \ | ||||
|     && git clone git://github.com/endor/kettu.git /opt/transmission-ui/kettu \ | ||||
|     && wget https://github.com/ronggang/twc-release/raw/master/src.tar.gz \ | ||||
|     && mkdir /opt/transmission-ui/transmission-web-control \ | ||||
|     && tar -xvf src.tar.gz -C /opt/transmission-ui/transmission-web-control/ \ | ||||
|     && rm src.tar.gz \ | ||||
|     && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||||
|     && curl -L https://github.com/jwilder/dockerize/releases/download/v0.6.0/dockerize-linux-armhf-v0.6.0.tar.gz | tar -C /usr/local/bin -xzv \ | ||||
|     && groupmod -g 1000 users \ | ||||
|   | ||||
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							| @@ -154,12 +154,12 @@ If TRANSMISSION_PEER_PORT_RANDOM_ON_START is enabled then it allows traffic to t | ||||
| ### Alternative web UIs | ||||
| You can override the default web UI by setting the ```TRANSMISSION_WEB_HOME``` environment variable. If set, Transmission will look there for the Web Interface files, such as the javascript, html, and graphics files. | ||||
|  | ||||
| [Combustion UI](https://github.com/Secretmapper/combustion) and [Kettu](https://github.com/endor/kettu) come bundled with the container. You can enable either of them by setting```TRANSMISSION_WEB_UI=combustion``` or ```TRANSMISSION_WEB_UI=kettu```, respectively. Note that this will override the ```TRANSMISSION_WEB_HOME``` variable if set. | ||||
| [Combustion UI](https://github.com/Secretmapper/combustion), [Kettu](https://github.com/endor/kettu) and [Transmission-Web-Control](https://github.com/ronggang/transmission-web-control/) come bundled with the container. You can enable either of them by setting```TRANSMISSION_WEB_UI=combustion```, ```TRANSMISSION_WEB_UI=kettu``` or ```TRANSMISSION_WEB_UI=transmission-web-control```, respectively. Note that this will override the ```TRANSMISSION_WEB_HOME``` variable if set. | ||||
|  | ||||
| | Variable | Function | Example | | ||||
| |----------|----------|-------| | ||||
| |`TRANSMISSION_WEB_HOME` | Set Transmission web home | `TRANSMISSION_WEB_HOME=/path/to/web/ui`| | ||||
| |`TRANSMISSION_WEB_UI` | Use the specified bundled web UI | `TRANSMISSION_WEB_UI=combustion` or `TRANSMISSION_WEB_UI=kettu`| | ||||
| |`TRANSMISSION_WEB_UI` | Use the specified bundled web UI | `TRANSMISSION_WEB_UI=combustion`, `TRANSMISSION_WEB_UI=kettu` or `TRANSMISSION_WEB_UI=transmission-web-control`| | ||||
|  | ||||
| ### Transmission configuration options | ||||
|  | ||||
| @@ -233,8 +233,11 @@ Don't forget to include the #!/bin/bash shebang and to make the scripts executab | ||||
| The Transmission RSS plugin can optionally be run as a separate container. It allow to download torrents based on an RSS URL, see [Plugin page](https://github.com/nning/transmission-rss). | ||||
|  | ||||
| ``` | ||||
| $ docker run -d -e "RSS_URL=http://.../xxxxx.rss" \ | ||||
|       --link <transmission-container>:transmission \--link | ||||
| $ docker run -d \ | ||||
|       -e "RSS_URL=<URL>" \ | ||||
|       --link <transmission-container>:transmission \ | ||||
|       --name "transmission-rss" \ | ||||
|       haugene/transmission-rss | ||||
| ``` | ||||
|  | ||||
| #### Use docker env file | ||||
|   | ||||
| @@ -34,6 +34,11 @@ if [ "kettu" = "$TRANSMISSION_WEB_UI" ]; then | ||||
|   export TRANSMISSION_WEB_HOME=/opt/transmission-ui/kettu | ||||
| fi | ||||
|  | ||||
| if [ "transmission-web-control" = "$TRANSMISSION_WEB_UI" ]; then | ||||
|   echo "Using Transmission Web Control  UI, overriding TRANSMISSION_WEB_HOME" | ||||
|   export TRANSMISSION_WEB_HOME=/opt/transmission-ui/transmission-web-control | ||||
| fi | ||||
|  | ||||
| echo "Generating transmission settings.json from env variables" | ||||
| # Ensure TRANSMISSION_HOME is created | ||||
| mkdir -p ${TRANSMISSION_HOME} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user