Skip to content
This repository was archived by the owner on May 25, 2024. It is now read-only.

Commit c60b795

Browse files
committed
Deprecate image
1 parent 3cf3b10 commit c60b795

File tree

13 files changed

+80
-95
lines changed

13 files changed

+80
-95
lines changed

.github/ISSUE_TEMPLATE/issue.bug.yml

+4-68
Original file line numberDiff line numberDiff line change
@@ -4,73 +4,9 @@ description: Create a report to help us improve
44
title: "[BUG] <title>"
55
labels: [Bug]
66
body:
7-
- type: checkboxes
7+
- type: markdown
88
attributes:
9-
label: Is there an existing issue for this?
10-
description: Please search to see if an issue already exists for the bug you encountered.
11-
options:
12-
- label: I have searched the existing issues
13-
required: true
14-
- type: textarea
15-
attributes:
16-
label: Current Behavior
17-
description: Tell us what happens instead of the expected behavior.
18-
validations:
19-
required: true
20-
- type: textarea
21-
attributes:
22-
label: Expected Behavior
23-
description: Tell us what should happen.
24-
validations:
25-
required: false
26-
- type: textarea
27-
attributes:
28-
label: Steps To Reproduce
29-
description: Steps to reproduce the behavior.
30-
placeholder: |
31-
1. In this environment...
32-
2. With this config...
33-
3. Run '...'
34-
4. See error...
35-
validations:
36-
required: true
37-
- type: textarea
38-
attributes:
39-
label: Environment
40-
description: |
41-
examples:
42-
- **OS**: Ubuntu 20.04
43-
- **How docker service was installed**: distro's packagemanager
449
value: |
45-
- OS:
46-
- How docker service was installed:
47-
render: markdown
48-
validations:
49-
required: false
50-
- type: dropdown
51-
attributes:
52-
label: CPU architecture
53-
options:
54-
- x86-64
55-
- arm64
56-
validations:
57-
required: true
58-
- type: textarea
59-
attributes:
60-
label: Docker creation
61-
description: |
62-
Command used to create docker container
63-
Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container
64-
render: bash
65-
validations:
66-
required: true
67-
- type: textarea
68-
attributes:
69-
description: |
70-
Provide a full docker log, output of "docker logs dillinger"
71-
label: Container logs
72-
placeholder: |
73-
Output of `docker logs dillinger`
74-
render: bash
75-
validations:
76-
required: true
10+
# This image is deprecated. We will not offer support for this image and it will not be updated.
11+
12+

.github/ISSUE_TEMPLATE/issue.feature.yml

+5-24
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,9 @@ description: Suggest an idea for this project
44
title: "[FEAT] <title>"
55
labels: [enhancement]
66
body:
7-
- type: checkboxes
7+
- type: markdown
88
attributes:
9-
label: Is this a new feature request?
10-
description: Please search to see if a feature request already exists.
11-
options:
12-
- label: I have searched the existing issues
13-
required: true
14-
- type: textarea
15-
attributes:
16-
label: Wanted change
17-
description: Tell us what you want to happen.
18-
validations:
19-
required: true
20-
- type: textarea
21-
attributes:
22-
label: Reason for change
23-
description: Justify your request, why do you want it, what is the benefit.
24-
validations:
25-
required: true
26-
- type: textarea
27-
attributes:
28-
label: Proposed code change
29-
description: Do you have a potential code change in mind?
30-
validations:
31-
required: false
9+
value: |
10+
# This image is deprecated. We will not offer support for this image and it will not be updated.
11+
12+

.github/PULL_REQUEST_TEMPLATE.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This image is deprecated. We will not offer support for this image and it will not be updated.
2+
3+
14
<!--- Provide a general summary of your changes in the Title above -->
25

36
[linuxserverurl]: https://linuxserver.io

