-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewing container structure to mimic Linuxserver.io ones
* Moving config directory to `/config` * Moving downloads directory to `/downloads` * Adding missing SSL dependency to allow security configs on WebUI * Updating README accordingly
Showing
5 changed files
with
77 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
FROM linuxserver/baseimage | ||
MAINTAINER Etienne Blondelle <[email protected]> | ||
|
||
#Exposing ports and volumes | ||
VOLUME ["/downloads", "/config"] | ||
EXPOSE 8000 | ||
|
||
#Installing pyLoad | ||
RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list \ | ||
&& echo "deb-src http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list \ | ||
|
@@ -9,6 +13,7 @@ RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> / | |
&& apt-get install -y python \ | ||
python-pycurl \ | ||
python-crypto \ | ||
python-openssl \ | ||
tesseract-ocr \ | ||
python-beaker \ | ||
python-imaging \ | ||
|
@@ -18,18 +23,15 @@ RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> / | |
git \ | ||
rhino \ | ||
&& git clone -b stable https://github.com/pyload/pyload.git /opt/pyload \ | ||
&& echo "/opt/pyload/pyload-config" > /opt/pyload/module/config/configdir \ | ||
&& echo "/config" > /opt/pyload/module/config/configdir \ | ||
&& apt-get purge -y git \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean -y | ||
&& apt-get clean -y \ | ||
&& chown abc:abc -R /opt/pyload | ||
|
||
#Adding default config files | ||
ADD config/ /tmp/pyload-config | ||
ADD services/ /etc/service/ | ||
|
||
#Changing rights | ||
RUN chmod -v 0755 /etc/service/* /etc/service/*/run | ||
|
||
#Exposing ports and volumes | ||
VOLUME /opt/pyload/Downloads | ||
EXPOSE 8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,74 @@ | ||
version: 1 | ||
|
||
remote - "Remote": | ||
bool nolocalauth : "No authentication on local connections" = True | ||
bool activated : "Activated" = False | ||
int port : "Port" = 7227 | ||
ip listenaddr : "Adress" = 0.0.0.0 | ||
download - "Download": | ||
int chunks : "Max connections for one download" = 3 | ||
str interface : "Download interface to bind (ip or Name)" = None | ||
bool ipv6 : "Allow IPv6" = False | ||
bool limit_speed : "Limit Download Speed" = False | ||
int max_downloads : "Max Parallel Downloads" = 3 | ||
int max_speed : "Max Download Speed in kb/s" = -1 | ||
bool skip_existing : "Skip already existing files" = False | ||
|
||
downloadTime - "Download Time": | ||
time end : "End" = 0:00 | ||
time start : "Start" = 0:00 | ||
|
||
general - "General": | ||
bool checksum : "Use Checksum" = False | ||
bool debug_mode : "Debug Mode" = False | ||
folder download_folder : "Download Folder" = /downloads | ||
bool folder_per_package : "Create folder for each package" = True | ||
en;de;fr;it;es;nl;sv;ru;pl;cs;sr;pt_BR language : "Language" = en | ||
int min_free_space : "Min Free Space (MB)" = 200 | ||
int renice : "CPU Priority" = 0 | ||
|
||
log - "Log": | ||
int log_size : "Size in kb" = 100 | ||
folder log_folder : "Folder" = Logs | ||
bool file_log : "File Log" = True | ||
int log_count : "Count" = 5 | ||
folder log_folder : "Folder" = Logs | ||
bool log_rotate : "Log Rotate" = True | ||
int log_size : "Size in kb" = 100 | ||
|
||
permission - "Permissions": | ||
str group : "Groupname" = users | ||
bool change_dl : "Change Group and User of Downloads" = False | ||
bool change_file : "Change file mode of downloads" = False | ||
str user : "Username" = user | ||
str file : "Filemode for Downloads" = 0644 | ||
bool change_group : "Change group of running process" = False | ||
str folder : "Folder Permission mode" = 0755 | ||
bool change_user : "Change user of running process" = False | ||
|
||
general - "General": | ||
en;de;fr;it;es;nl;sv;ru;pl;cs;sr;pt_BR language : "Language" = en | ||
folder download_folder : "Download Folder" = /opt/pyload/Downloads | ||
bool checksum : "Use Checksum" = False | ||
bool folder_per_package : "Create folder for each package" = True | ||
bool debug_mode : "Debug Mode" = False | ||
int min_free_space : "Min Free Space (MB)" = 200 | ||
int renice : "CPU Priority" = 0 | ||
|
||
ssl - "SSL": | ||
file cert : "SSL Certificate" = ssl.crt | ||
bool activated : "Activated" = False | ||
file key : "SSL Key" = ssl.key | ||
|
||
webinterface - "Webinterface": | ||
str template : "Template" = default | ||
bool activated : "Activated" = True | ||
str prefix : "Path Prefix" = | ||
builtin;threaded;fastcgi;lightweight server : "Server" = builtin | ||
ip host : "IP" = 0.0.0.0 | ||
bool https : "Use HTTPS" = False | ||
int port : "Port" = 8000 | ||
str file : "Filemode for Downloads" = 0644 | ||
str folder : "Folder Permission mode" = 0755 | ||
str group : "Groupname" = users | ||
str user : "Username" = user | ||
|
||
proxy - "Proxy": | ||
str username : "Username" = None | ||
bool proxy : "Use Proxy" = False | ||
str address : "Address" = "localhost" | ||
password password : "Password" = None | ||
http;socks4;socks5 type : "Protocol" = http | ||
int port : "Port" = 7070 | ||
bool proxy : "Use Proxy" = False | ||
http;socks4;socks5 type : "Protocol" = http | ||
str username : "Username" = None | ||
|
||
reconnect - "Reconnect": | ||
time endTime : "End" = 0:00 | ||
bool activated : "Use Reconnect" = False | ||
time endTime : "End" = 0:00 | ||
str method : "Method" = None | ||
time startTime : "Start" = 0:00 | ||
|
||
download - "Download": | ||
int max_downloads : "Max Parallel Downloads" = 3 | ||
bool limit_speed : "Limit Download Speed" = False | ||
str interface : "Download interface to bind (ip or Name)" = None | ||
bool skip_existing : "Skip already existing files" = False | ||
int max_speed : "Max Download Speed in kb/s" = -1 | ||
bool ipv6 : "Allow IPv6" = False | ||
int chunks : "Max connections for one download" = 3 | ||
remote - "Remote": | ||
bool activated : "Activated" = False | ||
ip listenaddr : "Adress" = 0.0.0.0 | ||
bool nolocalauth : "No authentication on local connections" = True | ||
int port : "Port" = 7227 | ||
|
||
downloadTime - "Download Time": | ||
time start : "Start" = 0:00 | ||
time end : "End" = 0:00 | ||
ssl - "SSL": | ||
bool activated : "Activated" = False | ||
file cert : "SSL Certificate" = ssl.crt | ||
file key : "SSL Key" = ssl.key | ||
|
||
webinterface - "Webinterface": | ||
bool activated : "Activated" = True | ||
ip host : "IP" = 0.0.0.0 | ||
bool https : "Use HTTPS" = False | ||
int port : "Port" = 8000 | ||
str prefix : "Path Prefix" = | ||
builtin;threaded;fastcgi;lightweight server : "Server" = builtin | ||
str template : "Template" = classic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters