Compare commits

...

12 Commits

Author SHA1 Message Date
LinuxServer-CI
fed915b7c7 Bot Updating Package Versions 2022-12-25 08:57:52 +01:00
LinuxServer-CI
89d886bf9b Bot Updating Templated Files 2022-12-04 02:00:50 -06:00
LinuxServer-CI
311858e691 Bot Updating Templated Files 2022-12-04 08:59:21 +01:00
LinuxServer-CI
c8907dc91d Bot Updating Templated Files 2022-12-04 01:58:04 -06:00
Eric Nemchik
a7e89cd97c Merge pull request #112 from linuxserver/fix-permissions
Reorder init to fix permissions
2022-11-25 11:20:32 -06:00
TheSpad
56f29b5e96 Symlink before permissions 2022-11-25 16:27:53 +00:00
TheSpad
9279d33966 Reorder init to fix permissions 2022-11-25 16:26:58 +00:00
KodeStar
e1be906c7a Merge pull request #111 from linuxserver/master-logs
Remove logrotate and symlink logs
2022-11-25 15:10:38 +00:00
Eric Nemchik
40f301e5f9 Spacing 2022-11-25 01:04:24 +00:00
Eric Nemchik
b4403d7c37 Remove logrotate and symlink logs 2022-11-24 23:11:37 +00:00
LinuxServer-CI
2d84657f1c Bot Updating Package Versions 2022-11-24 00:08:34 +01:00
Eric Nemchik
09350f3a5c Merge pull request #79 from linuxserver/standard-base
Standard base
2022-11-23 17:06:49 -06:00
14 changed files with 208 additions and 178 deletions

View File

@@ -1,40 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
---
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. --->
<!--- Provide a general summary of the bug in the Title above -->
------------------------------
## Expected Behavior
<!--- Tell us what should happen -->
## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->
## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.
## Environment
**OS:**
**CPU architecture:** x86_64/arm32/arm64
**How docker service was installed:**
<!--- ie. from the official docker repo, from the distro repo, nas OS provided, etc. -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
## Command used to create docker container (run/create/compose/screenshot)
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
## Docker logs
<!--- Provide a full docker log, output of "docker logs heimdall" -->

77
.github/ISSUE_TEMPLATE/issue.bug.yml vendored Executable file
View File

@@ -0,0 +1,77 @@
# Based on the issue template
name: Bug report
description: Create a report to help us improve
title: "[BUG] <title>"
labels: [Bug]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Current Behavior
description: Tell us what happens instead of the expected behavior.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: Tell us what should happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: true
- type: textarea
attributes:
label: Environment
description: |
examples:
- **OS**: Ubuntu 20.04
- **How docker service was installed**: distro's packagemanager
value: |
- OS:
- How docker service was installed:
render: markdown
validations:
required: false
- type: dropdown
attributes:
label: CPU architecture
options:
- x86-64
- arm64
- armhf
validations:
required: true
- type: textarea
attributes:
label: Docker creation
description: |
Command used to create docker container
Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container
render: bash
validations:
required: true
- type: textarea
attributes:
description: |
Provide a full docker log, output of "docker logs linuxserver.io"
label: Container logs
placeholder: |
Output of `docker logs linuxserver.io`
render: bash
validations:
required: true

View File

@@ -1,25 +0,0 @@
---
name: Feature request
about: Suggest an idea for this project
---
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. --->
<!--- If this acts as a feature request please ask yourself if this modification is something the whole userbase will benefit from --->
<!--- If this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
<!--- Provide a general summary of the request in the Title above -->
------------------------------
## Desired Behavior
<!--- Tell us what should happen -->
## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->
## Alternatives Considered
<!--- Tell us what other options you have tried or considered -->

31
.github/ISSUE_TEMPLATE/issue.feature.yml vendored Executable file
View File

@@ -0,0 +1,31 @@
# Based on the issue template
name: Feature request
description: Suggest an idea for this project
title: "[FEAT] <title>"
labels: [enhancement]
body:
- type: checkboxes
attributes:
label: Is this a new feature request?
description: Please search to see if a feature request already exists.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Wanted change
description: Tell us what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Reason for change
description: Justify your request, why do you want it, what is the benefit.
validations:
required: true
- type: textarea
attributes:
label: Proposed code change
description: Do you have a potential code change in mind?
validations:
required: false

View File

