mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-26 06:35:40 +03:00
qbittorrent
This commit is contained in:
parent
1477cff50e
commit
ceff2bead5
@ -7,11 +7,12 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
##################################################################
|
##################################################################
|
||||||
ENV BuildDocker true
|
ENV BuildDocker true
|
||||||
ARG SBM_DIR=/mnt/smb
|
ARG SBM_DIR=/mnt/smb
|
||||||
|
ARG QBT_DIR=/opt/qbittorrent
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Files and folders
|
# Files and folders
|
||||||
##################################################################
|
##################################################################
|
||||||
RUN mkdir -p ${SMB_DIR}
|
RUN mkdir -p ${SMB_DIR} ${QBT_DIR}
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# qBitTorrent sources list
|
# qBitTorrent sources list
|
||||||
@ -25,14 +26,16 @@ RUN apt autoremove -y && apt update && apt dist-upgrade -y
|
|||||||
##################################################################
|
##################################################################
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt install -y --allow-unauthenticated --allow-downgrades \
|
apt install -y --allow-unauthenticated --allow-downgrades \
|
||||||
qbittorrent \
|
qbittorrent-nox \
|
||||||
|
ntfs-3g \
|
||||||
|
winbind \
|
||||||
cifs-utils
|
cifs-utils
|
||||||
|
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# other customisations
|
# other customisations
|
||||||
##################################################################
|
##################################################################
|
||||||
RUN cat /etc/samba/smb.conf
|
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# cleaninig up
|
# cleaninig up
|
||||||
@ -41,3 +44,9 @@ RUN apt clean -y && \
|
|||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
rm -rfv /var/lib/apt/lists/* && \
|
rm -rfv /var/lib/apt/lists/* && \
|
||||||
rm -rfv /var/cache/apt/archives/*.deb
|
rm -rfv /var/cache/apt/archives/*.deb
|
||||||
|
|
||||||
|
VOLUME ${QBT_DIR}
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENTRYPOINT /entrypoint.sh
|
@ -1,4 +1,6 @@
|
|||||||
all: emgqb
|
all: emgqb
|
||||||
emgqb:
|
emgqb:
|
||||||
docker build --compress -t epicmorg/qbittorrent .
|
docker build --compress -t epicmorg/qbittorrent:latest .
|
||||||
|
docker push epicmorg/qbittorrent:latest
|
||||||
|
docker build --compress -t epicmorg/qbittorrent:unstable .
|
||||||
|
docker push epicmorg/qbittorrent:unstable
|
||||||
|
23
_experemental/qbittorrent/latest/docker-compose.yml
Normal file
23
_experemental/qbittorrent/latest/docker-compose.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
qbittorrent:
|
||||||
|
image: epicmorg/qbittorrent:latest
|
||||||
|
restart: always
|
||||||
|
container_name: qbittorrent
|
||||||
|
ports:
|
||||||
|
- "0.0.0.0:8080:8080"
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime
|
||||||
|
- /etc/timezone:/etc/timezone
|
||||||
|
- /etc/letsencrypt:/etc/letsencrypt
|
||||||
|
- /opt/qbittorrent/profiles:/opt/qbittorrent/profiles
|
||||||
|
tmpfs:
|
||||||
|
- /tmp
|
||||||
|
environment:
|
||||||
|
- QBT_PROFILE_NAME=docker
|
||||||
|
- SMB_ENABLED=true
|
||||||
|
- SMB_IP=10.10.10.10
|
||||||
|
- SMB_USER=admin
|
||||||
|
- SMB_PASS=password
|
||||||
|
- SMB_WORKGROUP=WORKGROUP
|
||||||
|
- SMB_BIND=/remote/folder
|
27
_experemental/qbittorrent/latest/entrypoint.sh
Executable file
27
_experemental/qbittorrent/latest/entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
: ${QBT_PROFILES_DIR:=/opt/qbittorrent/profiles}
|
||||||
|
: ${QBT_PROFILE_NAME:=docker}
|
||||||
|
|
||||||
|
: ${SMB_ENABLED:=false}
|
||||||
|
|
||||||
|
: ${SMB_DIR:=/mnt/smb}
|
||||||
|
: ${SMB_IP:=10.10.10.10}
|
||||||
|
: ${SMB_USER:=admin}
|
||||||
|
: ${SMB_PASS:=password}
|
||||||
|
: ${SMB_WORKGROUP:=WORKGROUP}
|
||||||
|
: ${SMB_BIND:=/remote/folder}
|
||||||
|
|
||||||
|
#mounting
|
||||||
|
case $SMB_ENABLED in
|
||||||
|
true)
|
||||||
|
echo "SMB Mount enabled - trying to mount"
|
||||||
|
mount.cifs //${SMB_IP}${{SMB_BIND} ${SMB_DIR} -o username=${SMB_USER},password=${SMB_PASS},domain=${SMB_WORKGROUP},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,mapchars
|
||||||
|
;;
|
||||||
|
false)
|
||||||
|
echo "SMD Disabled - skipping"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#starting torrent
|
||||||
|
qbittorrent-nox --profile=${QBT_PROFILES_DIR} --configuration=${QBT_PROFILE_NAME} --webui-port=8080
|
@ -1,44 +0,0 @@
|
|||||||
FROM epicmorg/devel
|
|
||||||
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# ARGuments
|
|
||||||
##################################################################
|
|
||||||
#ENV BuildDocker true
|
|
||||||
#ARG BUILDS_DIR=/builds
|
|
||||||
#ARG SRC_DIR=${BUILDS_DIR}/src
|
|
||||||
#ARG EXPORT_DIR=${BUILDS_DIR}/export
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# Files and folders
|
|
||||||
##################################################################
|
|
||||||
#RUN mkdir -p ${SRC_DIR} ${EXPORT_DIR} ${PRE_DIR}
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# qBitTorrent sources list
|
|
||||||
##################################################################
|
|
||||||
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D35164147CA69FC4
|
|
||||||
COPY qbittorrent-stable.list /etc/apt/sources.list.d/qbittorrent-stable.list
|
|
||||||
RUN apt autoremove -y && apt update && apt dist-upgrade -y
|
|
||||||
|
|
||||||
############################# ####################################
|
|
||||||
# qbittorrent install
|
|
||||||
##################################################################
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt install -y --allow-unauthenticated --allow-downgrades \
|
|
||||||
qbittorrent \
|
|
||||||
cifs-utils
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# other customisations
|
|
||||||
##################################################################
|
|
||||||
RUN cat /etc/samba/smb.conf
|
|
||||||
|
|
||||||
##################################################################
|
|
||||||
# cleaninig up
|
|
||||||
##################################################################
|
|
||||||
RUN apt clean -y && \
|
|
||||||
apt autoclean -y && \
|
|
||||||
rm -rfv /var/lib/apt/lists/* && \
|
|
||||||
rm -rfv /var/cache/apt/archives/*.deb
|
|
27
_experemental/qbittorrent/stable/entrypoint.sh
Executable file
27
_experemental/qbittorrent/stable/entrypoint.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
: ${QBT_PROFILES_DIR:=/opt/qbittorrent/profiles}
|
||||||
|
: ${QBT_PROFILE_NAME:=docker}
|
||||||
|
|
||||||
|
: ${SMB_ENABLED:=false}
|
||||||
|
|
||||||
|
: ${SMB_DIR:=/mnt/smb}
|
||||||
|
: ${SMB_IP:=10.10.10.10}
|
||||||
|
: ${SMB_USER:=admin}
|
||||||
|
: ${SMB_PASS:=password}
|
||||||
|
: ${SMB_WORKGROUP:=WORKGROUP}
|
||||||
|
: ${SMB_BIND:=/remote/folder}
|
||||||
|
|
||||||
|
#mounting
|
||||||
|
case $SMB_ENABLED in
|
||||||
|
true)
|
||||||
|
echo "SMB Mount enabled - trying to mount"
|
||||||
|
mount.cifs //${SMB_IP}${{SMB_BIND} ${SMB_DIR} -o username=${SMB_USER},password=${SMB_PASS},domain=${SMB_WORKGROUP},iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,mapchars
|
||||||
|
;;
|
||||||
|
false)
|
||||||
|
echo "SMD Disabled - skipping"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#starting torrent
|
||||||
|
qbittorrent-nox --profile=${QBT_PROFILES_DIR} --configuration=${QBT_PROFILE_NAME} --webui-port=8080
|
1
_experemental/qbittorrent/stable/will_be_later
Normal file
1
_experemental/qbittorrent/stable/will_be_later
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
Loading…
Reference in New Issue
Block a user