commit 353bab581ad834e862c68361a28fc5341a56d843 Author: Adam Dodman Date: Sat Apr 28 14:21:22 2018 +0100 Initial Commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8df5f7a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,20 @@ +pipeline: + build: + image: spritsail/docker-build + volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ] + repo: nzbget-dev + + # No test step, the upstream should sort that. ffmpeg should work if the build finishes. + + publish: + image: spritsail/docker-publish + volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ] + secrets: [ docker_username, docker_password, microbadger_token ] + when: { branch: [ master ], event: [ push, tag, deployment ] } + from: nzbget-dev + repo: adamant/nzbget + + notify: + image: spritsail/notify + when: { status: [ success, failure ] } + secrets: [ webhook_url, notify_token ] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8f82bfc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM spritsail/nzbget + +LABEL maintainer="Adam Dodman " \ + org.label-schema.name="NZBGet" \ + org.label-schema.url="https://nzbget.net/" \ + org.label-schema.description="NZBGet - the efficient Usenet downloader, with added ffmpeg libraries" \ + +RUN apk add --no-cache ffmpeg file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c04a78b --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +[hub]: https://hub.docker.com/r/adamant/nzbget +[git]: https://github.com/adamant/nzbget +[drone]: https://drone.adamant.io/spritsail/nzbget +[mbdg]: https://microbadger.com/images/adamant/nzbget + +# [Spritsail/NZBGet][hub] + +[![Layers](https://images.microbadger.com/badges/image/adamant/nzbget.svg)][mbdg] +[![Latest Version](https://images.microbadger.com/badges/version/adamant/nzbget.svg)][hub] +[![Git Commit](https://images.microbadger.com/badges/commit/adamant/nzbget.svg)][git] +[![Docker Pulls](https://img.shields.io/docker/pulls/adamant/nzbget.svg)][hub] +[![Docker Stars](https://img.shields.io/docker/stars/adamant/nzbget.svg)][hub] +[![Build Status](https://drone.adamant.io/api/badges/spritsail/nzbget/status.svg)][drone] + +An Alpine Linux based Dockerfile to run the usenet downloader NZBGet. This is a fork that includes ffmpeg and file, for post processing scripts. +It expects a volume to store data mapped to `/config` in the container, and a volume where your downloads should go stored at `/downloads`. Enjoy! + +This dockerfile uses a user with uid 904, and a gid of 900. Make sure this user has write access to the /config folder. +These user IDs can be overwritten by defining `$UID` and `$GID` respectively. + +## Example run command +``` +docker run -d --restart=on-failure:10 --name NZBGet -v /volumes/nzbget:/config -v /host/path/to/downloads:/downloads -p 6789:6789 adamant/nzbget +```