@@ -7,7 +7,7 @@ jobs:
external-trigger-master: external-trigger-master:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.3 - uses: actions/checkout@v3.1.0
- name: External Trigger - name: External Trigger
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'

View File

@@ -9,7 +9,7 @@ jobs:
external-trigger-scheduler: external-trigger-scheduler:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.3 - uses: actions/checkout@v3.1.0
with: with:
fetch-depth: '0' fetch-depth: '0'

View File

@@ -8,6 +8,6 @@ jobs:
steps: steps:
- uses: actions/first-interaction@v1 - uses: actions/first-interaction@v1
with: with:
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-heimdall/blob/master/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-heimdall/blob/master/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!' issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-heimdall/blob/master/.github/ISSUE_TEMPLATE/issue.bug.yml) or [feature](https://github.com/linuxserver/docker-heimdall/blob/master/.github/ISSUE_TEMPLATE/issue.feature.yml) issue templates!'
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-heimdall/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!' pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-heimdall/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -7,7 +7,7 @@ jobs:
package-trigger-master: package-trigger-master:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.3 - uses: actions/checkout@v3.1.0
- name: Package Trigger - name: Package Trigger
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'

View File

@@ -9,7 +9,7 @@ jobs:
package-trigger-scheduler: package-trigger-scheduler:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.3 - uses: actions/checkout@v3.1.0
with: with:
fetch-depth: '0' fetch-depth: '0'

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@v3 - uses: actions/stale@v6.0.1
with: with:
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."

4
Jenkinsfile vendored
View File

