Collection of Docker Images tailored for OpenShift
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Nicolas Massé 2fee56ffc6 documentation for rtorrent 8 years ago
..
Dockerfile.filebrowser fix dockerfile 8 years ago
Dockerfile.rtorrent add a new container: filebrowser 8 years ago
README.md documentation for rtorrent 8 years ago
custom.rc initial dockerfile for rtorrent 8 years ago
filebrowser-config.yaml fix baseurl 8 years ago
rtorrent.rc initial dockerfile for rtorrent 8 years ago
rtorrent.yaml OpenShift template for rtorrent 8 years ago

README.md

rtorrent Docker images for OpenShift

Description

This project proposes ready-to-use templates to deploy rtorrent on OpenShift.

Deployment

Base Image

If you are on OpenShift Origin, import the centos image in the openshift namespace:

oc import-image -n openshift centos7 --from docker.io/centos:7 --confirm --scheduled

If you are on OpenShift Container Platform, import the rhel image in the openshift namespace:

oc import-image -n openshift rhel7 --from registry.access.redhat.com/rhel7:7.4 --confirm --scheduled

Pre-requisites

Open the bittorrent ports, as explained in the OpenShift documentation.

Namely, you will have to add to your /etc/origin/master/master-config.yaml:

kubernetesMasterConfig:
  servicesNodePortRange: '6880-6900'

And then restart with:

sudo systemctl restart atomic-openshift-master-controllers
sudo systemctl restart atomic-openshift-master-api

On each node that will run rtorrent, you will have to add an exception in the iptables chain OS_FIREWALL_ALLOW.

To add them permanently, use:

cat <<EOF >> /etc/sysconfig/iptables
-A OS_FIREWALL_ALLOW -m state --state NEW -p udp --dport 6881 -j ACCEPT
-A OS_FIREWALL_ALLOW -m state --state NEW -p udp --match multiport --dports 6890:6899 -j ACCEPT
-A OS_FIREWALL_ALLOW -m state --state NEW -p tcp --match multiport --dports 6890:6899 -j ACCEPT
EOF

Deploy rtorrent

Create all the Kubernetes objects:

oc new-project rtorrent
oc process -f rtorrent.yaml -p NODE_IP_ADDRESS=1.2.3.4 | oc create -f -

Give an additional role to our service account to allow the oauth proxy to authenticate users.

oc adm policy add-cluster-role-to-user system:auth-delegator -z rtorrent -n rtorrent