mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2026-04-25 18:39:59 +09:00
Compare commits
11 Commits
2.1.12-pkg
...
2.1.13-pkg
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
019d4d7a62 | ||
|
|
85b139e67f | ||
|
|
ae66ea597c | ||
|
|
273c4f86e9 | ||
|
|
ff93e822b2 | ||
|
|
60ebf428bb | ||
|
|
f3f5231a66 | ||
|
|
bcb72552cf | ||
|
|
85afafa585 | ||
|
|
6b7de48dbf | ||
|
|
aedecabd37 |
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
@@ -82,14 +82,10 @@ pipeline {
|
|||||||
script{
|
script{
|
||||||
env.PACKAGE_TAG = sh(
|
env.PACKAGE_TAG = sh(
|
||||||
script: '''#!/bin/bash
|
script: '''#!/bin/bash
|
||||||
http_code=$(curl --write-out %{http_code} -s -o /dev/null \
|
if [ -e package_versions.txt ] ; then
|
||||||
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt)
|
cat package_versions.txt | md5sum | cut -c1-8
|
||||||
if [[ "${http_code}" -ne 200 ]] ; then
|
|
||||||
echo none
|
|
||||||
else
|
else
|
||||||
curl -s \
|
echo none
|
||||||
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt \
|
|
||||||
| md5sum | cut -c1-8
|
|
||||||
fi''',
|
fi''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
@@ -121,7 +117,7 @@ pipeline {
|
|||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
env.EXT_RELEASE_CLEAN = sh(
|
env.EXT_RELEASE_CLEAN = sh(
|
||||||
script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:]//g' ''',
|
script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g' ''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -342,20 +338,25 @@ pipeline {
|
|||||||
chmod 777 /tmp/package_versions.txt'
|
chmod 777 /tmp/package_versions.txt'
|
||||||
elif [ "${DIST_IMAGE}" == "ubuntu" ]; then
|
elif [ "${DIST_IMAGE}" == "ubuntu" ]; then
|
||||||
docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
|
docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\
|
||||||
apt -qq list --installed | awk "{print \$1,\$2}" > /tmp/package_versions.txt && \
|
apt list -qq --installed > /tmp/package_versions.txt && \
|
||||||
chmod 777 /tmp/package_versions.txt'
|
chmod 777 /tmp/package_versions.txt'
|
||||||
fi
|
fi
|
||||||
if [ "$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )" != "${PACKAGE_TAG}" ]; then
|
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
|
||||||
|
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
|
||||||
|
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
|
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
|
||||||
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
||||||
cd ${TEMPDIR}/${LS_REPO}/
|
cd ${TEMPDIR}/${LS_REPO}/
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git add package_versions.txt
|
wait
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git commit -m 'Bot Updating Package Versions'
|
git add package_versions.txt
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
git commit -m 'Bot Updating Package Versions'
|
||||||
|
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
||||||
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
|
echo "Package tag updated, stopping build process"
|
||||||
else
|
else
|
||||||
echo "false" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
echo "false" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||||
|
echo "Package tag is same as previous continue with build process"
|
||||||
fi
|
fi
|
||||||
rm -Rf ${TEMPDIR}'''
|
rm -Rf ${TEMPDIR}'''
|
||||||
script{
|
script{
|
||||||
@@ -410,6 +411,9 @@ pipeline {
|
|||||||
string(credentialsId: 'spaces-key', variable: 'DO_KEY'),
|
string(credentialsId: 'spaces-key', variable: 'DO_KEY'),
|
||||||
string(credentialsId: 'spaces-secret', variable: 'DO_SECRET')
|
string(credentialsId: 'spaces-secret', variable: 'DO_SECRET')
|
||||||
]) {
|
]) {
|
||||||
|
script{
|
||||||
|
env.CI_URL = 'https://lsio-ci.ams3.digitaloceanspaces.com/' + env.IMAGE + '/' + env.META_TAG + '/index.html'
|
||||||
|
}
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
set -e
|
set -e
|
||||||
docker pull lsiodev/ci:latest
|
docker pull lsiodev/ci:latest
|
||||||
@@ -438,9 +442,6 @@ pipeline {
|
|||||||
-e DO_BUCKET="lsio-ci" \
|
-e DO_BUCKET="lsio-ci" \
|
||||||
-t lsiodev/ci:latest \
|
-t lsiodev/ci:latest \
|
||||||
python /ci/ci.py'''
|
python /ci/ci.py'''
|
||||||
script{
|
|
||||||
env.CI_URL = 'https://lsio-ci.ams3.digitaloceanspaces.com/' + env.IMAGE + '/' + env.META_TAG + '/index.html'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ This image now supports password protection through htpasswd. Run the following
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **16.01.18:** - Generate random app key in .env for new installs.
|
||||||
* **20.11.18:** - Upgrade baseimage packages during build.
|
* **20.11.18:** - Upgrade baseimage packages during build.
|
||||||
* **04.11.18:** - Add php7-zip.
|
* **04.11.18:** - Add php7-zip.
|
||||||
* **31.10.18:** - Add queue service.
|
* **31.10.18:** - Add queue service.
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
musl musl-1.1.19-r10
|
musl musl-1.1.19-r10
|
||||||
busybox busybox-1.28.4-r2
|
busybox busybox-1.28.4-r3
|
||||||
alpine-baselayout alpine-baselayout-3.1.0-r0
|
alpine-baselayout alpine-baselayout-3.1.0-r0
|
||||||
alpine-keys alpine-keys-2.1-r1
|
alpine-keys alpine-keys-2.1-r1
|
||||||
libressl2.7-libcrypto libressl2.7-libcrypto-2.7.4-r0
|
libressl2.7-libcrypto libressl2.7-libcrypto-2.7.4-r0
|
||||||
libressl2.7-libssl libressl2.7-libssl-2.7.4-r0
|
libressl2.7-libssl libressl2.7-libssl-2.7.4-r0
|
||||||
libressl2.7-libtls libressl2.7-libtls-2.7.4-r0
|
libressl2.7-libtls libressl2.7-libtls-2.7.4-r0
|
||||||
ssl_client ssl_client-1.28.4-r2
|
ssl_client ssl_client-1.28.4-r3
|
||||||
zlib zlib-1.2.11-r1
|
zlib zlib-1.2.11-r1
|
||||||
apk-tools apk-tools-2.10.1-r0
|
apk-tools apk-tools-2.10.1-r0
|
||||||
scanelf scanelf-1.2.3-r0
|
scanelf scanelf-1.2.3-r0
|
||||||
@@ -28,8 +28,8 @@ tzdata tzdata-2018f-r0
|
|||||||
libuuid libuuid-2.32-r0
|
libuuid libuuid-2.32-r0
|
||||||
apr apr-1.6.3-r1
|
apr apr-1.6.3-r1
|
||||||
expat expat-2.2.5-r0
|
expat expat-2.2.5-r0
|
||||||
apr-util apr-util-1.6.1-r2
|
apr-util apr-util-1.6.1-r3
|
||||||
apache2-utils apache2-utils-2.4.35-r0
|
apache2-utils apache2-utils-2.4.38-r1
|
||||||
nghttp2-libs nghttp2-libs-1.32.0-r0
|
nghttp2-libs nghttp2-libs-1.32.0-r0
|
||||||
libssh2 libssh2-1.8.0-r3
|
libssh2 libssh2-1.8.0-r3
|
||||||
libcurl libcurl-7.61.1-r1
|
libcurl libcurl-7.61.1-r1
|
||||||
@@ -60,9 +60,9 @@ php7-xmlwriter php7-xmlwriter-7.2.13-r0
|
|||||||
curl curl-7.61.1-r1
|
curl curl-7.61.1-r1
|
||||||
php7-ctype php7-ctype-7.2.13-r0
|
php7-ctype php7-ctype-7.2.13-r0
|
||||||
php7-pdo php7-pdo-7.2.13-r0
|
php7-pdo php7-pdo-7.2.13-r0
|
||||||
sqlite-libs sqlite-libs-3.24.0-r0
|
sqlite-libs sqlite-libs-3.25.3-r0
|
||||||
php7-pdo_sqlite php7-pdo_sqlite-7.2.13-r0
|
php7-pdo_sqlite php7-pdo_sqlite-7.2.13-r0
|
||||||
php7-tokenizer php7-tokenizer-7.2.13-r0
|
php7-tokenizer php7-tokenizer-7.2.13-r0
|
||||||
libzip libzip-1.5.1-r1
|
libzip libzip-1.5.1-r1
|
||||||
php7-zip php7-zip-7.2.13-r0
|
php7-zip php7-zip-7.2.13-r0
|
||||||
tar tar-1.30-r0
|
tar tar-1.31-r0
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "16.01.18:", desc: "Generate random app key in .env for new installs." }
|
||||||
- { date: "20.11.18:", desc: "Upgrade baseimage packages during build." }
|
- { date: "20.11.18:", desc: "Upgrade baseimage packages during build." }
|
||||||
- { date: "04.11.18:", desc: "Add php7-zip." }
|
- { date: "04.11.18:", desc: "Add php7-zip." }
|
||||||
- { date: "31.10.18:", desc: "Add queue service." }
|
- { date: "31.10.18:", desc: "Add queue service." }
|
||||||
|
|||||||
@@ -4,12 +4,6 @@
|
|||||||
mkdir -p \
|
mkdir -p \
|
||||||
/config/www/{backgrounds,icons,avatars,SupportedApps}
|
/config/www/{backgrounds,icons,avatars,SupportedApps}
|
||||||
|
|
||||||
# copy .env if not exists
|
|
||||||
[[ ! -f /config/www/.env ]] && \
|
|
||||||
cp /var/www/localhost/heimdall/.env /config/www/.env
|
|
||||||
# set queue driver to database
|
|
||||||
sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env
|
|
||||||
|
|
||||||
# create symlinks
|
# create symlinks
|
||||||
|
|
||||||
symlinks=( \
|
symlinks=( \
|
||||||
@@ -26,6 +20,13 @@ do
|
|||||||
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# copy .env if not exists
|
||||||
|
[[ ! -f /config/www/.env ]] && \
|
||||||
|
cp /var/www/localhost/heimdall/.env.example /config/www/.env && \
|
||||||
|
php /var/www/localhost/heimdall/artisan key:generate
|
||||||
|
# set queue driver to database
|
||||||
|
sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
/config \
|
/config \
|
||||||
|
|||||||
Reference in New Issue
Block a user