@@ -59,7 +59,7 @@ pipeline {
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/' env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
env.PULL_REQUEST = env.CHANGE_ID env.PULL_REQUEST = env.CHANGE_ID
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/stale.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml' 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/stale.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml'
} }
script{ script{
env.LS_RELEASE_NUMBER = sh( env.LS_RELEASE_NUMBER = sh(
@@ -287,7 +287,7 @@ pipeline {
echo "Jenkinsfile is up to date." echo "Jenkinsfile is up to date."
fi fi
# Stage 2 - Delete old templates # Stage 2 - Delete old templates
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md" OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md\n.github/ISSUE_TEMPLATE/issue.bug.md\n.github/ISSUE_TEMPLATE/issue.feature.md"
for i in ${OLD_TEMPLATES}; do for i in ${OLD_TEMPLATES}; do
if [[ -f "${i}" ]]; then if [[ -f "${i}" ]]; then
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}" TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"

View File

@@ -1,83 +1,83 @@
alpine-baselayout-3.2.0-r16 alpine-baselayout-3.2.0-r18
alpine-keys-2.4-r0 alpine-keys-2.4-r1
apache2-utils-2.4.54-r0 apache2-utils-2.4.54-r0
apk-tools-2.12.7-r0 apk-tools-2.12.7-r3
apr-1.7.0-r1 apr-1.7.0-r1
apr-util-1.6.1-r7 apr-util-1.6.1-r11
argon2-libs-20190702-r1 argon2-libs-20190702-r1
bash-5.1.16-r0 bash-5.1.16-r0
brotli-libs-1.0.9-r5 brotli-libs-1.0.9-r5
busybox-1.33.1-r8 busybox-1.34.1-r7
ca-certificates-20220614-r0 ca-certificates-20220614-r0
ca-certificates-bundle-20220614-r0 ca-certificates-bundle-20220614-r0
coreutils-8.32-r2 coreutils-9.0-r2
curl-7.79.1-r3 curl-7.80.0-r5
expat-2.5.0-r0 expat-2.5.0-r0
gdbm-1.19-r0 git-2.34.5-r0
git-2.32.4-r0 icu-libs-69.1-r1
libacl-2.2.53-r0 libacl-2.2.53-r0
libattr-2.5.1-r0 libattr-2.5.1-r1
libbz2-1.0.8-r1
libc-utils-0.7.2-r3 libc-utils-0.7.2-r3
libcrypto1.1-1.1.1s-r0 libcrypto1.1-1.1.1s-r1
libcurl-7.79.1-r3 libcurl-7.80.0-r5
libedit-20210216.3.1-r0 libedit-20210910.3.1-r0
libgcc-10.3.1_git20211027-r0
libintl-0.21-r0 libintl-0.21-r0
libldap-2.4.58-r0 libpq-14.5-r0
libmagic-5.40-r1
libpq-13.8-r0
libproc-3.3.17-r0 libproc-3.3.17-r0
libressl3.3-libcrypto-3.3.6-r0 libretls-3.3.4-r3
libressl3.3-libssl-3.3.6-r0 libssl1.1-1.1.1s-r1
libretls-3.3.3p1-r3 libstdc++-10.3.1_git20211027-r0
libsasl-2.1.28-r0
libssl1.1-1.1.1s-r0
libuuid-2.37.4-r0 libuuid-2.37.4-r0
libxml2-2.9.14-r2 libxml2-2.9.14-r2
libzip-1.7.3-r2 libzip-1.8.0-r1
linux-pam-1.5.1-r1 linux-pam-1.5.2-r0
logrotate-3.18.1-r4 logrotate-3.18.1-r4
musl-1.2.2-r3 musl-1.2.2-r7
musl-utils-1.2.2-r3 musl-utils-1.2.2-r7
nano-5.7-r2 nano-5.9-r0
ncurses-libs-6.2_p20210612-r1 ncurses-libs-6.3_p20211120-r1
ncurses-terminfo-base-6.2_p20210612-r1 ncurses-terminfo-base-6.3_p20211120-r1
nghttp2-libs-1.43.0-r0 nghttp2-libs-1.46.0-r0
nginx-1.20.2-r1 nginx-1.20.2-r1
oniguruma-6.9.7.1-r0 oniguruma-6.9.7.1-r0
openssl-1.1.1s-r0 openssl-1.1.1s-r1
pcre-8.44-r0 pcre-8.45-r1
pcre2-10.36-r1 pcre2-10.40-r0
php7-7.4.33-r0 php8-8.0.25-r0
php7-common-7.4.33-r0 php8-common-8.0.25-r0
php7-ctype-7.4.33-r0 php8-ctype-8.0.25-r0
php7-curl-7.4.33-r0 php8-curl-8.0.25-r0
php7-fileinfo-7.4.33-r0 php8-fileinfo-8.0.25-r0
php7-fpm-7.4.33-r0 php8-fpm-8.0.25-r0
php7-json-7.4.33-r0 php8-intl-8.0.25-r0
php7-mbstring-7.4.33-r0 php8-mbstring-8.0.25-r0
php7-mysqlnd-7.4.33-r0 php8-mysqlnd-8.0.25-r0
php7-openssl-7.4.33-r0 php8-openssl-8.0.25-r0
php7-pdo-7.4.33-r0 php8-pdo-8.0.25-r0
php7-pdo_mysql-7.4.33-r0 php8-pdo_mysql-8.0.25-r0
php7-pdo_pgsql-7.4.33-r0 php8-pdo_pgsql-8.0.25-r0
php7-pdo_sqlite-7.4.33-r0 php8-pdo_sqlite-8.0.25-r0
php7-session-7.4.33-r0 php8-session-8.0.25-r0
php7-simplexml-7.4.33-r0 php8-simplexml-8.0.25-r0
php7-tokenizer-7.4.33-r0 php8-tokenizer-8.0.25-r0
php7-xml-7.4.33-r0 php8-xml-8.0.25-r0
php7-xmlwriter-7.4.33-r0 php8-xmlwriter-8.0.25-r0
php7-zip-7.4.33-r0 php8-zip-8.0.25-r0
popt-1.18-r0 popt-1.18-r0
procps-3.3.17-r0 procps-3.3.17-r0
readline-8.1.0-r0 readline-8.1.1-r0
s6-ipcserver-2.10.0.3-r0 s6-ipcserver-2.11.0.0-r0
scanelf-1.3.2-r0 scanelf-1.3.3-r0
shadow-4.8.1-r0 shadow-4.8.1-r1
skalibs-2.10.0.3-r0 skalibs-2.11.0.0-r0
sqlite-libs-3.35.5-r0 sqlite-libs-3.36.0-r0
ssl_client-1.33.1-r8 ssl_client-1.34.1-r7
tar-1.34-r0
tzdata-2022f-r1 tzdata-2022f-r1
utmps-0.1.0.2-r0 utmps-0.1.0.3-r0
xz-5.2.5-r1 xz-5.2.5-r1
xz-libs-5.2.5-r1 xz-libs-5.2.5-r1
zlib-1.2.12-r3 zlib-1.2.12-r3
zstd-libs-1.5.0-r0

View File

@@ -1,8 +1,9 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
# shellcheck shell=bash
# make our folders # make our folders
mkdir -p \ mkdir -p \
/config/www/{backgrounds,icons,avatars,SupportedApps} \ /config/www/{avatars,backgrounds,icons,logs,SupportedApps} \
/app/www \ /app/www \
/config/log/heimdall /config/log/heimdall
@@ -14,53 +15,48 @@ if [[ -f /heimdall/heimdall.tar.gz ]]; then
/app/www --strip-components=1 /app/www --strip-components=1
echo -e '\n# Heimdall user authorization\nfastcgi_param PHP_AUTH_USER $remote_user;\nfastcgi_param PHP_AUTH_PW $http_authorization;' >> \ echo -e '\n# Heimdall user authorization\nfastcgi_param PHP_AUTH_USER $remote_user;\nfastcgi_param PHP_AUTH_PW $http_authorization;' >> \
/etc/nginx/fastcgi_params /etc/nginx/fastcgi_params
rm -rf /heimdall
cp /app/www/storage/app/searchproviders.yaml /app/www/storage/app/searchproviders.yaml.orig cp /app/www/storage/app/searchproviders.yaml /app/www/storage/app/searchproviders.yaml.orig
chown -R abc:abc /app/www
fi fi
# create symlinks # create symlinks
symlinks=(
symlinks=( \ /app/www/storage/app/public/avatars
/app/www/storage/app/public/avatars \ /app/www/storage/app/public/backgrounds
/app/www/storage/app/public/backgrounds \ /app/www/storage/app/public/icons
/app/www/storage/app/public/icons \ /app/www/storage/logs
/app/www/app/SupportedApps \ /app/www/app/SupportedApps
/app/www/database/app.sqlite \ /app/www/database/app.sqlite
/app/www/.env ) /app/www/.env
)
for i in "${symlinks[@]}" for i in "${symlinks[@]}"; do
do if [[ -e "${i}" && ! -L "${i}" ]]; then
if [[ -e "$i" && ! -L "$i" ]]; then rm -rf "${i}"
rm -rf "$i"
fi fi
if [[ ! -L "$i" ]]; then if [[ ! -L "${i}" ]]; then
ln -s /config/www/"$(basename "$i")" "$i" ln -s /config/www/"$(basename "${i}")" "${i}"
fi fi
done done
if [[ -e "/app/www/storage/logs/laravel.log" && ! -L "/app/www/storage/logs/laravel.log" ]]; then
rm -rf "/app/www/storage/logs/laravel.log"
fi
if [[ ! -L "/app/www/storage/logs/laravel.log" ]]; then
ln -s "/config/log/heimdall/laravel.log" "/app/www/storage/logs/laravel.log"
fi
# copy .env if not exists
if [[ ! -f /config/www/.env ]]; then
cp /app/www/.env.example /config/www/.env
echo "Creating app key. This may take a while on slower systems"
php /app/www/artisan key:generate
fi
# copy searchproviders if not exists and symlink # copy searchproviders if not exists and symlink
if [[ ! -f /config/www/searchproviders.yaml ]]; then if [[ ! -f /config/www/searchproviders.yaml ]]; then
cp /app/www/storage/app/searchproviders.yaml.orig /config/www/searchproviders.yaml cp /app/www/storage/app/searchproviders.yaml.orig /config/www/searchproviders.yaml
fi fi
rm -rf /app/www/storage/app/searchproviders.yaml rm -rf /app/www/storage/app/searchproviders.yaml
ln -s /config/www/searchproviders.yaml /app/www/storage/app/searchproviders.yaml ln -s /config/www/searchproviders.yaml /app/www/storage/app/searchproviders.yaml
# tidy up install files & set permissions
if [[ -f /heimdall/heimdall.tar.gz ]]; then
rm -rf /heimdall
chown -R abc:abc /app/www
chown -R abc:abc /config
fi
# copy .env if not exists
if [[ ! -f /config/www/.env ]]; then
install -g abc -o abc /app/www/.env.example /config/www/.env
echo "Creating app key. This may take a while on slower systems"
s6-setuidgid abc php /app/www/artisan key:generate
fi
# set queue driver to database # set queue driver to database
sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env
# permissions
echo "Setting permissions"
chown -R abc:abc \
/config

View File

@@ -1,9 +0,0 @@
/config/log/heimdall/laravel.log {
size 5M
rotate 5
compress
nodateext
notifempty
missingok
su abc abc
}