Skip to content

Commit

Permalink
Merge pull request #8 from linuxserver/package_info-master
Browse files Browse the repository at this point in the history
Reorganize container master
  • Loading branch information
nemchik authored May 1, 2020
2 parents bd63218 + f12a86f commit 1d213f1
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LABEL maintainer="nemchik"

# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV NZBHYDRA2_RELEASE_TYPE="Release"

RUN \
echo "**** install packages ****" && \
Expand All @@ -29,12 +30,10 @@ RUN \
curl -o \
/tmp/nzbhydra2.zip -L \
"https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VER}/nzbhydra2-${NZBHYDRA2_VER}-linux.zip" && \
mkdir -p /app/nzbhydra2 && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2 && \
curl -o \
/app/nzbhydra2/nzbhydra2wrapperPy3.py -L \
"https://raw.githubusercontent.com/theotherp/nzbhydra2/master/other/wrapper/nzbhydra2wrapperPy3.py" && \
chmod +x /app/nzbhydra2/nzbhydra2wrapperPy3.py && \
mkdir -p /app/nzbhydra2/bin && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2/bin && \
chmod +x /app/nzbhydra2/bin/nzbhydra2wrapperPy3.py && \
echo "ReleaseType=${NZBHYDRA2_RELEASE_TYPE}\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/nzbhydra2/package_info && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
Expand Down
11 changes: 5 additions & 6 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LABEL maintainer="nemchik"

# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV NZBHYDRA2_RELEASE_TYPE="Release"

RUN \
echo "**** install packages ****" && \
Expand All @@ -29,12 +30,10 @@ RUN \
curl -o \
/tmp/nzbhydra2.zip -L \
"https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VER}/nzbhydra2-${NZBHYDRA2_VER}-linux.zip" && \
mkdir -p /app/nzbhydra2 && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2 && \
curl -o \
/app/nzbhydra2/nzbhydra2wrapperPy3.py -L \
"https://raw.githubusercontent.com/theotherp/nzbhydra2/master/other/wrapper/nzbhydra2wrapperPy3.py" && \
chmod +x /app/nzbhydra2/nzbhydra2wrapperPy3.py && \
mkdir -p /app/nzbhydra2/bin && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2/bin && \
chmod +x /app/nzbhydra2/bin/nzbhydra2wrapperPy3.py && \
echo "ReleaseType=${NZBHYDRA2_RELEASE_TYPE}\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/nzbhydra2/package_info && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
Expand Down
11 changes: 5 additions & 6 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ LABEL maintainer="nemchik"

# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV NZBHYDRA2_RELEASE_TYPE="Release"

RUN \
echo "**** install packages ****" && \
Expand All @@ -29,12 +30,10 @@ RUN \
curl -o \
/tmp/nzbhydra2.zip -L \
"https://github.com/theotherp/nzbhydra2/releases/download/v${NZBHYDRA2_VER}/nzbhydra2-${NZBHYDRA2_VER}-linux.zip" && \
mkdir -p /app/nzbhydra2 && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2 && \
curl -o \
/app/nzbhydra2/nzbhydra2wrapperPy3.py -L \
"https://raw.githubusercontent.com/theotherp/nzbhydra2/master/other/wrapper/nzbhydra2wrapperPy3.py" && \
chmod +x /app/nzbhydra2/nzbhydra2wrapperPy3.py && \
mkdir -p /app/nzbhydra2/bin && \
unzip /tmp/nzbhydra2.zip -d /app/nzbhydra2/bin && \
chmod +x /app/nzbhydra2/bin/nzbhydra2wrapperPy3.py && \
echo "ReleaseType=${NZBHYDRA2_RELEASE_TYPE}\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/nzbhydra2/package_info && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64

## Versions

* **01.05.20:** - Reorganize container, Relocate app to /app/nzbhydra2/bin, Create /app/nzbhydra2/package_info, Use nzbhydra2wrapperPy3.py from zip.
* **14.04.20:** - Correct Name, Hydra2 -> NZBHydra2.
* **08.01.20:** - Switch to python3.
* **05.01.20:** - Add dev tag for prereleases.
Expand Down
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ app_setup_block: |
# changelog

changelogs:
- { date: "01.05.20:", desc: "Reorganize container, Relocate app to /app/nzbhydra2/bin, Create /app/nzbhydra2/package_info, Use nzbhydra2wrapperPy3.py from zip." }
- { date: "14.04.20:", desc: "Correct Name, Hydra2 -> NZBHydra2." }
- { date: "08.01.20:", desc: "Switch to python3." }
- { date: "05.01.20:", desc: "Add dev tag for prereleases." }
Expand Down
2 changes: 1 addition & 1 deletion root/etc/cont-init.d/30-config
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ mkdir -p /config/logs


# permissions
chmod +x /app/nzbhydra2/nzbhydra2
chmod +x /app/nzbhydra2/bin/nzbhydra2
chown -R abc:abc /config
2 changes: 1 addition & 1 deletion root/etc/services.d/nzbhydra2/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# unset unraid specific ENV to avoid crashing
unset HOST_OS

cd /app/nzbhydra2 || exit
cd /app/nzbhydra2/bin || exit

exec \
s6-setuidgid abc /usr/bin/python3 nzbhydra2wrapperPy3.py \
Expand Down

0 comments on commit 1d213f1

Please sign in to comment.