From a14be686b34cb50fc2a017e4d7732b39f6e98da8 Mon Sep 17 00:00:00 2001 From: Cody Date: Fri, 8 Mar 2019 18:21:43 -0500 Subject: [PATCH 1/8] FlexGit initial commit --- apps/flexget.yml | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 apps/flexget.yml diff --git a/apps/flexget.yml b/apps/flexget.yml new file mode 100644 index 0000000..cadd05c --- /dev/null +++ b/apps/flexget.yml @@ -0,0 +1,82 @@ +#!/bin/bash +# +# Title: FlexGet +# Author(s): paranoidi, Chase Sterling, cpoppema +# URL: https://flexget.com/ | https://github.com/cpoppema/docker-flexget +# GNU: MIT +################################################################################ +--- +- hosts: localhost + gather_facts: false + tasks: + # FACTS ####################################################################### + - name: 'Set Known Facts' + set_fact: + pgrole: 'flexget' + intport: '5050' + extport: '6060' + image: 'cpoppema/docker-flexget:latest' + + # CORE (MANDATORY) ############################################################ + - name: 'Including cron job' + include_tasks: '/opt/communityapps/apps/_core.yml' + + # LABELS ###################################################################### + - name: 'Adding Traefik' + set_fact: + pg_labels: + traefik.frontend.auth.forward.address: '{{gauth}}' + traefik.enable: 'true' + traefik.port: '{{intport}}' + traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}' + + - name: 'Setting PG Volumes' + set_fact: + pg_volumes: + - '/etc/localtime:/etc/localtime:ro' + - '/opt/appdata/{{pgrole}}:/config' + - '/mnt/downloads/{{pgrole}}:/downloads' + - '{{path.stdout}}:{{path.stdout}}' + - '/mnt:/mnt' + + - name: 'Setting PG ENV' + set_fact: + pg_env: + PUID: '1000' + PGID: '1000' + + + + # MAIN DEPLOYMENT ############################################################# + - name: 'Deploying {{pgrole}}' + docker_container: + name: '{{pgrole}}' + image: '{{image}}' + pull: yes + published_ports: + - '{{ports.stdout}}{{extport}}:{{intport}}' + volumes: '{{pg_volumes}}' + env: '{{pg_env}}' + restart_policy: unless-stopped + networks: + - name: plexguide + aliases: + - '{{pgrole}}' + state: started + labels: '{{pg_labels}}' + + # CONFIGURATION ############################################################# + #- name: Checking for existing app data + # stat: + # path: "/opt/appdata/{{pgrole}}/config.yml" + # register: cfcheck + # + #- name: "Configuring {{pgrole}} for first time use" + # block: + # - name: Creating config file + # shell: 'touch /opt/appdata/{{pgrole}}/config.yml' + # - name: Populate example config + # shell: 'echo -e ''web_server:\n bind: 0.0.0.0\n port: {{intport}}\n\ntasks:\n example-task:\n rss: hxxp://example.com/feed.xml\n download: /download\n series:\n - some series 1\n - some series 2'' > /opt/appdata/{{pgrole}}/config.yml' + # - name: Fix permissions + # shell: 'chown {{PUID}}:{{PGID}} /opt/appdata/{{pgrole}}/config.yml' + # when: not cfcheck.stat.exists \ No newline at end of file From a71d18df763c42408e3c173fbef261c11b4417c3 Mon Sep 17 00:00:00 2001 From: Cody Date: Thu, 14 Mar 2019 17:48:02 -0400 Subject: [PATCH 2/8] Initialize Flexget --- apps/flexget.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/apps/flexget.yml b/apps/flexget.yml index cadd05c..25faf86 100644 --- a/apps/flexget.yml +++ b/apps/flexget.yml @@ -35,7 +35,6 @@ pg_volumes: - '/etc/localtime:/etc/localtime:ro' - '/opt/appdata/{{pgrole}}:/config' - - '/mnt/downloads/{{pgrole}}:/downloads' - '{{path.stdout}}:{{path.stdout}}' - '/mnt:/mnt' @@ -64,19 +63,3 @@ - '{{pgrole}}' state: started labels: '{{pg_labels}}' - - # CONFIGURATION ############################################################# - #- name: Checking for existing app data - # stat: - # path: "/opt/appdata/{{pgrole}}/config.yml" - # register: cfcheck - # - #- name: "Configuring {{pgrole}} for first time use" - # block: - # - name: Creating config file - # shell: 'touch /opt/appdata/{{pgrole}}/config.yml' - # - name: Populate example config - # shell: 'echo -e ''web_server:\n bind: 0.0.0.0\n port: {{intport}}\n\ntasks:\n example-task:\n rss: hxxp://example.com/feed.xml\n download: /download\n series:\n - some series 1\n - some series 2'' > /opt/appdata/{{pgrole}}/config.yml' - # - name: Fix permissions - # shell: 'chown {{PUID}}:{{PGID}} /opt/appdata/{{pgrole}}/config.yml' - # when: not cfcheck.stat.exists \ No newline at end of file From fd0b180960993adb67e2a42f3385b32092d1d9c0 Mon Sep 17 00:00:00 2001 From: dhumphrey7 <47798651+dhumphrey7@users.noreply.github.com> Date: Wed, 20 Mar 2019 09:00:22 -0500 Subject: [PATCH 3/8] Changing templates folder to correct path --- apps/nzbget-mp4.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/nzbget-mp4.yml b/apps/nzbget-mp4.yml index 32404cd..a3b65f1 100644 --- a/apps/nzbget-mp4.yml +++ b/apps/nzbget-mp4.yml @@ -57,7 +57,7 @@ - name: 'Copy custom init scripts into directory for {{pgrole}}' copy: - src: /opt/communityapps/apps/templates/nzbget-mp4/cont-init.d/30-config + src: /opt/communityapps/apps/templates/{{pgrole}}/cont-init.d/30-config dest: /opt/appdata/{{pgrole}}/cont-init.d directory_mode: yes force: yes @@ -67,7 +67,7 @@ - name: 'Copy custom install scripts into directory for {{pgrole}}' copy: - src: /opt/communityapps/apps/templates/nzbget-mp4/installer/installer.sh + src: /opt/communityapps/apps/templates/{{pgrole}}/installer/installer.sh dest: /opt/appdata/{{pgrole}}/installer directory_mode: yes force: yes @@ -77,7 +77,7 @@ - name: 'Copy custom mp4 config into directory for {{pgrole}}' copy: - src: /opt/communityapps/apps/templates/nzbget-mp4/MP4_Automator/autoProcess.ini + src: /opt/communityapps/apps/templates/{{pgrole}}/MP4_Automator/autoProcess.ini dest: /opt/appdata/{{pgrole}}/scripts/MP4_Automator directory_mode: yes force: yes @@ -87,7 +87,7 @@ - name: 'Copy custom NZBGetPostProcess script config into directory for {{pgrole}}' copy: - src: /opt/communityapps/apps/templates/nzbget-mp4/MP4_Automator/TEMPLATEPPScript + src: /opt/communityapps/apps/templates/{{pgrole}}/MP4_Automator/TEMPLATEPPScript dest: /opt/appdata/{{pgrole}}/ directory_mode: yes force: yes @@ -97,7 +97,7 @@ - name: 'Copy ffmpeg build script into directory for {{pgrole}}' copy: - src: /opt/communityapps/apps/templates/nzbget-mp4/ffmpeg-build/web-install.sh + src: /opt/communityapps/apps/templates/{{pgrole}}/ffmpeg-build/web-install.sh dest: /opt/appdata/{{pgrole}}/ffmpeg-build directory_mode: yes force: yes @@ -107,7 +107,7 @@ - name: 'Copy ffmpeg build script into directory for {{pgrole}}' copy: - src: /opt/communityapps/apps/templates/nzbget-mp4/ffmpeg-build/build-ffmpeg + src: /opt/communityapps/apps/templates/{{pgrole}}/ffmpeg-build/build-ffmpeg dest: /opt/appdata/{{pgrole}}/ffmpeg-build directory_mode: yes force: yes @@ -117,7 +117,7 @@ - name: 'Copy custom init scripts into directory for {{pgrole}}' copy: - src: /opt/communityapps/apps/templates/nzbget-mp4/services.d/run + src: /opt/communityapps/apps/templates/{{pgrole}}/services.d/run dest: /opt/appdata/{{pgrole}}/services.d directory_mode: yes force: yes From 1457880eac35190d50129e139128171d62364d1b Mon Sep 17 00:00:00 2001 From: dhumphrey7 <47798651+dhumphrey7@users.noreply.github.com> Date: Wed, 20 Mar 2019 09:07:56 -0500 Subject: [PATCH 4/8] Updates nasm to 2.14.02 2.13 has issues with gcc 8 --- apps/templates/nzgbet/ffmpeg-build/build-ffmpeg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/templates/nzgbet/ffmpeg-build/build-ffmpeg b/apps/templates/nzgbet/ffmpeg-build/build-ffmpeg index 9aad5c4..54bd986 100644 --- a/apps/templates/nzgbet/ffmpeg-build/build-ffmpeg +++ b/apps/templates/nzgbet/ffmpeg-build/build-ffmpeg @@ -175,8 +175,8 @@ if build "yasm"; then fi if build "nasm"; then - download "http://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.gz" "nasm.tar.gz" - cd $PACKAGES/nasm-2.13.03 || exit + download "http://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.14.02.tar.gz" "nasm.tar.gz" + cd $PACKAGES/nasm-2.14.02 || exit execute ./configure --prefix=${WORKSPACE} --disable-shared --enable-static execute make -j $MJOBS execute make install From 64aad0e9d18f9b2ae1d417df8ddb74e145992d27 Mon Sep 17 00:00:00 2001 From: dhumphrey7 <47798651+dhumphrey7@users.noreply.github.com> Date: Wed, 20 Mar 2019 09:14:44 -0500 Subject: [PATCH 5/8] Update autoProcess.ini --- apps/templates/nzgbet/mp4_automator/autoProcess.ini | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/templates/nzgbet/mp4_automator/autoProcess.ini b/apps/templates/nzgbet/mp4_automator/autoProcess.ini index 83b18aa..d0427a6 100644 --- a/apps/templates/nzgbet/mp4_automator/autoProcess.ini +++ b/apps/templates/nzgbet/mp4_automator/autoProcess.ini @@ -24,7 +24,7 @@ apikey = [MP4] ffmpeg = /config/ffmpeg-build/workspace/bin/ffmpeg ffprobe = /config/ffmpeg-build/workspace/bin/ffprobe -threads = 1 +threads = 0 output_directory = copy_to = move_to = @@ -38,7 +38,8 @@ video-crf = 18 video-max-width = h264-max-level = 4.1 use-qsv-decoder-with-encoder = True -ios-audio = libfdk_aac +use-hevc-qsv-decoder = False +ios-audio = True ios-first-track-only = False ios-audio-filter = dynaudnorm max-audio-channels = @@ -47,17 +48,17 @@ audio-language = eng audio-default-language = eng audio-channel-bitrate = 256 audio-filter = -subtitle-codec = srt +subtitle-codec = mov_text subtitle-language = eng subtitle-default-language = subtitle-encoding = fullpathguess = True -convert-mp4 = True +convert-mp4 = False tagfile = True tag-language = en download-artwork = Poster download-subs = True -embed-subs = False +embed-subs = True sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles permissions = 0777 post-process = False From da0317efb492c9b5cd5a295cdee7ef6faece2d7b Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 Mar 2019 12:25:32 -0500 Subject: [PATCH 6/8] fixed directory names --- .../mp4_automator => nzbget/MP4_Automator}/TEMPLATEPPScript | 0 .../mp4_automator => nzbget/MP4_Automator}/autoProcess.ini | 0 apps/templates/{nzgbet => nzbget}/cont-init.d/30-config | 0 apps/templates/{nzgbet => nzbget}/ffmpeg-build/build-ffmpeg | 0 apps/templates/{nzgbet => nzbget}/ffmpeg-build/web-install.sh | 0 apps/templates/{nzgbet => nzbget}/installer/installer.sh | 0 apps/templates/{nzgbet => nzbget}/scripts/DeleteSamples.py | 0 apps/templates/{nzgbet => nzbget}/scripts/flatten.py | 0 apps/templates/{nzgbet => nzbget}/scripts/hash.py | 0 apps/templates/{nzgbet => nzbget}/scripts/rarfile/__init__.py | 0 apps/templates/{nzgbet => nzbget}/scripts/rarfile/rarfile.py | 0 apps/templates/{nzgbet => nzbget}/scripts/reverse_name.py | 0 apps/templates/{nzgbet => nzbget}/scripts/unzip.py | 0 apps/templates/{nzgbet => nzbget}/services.d/run | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename apps/templates/{nzgbet/mp4_automator => nzbget/MP4_Automator}/TEMPLATEPPScript (100%) rename apps/templates/{nzgbet/mp4_automator => nzbget/MP4_Automator}/autoProcess.ini (100%) rename apps/templates/{nzgbet => nzbget}/cont-init.d/30-config (100%) rename apps/templates/{nzgbet => nzbget}/ffmpeg-build/build-ffmpeg (100%) rename apps/templates/{nzgbet => nzbget}/ffmpeg-build/web-install.sh (100%) rename apps/templates/{nzgbet => nzbget}/installer/installer.sh (100%) rename apps/templates/{nzgbet => nzbget}/scripts/DeleteSamples.py (100%) rename apps/templates/{nzgbet => nzbget}/scripts/flatten.py (100%) rename apps/templates/{nzgbet => nzbget}/scripts/hash.py (100%) rename apps/templates/{nzgbet => nzbget}/scripts/rarfile/__init__.py (100%) rename apps/templates/{nzgbet => nzbget}/scripts/rarfile/rarfile.py (100%) rename apps/templates/{nzgbet => nzbget}/scripts/reverse_name.py (100%) rename apps/templates/{nzgbet => nzbget}/scripts/unzip.py (100%) rename apps/templates/{nzgbet => nzbget}/services.d/run (100%) diff --git a/apps/templates/nzgbet/mp4_automator/TEMPLATEPPScript b/apps/templates/nzbget/MP4_Automator/TEMPLATEPPScript similarity index 100% rename from apps/templates/nzgbet/mp4_automator/TEMPLATEPPScript rename to apps/templates/nzbget/MP4_Automator/TEMPLATEPPScript diff --git a/apps/templates/nzgbet/mp4_automator/autoProcess.ini b/apps/templates/nzbget/MP4_Automator/autoProcess.ini similarity index 100% rename from apps/templates/nzgbet/mp4_automator/autoProcess.ini rename to apps/templates/nzbget/MP4_Automator/autoProcess.ini diff --git a/apps/templates/nzgbet/cont-init.d/30-config b/apps/templates/nzbget/cont-init.d/30-config similarity index 100% rename from apps/templates/nzgbet/cont-init.d/30-config rename to apps/templates/nzbget/cont-init.d/30-config diff --git a/apps/templates/nzgbet/ffmpeg-build/build-ffmpeg b/apps/templates/nzbget/ffmpeg-build/build-ffmpeg similarity index 100% rename from apps/templates/nzgbet/ffmpeg-build/build-ffmpeg rename to apps/templates/nzbget/ffmpeg-build/build-ffmpeg diff --git a/apps/templates/nzgbet/ffmpeg-build/web-install.sh b/apps/templates/nzbget/ffmpeg-build/web-install.sh similarity index 100% rename from apps/templates/nzgbet/ffmpeg-build/web-install.sh rename to apps/templates/nzbget/ffmpeg-build/web-install.sh diff --git a/apps/templates/nzgbet/installer/installer.sh b/apps/templates/nzbget/installer/installer.sh similarity index 100% rename from apps/templates/nzgbet/installer/installer.sh rename to apps/templates/nzbget/installer/installer.sh diff --git a/apps/templates/nzgbet/scripts/DeleteSamples.py b/apps/templates/nzbget/scripts/DeleteSamples.py similarity index 100% rename from apps/templates/nzgbet/scripts/DeleteSamples.py rename to apps/templates/nzbget/scripts/DeleteSamples.py diff --git a/apps/templates/nzgbet/scripts/flatten.py b/apps/templates/nzbget/scripts/flatten.py similarity index 100% rename from apps/templates/nzgbet/scripts/flatten.py rename to apps/templates/nzbget/scripts/flatten.py diff --git a/apps/templates/nzgbet/scripts/hash.py b/apps/templates/nzbget/scripts/hash.py similarity index 100% rename from apps/templates/nzgbet/scripts/hash.py rename to apps/templates/nzbget/scripts/hash.py diff --git a/apps/templates/nzgbet/scripts/rarfile/__init__.py b/apps/templates/nzbget/scripts/rarfile/__init__.py similarity index 100% rename from apps/templates/nzgbet/scripts/rarfile/__init__.py rename to apps/templates/nzbget/scripts/rarfile/__init__.py diff --git a/apps/templates/nzgbet/scripts/rarfile/rarfile.py b/apps/templates/nzbget/scripts/rarfile/rarfile.py similarity index 100% rename from apps/templates/nzgbet/scripts/rarfile/rarfile.py rename to apps/templates/nzbget/scripts/rarfile/rarfile.py diff --git a/apps/templates/nzgbet/scripts/reverse_name.py b/apps/templates/nzbget/scripts/reverse_name.py similarity index 100% rename from apps/templates/nzgbet/scripts/reverse_name.py rename to apps/templates/nzbget/scripts/reverse_name.py diff --git a/apps/templates/nzgbet/scripts/unzip.py b/apps/templates/nzbget/scripts/unzip.py similarity index 100% rename from apps/templates/nzgbet/scripts/unzip.py rename to apps/templates/nzbget/scripts/unzip.py diff --git a/apps/templates/nzgbet/services.d/run b/apps/templates/nzbget/services.d/run similarity index 100% rename from apps/templates/nzgbet/services.d/run rename to apps/templates/nzbget/services.d/run From 06e438352e4ae05509594eca6b8ecaaa75032d2e Mon Sep 17 00:00:00 2001 From: h1f0x Date: Wed, 20 Mar 2019 21:55:31 +0100 Subject: [PATCH 7/8] rTorrent + FloodUI + OpenVPN Hi all, Created the first of a series of torrent clients with openvpn integration: Github: https://github.com/h1f0x/rtorrent-flood-openvpn Docker Hub: https://hub.docker.com/r/h1f0x/rtorrent-flood-openvpn I will create forum post, for feedback! :-) If it works, i will create other UI's too! Cheers H1f0x --- apps/rflood-openvpn.yml | 78 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 apps/rflood-openvpn.yml diff --git a/apps/rflood-openvpn.yml b/apps/rflood-openvpn.yml new file mode 100644 index 0000000..552de75 --- /dev/null +++ b/apps/rflood-openvpn.yml @@ -0,0 +1,78 @@ +#!/bin/bash +# +# Title: rTorrent + FloodUI integrated OpenVPN +# Author(s): h1f0x +# URL: https://github.com/h1f0x/rtorrent-flood-openvpn +# GNU: General Public License v3.0 +################################################################################ +--- +- hosts: localhost + gather_facts: false + tasks: + # FACTS ####################################################################### + + - name: 'Set Known Facts' + set_fact: + pgrole: 'rflood-openvpn' + intport: '80' + extport: '5896' + image: 'h1f0x/rtorrent-flood-openvpn' + + # CORE (MANDATORY) ############################################################ + - name: 'Including cron job' + include_tasks: '/opt/communityapps/apps/_core.yml' + + - name: 'Including plugins' + include_tasks: '/opt/communityapps/apps/_plugins.yml' + + - name: 'Including folders' + include_tasks: '/opt/communityapps/apps/_downloaders.yml' + + - name: 'Ini Check' + stat: + path: /opt/appdata/{{pgrole}}/core.conf + register: inicheck + + # LABELS ###################################################################### + - name: 'Adding Traefik' + set_fact: + pg_labels: + traefik.enable: 'true' + traefik.port: '{{intport}}' + traefik.frontend.auth.forward.address: '{{gauth}}' + traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}' + + - name: 'Setting PG Volumes' + set_fact: + pg_volumes: + - '/opt/appdata/{{pgrole}}:/config' + - '{{path.stdout}}:{{path.stdout}}' + - '/mnt/unionfs:/unionfs' + - '/mnt/downloads/{{pgrole}}:/output/complete' + - '/mnt/incomplete/{{pgrole}}:/output/incomplete' + - '/etc/localtime:/etc/localtime:ro' + + - name: 'Setting PG ENV' + set_fact: + pg_env: + UID: 1000 + GID: 1000 + + # MAIN DEPLOYMENT ############################################################# + - name: 'Deploying {{pgrole}}' + docker_container: + name: '{{pgrole}}' + image: '{{image}}' + pull: yes + published_ports: + - '{{ports.stdout}}{{extport}}:{{intport}}' + volumes: '{{pg_volumes}}' + env: '{{pg_env}}' + restart_policy: unless-stopped + networks: + - name: plexguide + aliases: + - '{{pgrole}}' + privileged: yes + state: started + labels: '{{pg_labels}}' From 31ff3d760f418a1e132d57c94460a1426a2bdf3b Mon Sep 17 00:00:00 2001 From: Admin9705 Date: Thu, 21 Mar 2019 11:58:12 -0400 Subject: [PATCH 8/8] update --- apps/zammad.yml | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 apps/zammad.yml diff --git a/apps/zammad.yml b/apps/zammad.yml new file mode 100644 index 0000000..3481879 --- /dev/null +++ b/apps/zammad.yml @@ -0,0 +1,68 @@ +#!/bin/bash +# +# Title: PGBlitz (Reference Title File) +# Author(s): Admin9705 +# URL: https://pgblitz.com - http://github.pgblitz.com +# GNU: General Public License v3.0 +################################################################################ +--- +- hosts: localhost + gather_facts: false + tasks: +# CORE (MANDATORY) DO NOT CHANGE ########################################### + + - name: 'Set Known Facts' + set_fact: + pgrole: "zammad" + intport: "80" + extport: "8777" + image: "zammad/zammad" + + - name: 'Including cron job' + include_tasks: '/opt/communityapps/apps/_core.yml' + +# EXTRA FUNCTIONS REQUIRED BY THE ROLE ##################################### + +##### NOTHING REQUIRED + +# LABELS #### KEEPS BOTTOM CLEAN ########################################### + - name: 'Adding Traefik' + set_fact: + pg_labels: + traefik.frontend.auth.forward.address: '{{gauth}}' + traefik.enable: 'true' + traefik.port: '{{intport}}' + traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}' + + - name: 'Setting PG Volumes' + set_fact: + pg_volumes: + - '/opt/appdata/{{pgrole}}:/config' + - '{{path.stdout}}:{{path.stdout}}' + - '/mnt:/mnt' + - '/etc/localtime:/etc/localtime:ro' + + - name: 'Setting PG ENV' + set_fact: + pg_env: + PUID: '1000' + PGID: '1000' + + # MAIN SCRIPT ############################################################## + + - name: 'Deploying {{pgrole}}' + docker_container: + name: '{{pgrole}}' + image: '{{image}}' + pull: yes + published_ports: + - '{{ports.stdout}}{{extport}}:{{intport}}' + volumes: '{{pg_volumes}}' + env: '{{pg_env}}' + restart_policy: unless-stopped + networks: + - name: plexguide + aliases: + - '{{pgrole}}' + state: started + labels: '{{pg_labels}}'