Browse Source

add a new container: filebrowser

pull/1/head
Nicolas Massé 8 years ago
parent
commit
a86aa96722
  1. 25
      rtorrent/Dockerfile.filebrowser
  2. 3
      rtorrent/Dockerfile.rtorrent
  3. 11
      rtorrent/filebrowser-config.yaml

25
rtorrent/Dockerfile.filebrowser

@ -0,0 +1,25 @@
FROM centos:7
# The GitHub tag to fetch
ARG FILEBROWSER_RELEASE
# Download filebrowser from
RUN mkdir /opt/filebrowser/{bin,etc,var} \
&& curl -o /tmp/filebrowser.tar.gz https://github.com/filebrowser/filebrowser/releases/download/${FILEBROWSER_RELEASE}/linux-amd64-filebrowser.tar.gz \
&& tar xvf /tmp/filebrowser.tar.gz -C /opt/filebrowser/bin filebrowser \
&& chmod 755 /opt/filebrowser/bin/filebrowser \
&& rm -f /tmp/filebrowser.tar.gz
# File Browser configuration file
ADD filebrowser-config.yaml /opt/filebrowser/etc/config.yaml
VOLUME /opt/filebrowser/var
VOLUME /torrent/incoming
VOLUME /torrent/download
# HTTP Port
EXPOSE 8080
ENTRYPOINT [ "/opt/filebrowser/bin/filebrowser" ]
CMD [ "--config", "/opt/filebrowser/etc/config.yaml" ]

3
rtorrent/Dockerfile → rtorrent/Dockerfile.rtorrent

@ -35,6 +35,9 @@ EXPOSE 6881/udp
ADD rtorrent.rc /etc/rtorrent.rc ADD rtorrent.rc /etc/rtorrent.rc
ADD custom.rc /etc/rtorrent/custom.rc ADD custom.rc /etc/rtorrent/custom.rc
# We need to make rtorrent believe it has a valid term
ENV TERM=xterm
# The unbuffer command is used as entrypoint to fake a tty. # The unbuffer command is used as entrypoint to fake a tty.
# It is required since the daemon mode will only be available # It is required since the daemon mode will only be available
# with rtorrent 0.9.7. # with rtorrent 0.9.7.

11
rtorrent/filebrowser-config.yaml

@ -0,0 +1,11 @@
---
port: 8080
baseURL: /
noAuth: true # We will use the OpenShift OAuth Proxy
database: "/opt/filebrowser/var/database.db"
log: stdout
plugin: ''
scope: "/torrent"
allowCommands: false
allowEdit: true
allowNew: true
Loading…
Cancel
Save