Skip to content

Commit 69c4c26

Browse files
committed
first save up
0 parents  commit 69c4c26

File tree

9 files changed

+248
-0
lines changed

9 files changed

+248
-0
lines changed

.dockerignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
.gitignore
3+
.github
4+
.gitattributes
5+
READMETEMPLATE.md
6+
README.md

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.github/ISSUE_TEMPLATE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!--- Provide a general summary of the issue in the Title above -->
2+
3+
[linuxserverurl]: https://linuxserver.io
4+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
5+
6+
7+
<!--- If you have an issue with the project, please provide us with the following information -->
8+
9+
<!--- Host OS -->
10+
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. -->
11+
<!--- Docker log output, docker log <container-name> -->
12+
<!--- Mention if you're using symlinks on any of the volume mounts. -->
13+
14+
15+
<!--- If you have a suggestion or fix for the project, please provide us with the following information -->
16+
17+
<!--- What you think your suggestion brings to the project, or fixes with the project -->
18+
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? -->
19+
20+
## Thanks, team linuxserver.io
21+

.github/PULL_REQUEST_TEMPLATE.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
[linuxserverurl]: https://linuxserver.io
4+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
5+
6+
7+
<!--- Before submitting a pull request please check the following -->
8+
9+
<!--- That you have made a branch in your fork, we'd rather not merge from your master -->
10+
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
11+
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
12+
<!--- -->
13+
14+
## Thanks, team linuxserver.io
15+

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# =========================
21+
# Operating System Files
22+
# =========================
23+
24+
# OSX
25+
# =========================
26+
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear on external disk
35+
.Spotlight-V100
36+
.Trashes
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk

Dockerfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM lsiobase/alpine:3.7
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
7+
LABEL maintainer="sparklyballs"
8+
9+
RUN \
10+
echo "**** install packages ****" && \
11+
apk add --no-cache \
12+
curl \
13+
openjdk8-jre\
14+
python \
15+
unzip && \
16+
echo "**** install hydra2 ****" && \
17+
HYDRA_VER=$(curl -sX GET "https://api.github.com/repos/theotherp/nzbhydra2/releases/latest" \
18+
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
19+
HYDRA2_VER=${HYDRA_VER#v} && \
20+
curl -o \
21+
/tmp/hydra2.zip -L \
22+
"https://github.com/theotherp/nzbhydra2/releases/download/v${HYDRA2_VER}/nzbhydra2-${HYDRA2_VER}-linux.zip" && \
23+
mkdir -p /app/hydra2 && \
24+
unzip /tmp/hydra2.zip -d /app/hydra2 && \
25+
curl -o \
26+
/app/hydra2/nzbhydra2wrapper.py -L \
27+
"https://raw.githubusercontent.com/theotherp/nzbhydra2/master/other/wrapper/nzbhydra2wrapper.py" && \
28+
chmod +x /app/hydra2/nzbhydra2wrapper.py && \
29+
echo "**** cleanup ****" && \
30+
rm -rf \
31+
/tmp/*
32+
33+
# copy local files
34+
COPY root/ /
35+
36+
# ports and volumes
37+
EXPOSE 5075
38+
VOLUME /config /downloads

README.md

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
[linuxserverurl]: https://linuxserver.io
2+
[forumurl]: https://forum.linuxserver.io
3+
[ircurl]: https://www.linuxserver.io/irc/
4+
[podcasturl]: https://www.linuxserver.io/podcast/
5+
[appurl]: https://github.com/theotherp/nzbhydra2
6+
[hub]: https://hub.docker.com/r/linuxserver/hydra2/
7+
8+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
9+
10+
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
11+
* [forum.linuxserver.io][forumurl]
12+
* [IRC][ircurl] on freenode at `#linuxserver.io`
13+
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
14+
15+
# linuxserver/hydra2
16+
[![](https://images.microbadger.com/badges/version/linuxserver/hydra2.svg)](https://microbadger.com/images/linuxserver/hydra2 "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/hydra2.svg)](https://microbadger.com/images/linuxserver/hydra2 "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/hydra2.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/hydra2.svg)][hub][![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Builders/x86-64/x86-64-hydra2)](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-hydra2/)
17+
18+
NZBHydra is a meta search for NZB indexers and the "spiritual successor" to NZBmegasearcH. It provides easy access to a number of raw and newznab based indexers. [hydra](https://github.com/theotherp/nzbhydra)
19+
20+
[![hydra](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/hydra-icon.png)][appurl]
21+
22+
## Usage
23+
24+
```
25+
docker create --name=hydra2 \
26+
-v <path to data>:/config \
27+
-v <nzb download>:/downloads \
28+
-e PGID=<gid> -e PUID=<uid> \
29+
-e TZ=<timezone> \
30+
-p 5075:5075 linuxserver/hydra2
31+
```
32+
33+
## Parameters
34+
35+
`The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
36+
For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container.
37+
So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080
38+
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.`
39+
40+
41+
* `-p 5075` - the port(s)
42+
* `-v /config` - Where hydra2 should store config files
43+
* `-v /downloads` - NZB download folder
44+
* `-e PGID` for GroupID - see below for explanation
45+
* `-e PUID` for UserID - see below for explanation
46+
* `-e TZ` for timezone EG. Europe/London
47+
48+
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it hydra2 /bin/bash`.
49+
50+
### User / Group Identifiers
51+
52+
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
53+
54+
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
55+
56+
```
57+
$ id <dockeruser>
58+
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
59+
```
60+
61+
## Setting up the application
62+
63+
The web interface is at `<your ip>:5075` , to set up indexers and connections to your nzb download applications.
64+
65+
66+
## Info
67+
68+
* To monitor the logs of the container in realtime `docker logs -f hydra2`.
69+
70+
* container version number
71+
72+
`docker inspect -f '{{ index .Config.Labels "build_version" }}' hydra2`
73+
74+
* image version number
75+
76+
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/hydra2`
77+
78+
## Versions
79+
80+
+ **12.12.17:** Rebase to alpine 3.7.
81+
+ **20.07.17:** Internal git pull instead of at runtime.
82+
+ **25.05.17:** Rebase to alpine 3.6.
83+
+ **07.11.16:** Move git clone internal to the container,
84+
point config, database and log to use same locations for existing users.
85+
+ **14.10.16:** Add version layer information.
86+
+ **09.09.16:** Add layer badges to README.
87+
+ **28.08.16:** Add badges to README.
88+
+ **08.08.16:** Rebase to alpine linux.
89+
+ **25.01.16:** Initial Release.

root/etc/cont-init.d/30-config

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
# make our folders
4+
mkdir -p /config/logs
5+
6+
7+
# permissions
8+
chmod +x /app/hydra2/nzbhydra2
9+
chown -R abc:abc /config

root/etc/services.d/nzbhydra2/run

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
# unset unraid specific ENV to avoid crashing
4+
unset HOST_OS
5+
6+
cd /app/hydra2 || exit
7+
8+
exec \
9+
s6-setuidgid abc /usr/bin/python nzbhydra2wrapper.py \
10+
--nobrowser --datafolder /config

0 commit comments

Comments
 (0)