.github/workflows/greetings.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/first-interaction@v1
1010
with:
11-
issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'
12-
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-dillinger/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
11+
issue-message: 'This image is deprecated. We will not offer support for this image and it will not be updated. The [README](https://github.com/linuxserver/docker-dillinger/blob/master/README.md) may have additional information. Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'
12+
pr-message: 'This image is deprecated. We will not offer support for this image and it will not be updated. The [README](https://github.com/linuxserver/docker-dillinger/blob/master/README.md) may have additional information. Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-dillinger/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

Jenkinsfile

+43-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pipeline {
6565
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
6666
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
6767
env.PULL_REQUEST = env.CHANGE_ID
68-
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml'
68+
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./root/etc/s6-overlay/s6-rc.d/init-deprecate/run ./root/etc/s6-overlay/s6-rc.d/init-deprecate/up ./root/etc/s6-overlay/s6-rc.d/init-deprecate/type ./root/etc/s6-overlay/s6-rc.d/init-deprecate/dependencies.d/init-config-end ./root/etc/s6-overlay/s6-rc.d/init-services/dependencies.d/init-deprecate ./root/etc/s6-overlay/s6-rc.d/user/contents.d/init-deprecate'
6969
}
7070
sh '''#! /bin/bash
7171
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
@@ -296,6 +296,7 @@ pipeline {
296296
fi
297297
echo "Starting Stage 2 - Delete old templates"
298298
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml Dockerfile.armhf"
299+
OLD_TEMPLATES="${OLD_TEMPLATES} $(echo .github/workflows/{external_trigger,external_trigger_scheduler,package_trigger,package_trigger_scheduler,call_issue_pr_tracker,call_issues_cron}.yml)"
299300
for i in ${OLD_TEMPLATES}; do
300301
if [[ -f "${i}" ]]; then
301302
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -331,6 +332,10 @@ pipeline {
331332
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
332333
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
333334
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
335+
mkdir -p \
336+
${TEMPDIR}/repo/${LS_REPO}/root/etc/s6-overlay/s6-rc.d/init-deprecate/dependencies.d \
337+
${TEMPDIR}/repo/${LS_REPO}/root/etc/s6-overlay/s6-rc.d/init-services/dependencies.d \
338+
${TEMPDIR}/repo/${LS_REPO}/root/etc/s6-overlay/s6-rc.d/user/contents.d
334339
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
335340
cp --parents readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/ || :
336341
cd ${TEMPDIR}/repo/${LS_REPO}/
@@ -360,6 +365,19 @@ pipeline {
360365
git add docs/images/docker-${CONTAINER_NAME}.md
361366
echo "Updating docs repo"
362367
git commit -m 'Bot Updating Documentation'
368+
git mv docs/images/docker-${CONTAINER_NAME}.md docs/deprecated_images/docker-${CONTAINER_NAME}.md || :
369+
if ! command -v yq || ! yq --help | grep -q 'mikefarah'; then
370+
YQ_DL_VERSION=$(curl -fsX GET "https://api.github.com/repos/mikefarah/yq/releases/latest" | jq -r '. | .tag_name')
371+
echo "No yq found, retrieving from upstream release version ${YQ_DL_VERSION}"
372+
curl -fo /usr/local/bin/yq -L "https://github.com/mikefarah/yq/releases/download/${YQ_DL_VERSION}/yq_linux_amd64"
373+
chmod +x /usr/local/bin/yq
374+
fi
375+
if ! yq -e '.plugins.[].redirects.redirect_maps.[] | select(. == "deprecated/" + env(CONTAINER_NAME) + ".md")' mkdocs.yml >/dev/null 2>&1; then
376+
echo "Updating mkdocs.yml with deprecation info"
377+
yq -i '(.plugins.[] | select(.redirects)).redirects.redirect_maps |= . + {env(CONTAINER_NAME) + ".md" : "deprecated/" + env(CONTAINER_NAME) + ".md"}' mkdocs.yml
378+
git add mkdocs.yml
379+
fi
380+
git commit -m 'Bot Moving Deprecated Documentation' || :
363381
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} --rebase
364382
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} || \
365383
(MAXWAIT="10" && echo "Push to docs failed, trying again in ${MAXWAIT} seconds" && \
@@ -381,6 +399,10 @@ pipeline {
381399
echo "Updating Unraid template"
382400
cd ${TEMPDIR}/unraid/templates/
383401
GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||')
402+
if ! grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
403+
echo "${CONTAINER_NAME}" >> ${TEMPDIR}/unraid/templates/unraid/ignore.list
404+
git add unraid/ignore.list
405+
fi
384406
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
385407
echo "Image is on the ignore list, marking Unraid template as deprecated"
386408
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
@@ -992,6 +1014,26 @@ EOF
9921014

9931015
}
9941016
}
1017+
stage('Deprecate/Disable Future Builds') {
1018+
when {
1019+
branch "master"
1020+
environment name: 'CHANGE_ID', value: ''
1021+
environment name: 'EXIT_STATUS', value: ''
1022+
}
1023+
steps {
1024+
sh '''#! /bin/bash
1025+
TEMPDIR=$(mktemp -d)
1026+
mkdir -p ${TEMPDIR}/repo
1027+
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
1028+
cd ${TEMPDIR}/repo/${LS_REPO}
1029+
git checkout -f master
1030+
git rm Jenkinsfile
1031+
git commit -m 'Disabling future builds'
1032+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
1033+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
1034+
rm -Rf ${TEMPDIR}'''
1035+
}
1036+
}
9951037
}
9961038
/* ######################
9971039
Send status to Discord

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Find us at:
2626
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
2727
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
2828

29+
# This image is deprecated. We will not offer support for this image and it will not be updated.
30+
31+
2932
# [linuxserver/dillinger](https://github.com/linuxserver/docker-dillinger)
3033

3134
[![Scarf.io pulls](https://scarf.sh/installs-badge/linuxserver-ci/linuxserver%2Fdillinger?color=94398d&label-color=555555&logo-color=ffffff&style=for-the-badge&package-type=docker)](https://scarf.sh/gateway/linuxserver-ci/docker/linuxserver%2Fdillinger)
@@ -284,6 +287,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
284287

285288
## Versions
286289

290+
* **20.03.24:** - Deprecate image.
287291
* **12.07.23:** - Rebase to Alpine 3.18.
288292
* **13.02.23:** - Rebase to Alpine 3.17, migrate to s6v3.
289293
* **19.04.22:** - Rebase to Alpine.

readme-vars.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ project_blurb: |
88
[{{ project_name|capitalize }}]({{ project_url }}) is a cloud-enabled, mobile-ready, offline-storage, AngularJS powered HTML5 Markdown editor.
99
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
1010

11+
project_deprecation_status: true
12+
1113
# supported architectures
1214
available_architectures:
1315
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
@@ -45,6 +47,7 @@ app_setup_block: |
4547
4648
# changelog
4749
changelogs:
50+
- { date: "20.03.24:", desc: "Deprecate image." }
4851
- { date: "12.07.23:", desc: "Rebase to Alpine 3.18." }
4952
- { date: "13.02.23:", desc: "Rebase to Alpine 3.17, migrate to s6v3." }
5053
- { date: "19.04.22:", desc: "Rebase to Alpine." }

root/etc/s6-overlay/s6-rc.d/init-deprecate/dependencies.d/init-config-end

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
echo '
5+
╔════════════════════════════════════════════════════╗
6+
╠════════════════════════════════════════════════════╣
7+
║ ║
8+
║ This image is deprecated. ║
9+
║ We will not offer support for this image ║
10+
║ and it will not be updated. ║
11+
║ ║
12+
╠════════════════════════════════════════════════════╣
13+
╚════════════════════════════════════════════════════╝
14+
'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-deprecate/run

root/etc/s6-overlay/s6-rc.d/init-services/dependencies.d/init-deprecate

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-deprecate

Whitespace-only changes.

0 commit comments

Comments
 (0)