├── .github └── workflows │ ├── Docker-Build.yaml │ └── Docker-Update.yaml ├── .gitmodules ├── Dockerfile ├── README.md ├── docker-compose.yaml └── entrypoint.sh /.github/workflows/Docker-Build.yaml: -------------------------------------------------------------------------------- 1 | name: Docker Build 2 | 3 | on: 4 | push: 5 | branches: master 6 | 7 | jobs: 8 | build: 9 | name: Build 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v2 14 | with: 15 | submodules: true 16 | - name: Set up QEMU 17 | uses: docker/setup-qemu-action@v1 18 | - name: Set up Docker Buildx 19 | uses: docker/setup-buildx-action@v1 20 | - name: Dockerhub Login 21 | uses: docker/login-action@v1 22 | with: 23 | username: ${{ secrets.DOCKERHUB_USER }} 24 | password: ${{ secrets.DOCKERHUB_PASSWORD }} 25 | - name: Github Docker Login 26 | uses: docker/login-action@v1 27 | with: 28 | registry: ghcr.io 29 | username: ${{ github.repository_owner }} 30 | password: ${{ secrets.REPO_TOKEN }} 31 | - name: Build and push 32 | uses: docker/build-push-action@v2 33 | with: 34 | context: . 35 | file: ./Dockerfile 36 | platforms: linux/amd64 37 | push: true 38 | tags: | 39 | apocalypsor0/flexget:latest 40 | ghcr.io/apocalypsor/flexget:latest 41 | -------------------------------------------------------------------------------- /.github/workflows/Docker-Update.yaml: -------------------------------------------------------------------------------- 1 | name: Docker Update 2 | 3 | on: 4 | workflow_dispatch: 5 | 6 | push: 7 | branches: 8 | - master 9 | paths: 10 | - .github/workflows/Docker-Update.yaml 11 | 12 | schedule: 13 | - cron: 9 4 * * * 14 | 15 | jobs: 16 | Update: 17 | name: Docker Update 18 | runs-on: ubuntu-latest 19 | steps: 20 | - uses: actions/checkout@v2 21 | with: 22 | token: ${{ secrets.REPO_TOKEN }} 23 | fetch-depth: 0 24 | submodules: true 25 | - name: Update Submodules 26 | run: git submodule foreach 'git fetch origin; git checkout $(git rev-parse --abbrev-ref HEAD); git reset --hard origin/$(git rev-parse --abbrev-ref HEAD); git submodule update --recursive; git clean -dfx' 27 | - name: Push 28 | uses: stefanzweifel/git-auto-commit-action@v4 29 | with: 30 | commit_message: Update Dockerfile 31 | skip_dirty_check: false 32 | commit_user_name: Action Bot 33 | commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com 34 | commit_author: Action -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "flexget_qbittorrent_mod"] 2 | path = flexget_qbittorrent_mod 3 | url = https://github.com/IvonWei/flexget_qbittorrent_mod 4 | [submodule "flexget-nexusphp"] 5 | path = flexget-nexusphp 6 | url = https://github.com/Juszoe/flexget-nexusphp 7 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM madwind/flexget 2 | 3 | COPY flexget_qbittorrent_mod /tmp/flexget_qbittorrent_mod 4 | COPY flexget-nexusphp /tmp/flexget-nexusphp 5 | 6 | RUN mkdir -p /defaults/plugins \ 7 | && rm -rf /tmp/flexget_qbittorrent_mod/.git* \ 8 | && rm -rf /tmp/flexget_qbittorrent_mod/LICENSE \ 9 | && rm -rf /tmp/flexget_qbittorrent_mod/*.md \ 10 | && mv -f /tmp/flexget_qbittorrent_mod/* /defaults/plugins \ 11 | && mv -f /tmp/flexget-nexusphp/nexusphp.py /defaults/plugins/ \ 12 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man/?? /usr/share/man/??_* 13 | 14 | # 复制 entrypoint 脚本 15 | COPY entrypoint.sh /entrypoint.sh 16 | RUN chmod +x /entrypoint.sh 17 | 18 | ENTRYPOINT ["/entrypoint.sh"] 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flexget-Mod-Docker 2 | Docker for IvonWei/flexget_qbittorrent_mod 3 | 4 | `ghcr.io/apocalypsor/flexget` 5 | -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | flexget: 5 | image: ghcr.io/apocalypsor/flexget 6 | container_name: flexget 7 | environment: 8 | FG_WEBUI_PASSWD: PASSWD 9 | FG_LOG_LEVEL: INFO 10 | TZ: Asia/Shanghai 11 | PUID: 1000 12 | PGID: 1000 13 | volumes: 14 | - ./config:/config 15 | - /config/plugins 16 | - ./downloads:/downloads 17 | ports: 18 | - 127.0.0.1:53539:3539 19 | restart: always 20 | logging: 21 | driver: "json-file" 22 | options: 23 | max-size: "200k" 24 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "Syncing plugins to /config/plugins..." 5 | mkdir -p /config/plugins 6 | 7 | cp -rf /defaults/plugins/* /config/plugins/ 8 | 9 | /usr/bin/entrypoint.sh 10 | --------------------------------------------------------------------------------