Install autodl-irssi
I would prefer to make it on a separate container, but the way that it and the rutorrent plugin is programmed, it has to be on the same host. This only installs autodl-irssi and does not include the rutorrent plugin.
This commit is contained in:
		
							parent
							
								
									6c18d0a0dd
								
							
						
					
					
						commit
						fa7b5c1139
					
				|  | @ -1,20 +1,35 @@ | |||
| FROM kelvinchen/seedbox:base | ||||
| MAINTAINER Kelvin Chen <kelvin@kelvinchen.org> | ||||
| 
 | ||||
| # Install all dependencies | ||||
| RUN apt-get update && \ | ||||
|     apt-get install -y --no-install-recommends \ | ||||
|         rtorrent \ | ||||
|         php5-fpm \ | ||||
|         php5-cli \ | ||||
|         php5-geoip \ | ||||
|         mediainfo && \ | ||||
|     ln -s /config/rtorrent/rtorrent.rc ~/.rtorrent.rc && \ | ||||
|     git clone --depth=1 https://github.com/Novik/ruTorrent.git /opt/rutorrent && \ | ||||
|         mediainfo \ | ||||
|         irssi \ | ||||
|         libxml-libxml-perl \ | ||||
|         libjson-perl \ | ||||
|         libnet-ssleay-perl \ | ||||
|         libdigest-perl \ | ||||
|         libhtml-parser-perl \ | ||||
|         libarchive-zip-perl && \ | ||||
|     apt-get clean && \ | ||||
|     rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||||
| 
 | ||||
| # Configure/install r(u)torrent and autodl-irssi | ||||
| RUN ln -s /config/rtorrent/rtorrent.rc ~/.rtorrent.rc && \ | ||||
|     git clone --depth=1 https://github.com/Novik/ruTorrent.git /opt/rutorrent && \ | ||||
|     git clone --depth=1 --recursive \ | ||||
|     https://github.com/autodl-community/autodl-irssi.git ~/.irssi/scripts && \ | ||||
|     mkdir -p ~/.irssi/scripts/autorun && \ | ||||
|     cp ~/.irssi/scripts/autodl-irssi.pl ~/.irssi/scripts/autorun && \ | ||||
|     mkdir -p ~/.autodl | ||||
| 
 | ||||
| VOLUME /config /torrents | ||||
| COPY start rtorrent.rc supervisord.conf / | ||||
| COPY start rtorrent.rc supervisord.conf autodl.cfg / | ||||
| COPY nginx.conf /etc/nginx/nginx.conf | ||||
| COPY rutorrent_config.php /opt/rutorrent/conf/config.php | ||||
| EXPOSE 80 49161 49161/udp 6881/udp | ||||
|  |  | |||
|  | @ -0,0 +1,3 @@ | |||
| [options] | ||||
| gui-server-port = 39410 | ||||
| gui-server-password = password | ||||
|  | @ -13,8 +13,12 @@ rm /config/rtorrent/rtorrent.lock | |||
| mkdir -p /config/rutorrent/settings /config/rutorrent/torrents \ | ||||
|     /config/rutorrent/users /config/rutorrent/plugins | ||||
| 
 | ||||
| # Symlink all plugins in /config/rutorrent/plugins to the rutorrent directory | ||||
| ln -fs $(ls -d1 /config/rutorrent/plugins/**) /opt/rutorrent/plugins/ | ||||
| # Copy all plugins in /config/rutorrent/plugins to the rutorrent directory | ||||
| cp -rf $(ls -d1 /config/rutorrent/plugins/**) /opt/rutorrent/plugins/ | ||||
| 
 | ||||
| # Set up autodl-irssi | ||||
| cp -n /autodl.cfg /config | ||||
| ln -s /config/autodl.cfg ~/.autodl/autodl.cfg | ||||
| 
 | ||||
| # Make php-fpm run as root | ||||
| # Everything is inside a docker container so this shouldn't | ||||
|  |  | |||
|  | @ -18,3 +18,9 @@ autorestart = true | |||
| priority = 3 | ||||
| command = nginx -g "daemon off;" | ||||
| autorestart = true | ||||
| 
 | ||||
| [program:autodl-irssi] | ||||
| priority = 4 | ||||
| environment = TERM=xterm | ||||
| command = irssi | ||||
| autorestart = true | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue