mirror of
https://github.com/linuxserver/docker-doplarr.git
synced 2026-03-09 00:08:13 +08:00
Rebase to alpine 3.17, upgrade to openjdk17
This commit is contained in:
parent
c79ff2c765
commit
2f03f48e96
12
.github/workflows/call_invalid_helper.yml
vendored
Normal file
12
.github/workflows/call_invalid_helper.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
name: Comment on invalid interaction
|
||||
on:
|
||||
issues:
|
||||
types:
|
||||
- labeled
|
||||
jobs:
|
||||
add-comment-on-invalid:
|
||||
if: github.event.label.name == 'invalid'
|
||||
permissions:
|
||||
issues: write
|
||||
uses: linuxserver/github-workflows/.github/workflows/invalid-interaction-helper.yml@v1
|
||||
secrets: inherit
|
||||
12
Dockerfile
12
Dockerfile
@ -1,4 +1,6 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -8,10 +10,6 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="nemchik"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
jq && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
if [ -z ${DOPLARR_RELEASE+x} ]; then \
|
||||
DOPLARR_RELEASE=$(curl -sX GET "https://api.github.com/repos/kiranshila/doplarr/releases/latest" \
|
||||
@ -25,10 +23,8 @@ RUN \
|
||||
cp /tmp/doplarr.jar -d /app/doplarr/bin && \
|
||||
chmod +x /app/doplarr/bin/doplarr.jar && \
|
||||
apk add --no-cache \
|
||||
openjdk16-jre-headless && \
|
||||
openjdk17-jre-headless && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -8,10 +10,6 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="nemchik"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
jq && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
if [ -z ${DOPLARR_RELEASE+x} ]; then \
|
||||
DOPLARR_RELEASE=$(curl -sX GET "https://api.github.com/repos/kiranshila/doplarr/releases/latest" \
|
||||
@ -25,10 +23,8 @@ RUN \
|
||||
cp /tmp/doplarr.jar -d /app/doplarr/bin && \
|
||||
chmod +x /app/doplarr/bin/doplarr.jar && \
|
||||
apk add --no-cache \
|
||||
openjdk16-jre-headless && \
|
||||
openjdk17-jre-headless && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.15
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.17
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -8,6 +10,6 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="nemchik"
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
COPY root-armhf/ /
|
||||
|
||||
# This Doplarr image does not support 32 bit ARM due to lack of available OS packages
|
||||
|
||||
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -28,7 +28,7 @@ pipeline {
|
||||
DEV_DOCKERHUB_IMAGE = 'lsiodev/doplarr'
|
||||
PR_DOCKERHUB_IMAGE = 'lspipepr/doplarr'
|
||||
DIST_IMAGE = 'alpine'
|
||||
DIST_TAG = '3.15'
|
||||
DIST_TAG = '3.17'
|
||||
MULTIARCH='true'
|
||||
CI='true'
|
||||
CI_WEB='false'
|
||||
|
||||
@ -280,6 +280,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **18.12.22:** - Rebase to alpine 3.17, upgrade to openjdk17.
|
||||
* **01.05.22:** - Remove `DISCORD__ROLE_ID` environment variable, see [Permissions Configuration](https://github.com/kiranshila/Doplarr/blob/main/docs/configuration.md#permissions).
|
||||
* **30.01.22:** - Variable adjustments.
|
||||
* **30.01.22:** - Initial Release.
|
||||
|
||||
@ -18,7 +18,7 @@ repo_vars:
|
||||
- DEV_DOCKERHUB_IMAGE = 'lsiodev/doplarr'
|
||||
- PR_DOCKERHUB_IMAGE = 'lspipepr/doplarr'
|
||||
- DIST_IMAGE = 'alpine'
|
||||
- DIST_TAG = '3.15'
|
||||
- DIST_TAG = '3.17'
|
||||
- MULTIARCH='true'
|
||||
- CI='true'
|
||||
- CI_WEB='false'
|
||||
|
||||
@ -77,6 +77,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "18.12.22:", desc: "Rebase to alpine 3.17, upgrade to openjdk17." }
|
||||
- { date: "01.05.22:", desc: "Remove `DISCORD__ROLE_ID` environment variable, see [Permissions Configuration](https://github.com/kiranshila/Doplarr/blob/main/docs/configuration.md#permissions)." }
|
||||
- { date: "30.01.22:", desc: "Variable adjustments." }
|
||||
- { date: "30.01.22:", desc: "Initial Release." }
|
||||
|
||||
3
root/etc/cont-init.d/19-armless → root-armhf/etc/s6-overlay/s6-rc.d/init-doplarr-armless/run
Normal file → Executable file
3
root/etc/cont-init.d/19-armless → root-armhf/etc/s6-overlay/s6-rc.d/init-doplarr-armless/run
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ "$(uname -m)" == "armv7l" ]]; then
|
||||
cat <<-EOF
|
||||
********************************************************
|
||||
********************************************************
|
||||
@ -13,4 +13,3 @@ cat <<-EOF
|
||||
********************************************************
|
||||
********************************************************
|
||||
EOF
|
||||
fi
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-doplarr-config/run
|
||||
7
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-doplarr-config/run
Normal file → Executable file
7
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-doplarr-config/run
Normal file → Executable file
@ -1,9 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# make our folders
|
||||
mkdir -p \
|
||||
/config
|
||||
/config
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
/config
|
||||
lsiown -R abc:abc \
|
||||
/config
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-doplarr-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-doplarr-config/type
Normal file
@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-doplarr-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-doplarr-config/up
Normal file
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-doplarr-config/run
|
||||
9
root/etc/services.d/doplarr/run → root/etc/s6-overlay/s6-rc.d/svc-doplarr/run
Normal file → Executable file
9
root/etc/services.d/doplarr/run → root/etc/s6-overlay/s6-rc.d/svc-doplarr/run
Normal file → Executable file
@ -1,11 +1,8 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ "$(uname -m)" == "armv7l" ]]; then
|
||||
sleep infinity
|
||||
fi
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ ${DISCORD__TOKEN+x} == "" ]]; then
|
||||
cat <<-EOF
|
||||
cat <<-EOF
|
||||
********************************************************
|
||||
********************************************************
|
||||
* *
|
||||
@ -20,7 +17,7 @@ EOF
|
||||
fi
|
||||
|
||||
# add option to pass runtime arguments
|
||||
IFS=" " read -r -a RUN_ARRAY <<< "${JAVA_OPTS}"
|
||||
IFS=" " read -r -a RUN_ARRAY <<<"${JAVA_OPTS}"
|
||||
|
||||
cd /app/doplarr/bin || exit
|
||||
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-doplarr/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-doplarr/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
||||
Loading…
x
Reference in New Issue
Block a user