New version adguardhome authelia element-web gitea glpi joplin mautrix-whatsapp metabase vaultwarden-web vaultwarden wallabag

This commit is contained in:
thomas 2022-05-26 16:27:16 +02:00
parent ebdea0727b
commit ad8ebb543c
13 changed files with 83 additions and 78 deletions

View file

@ -45,7 +45,8 @@ zdebmaker_createAppOS(){
zdebmaker_inject(){
zdebmaker_getDep
sudo mount cache/${APP} ${MOUNT_PATH}/${APP}/
[ -d ${MOUNT_PATH}/${APP}/tmp/dist ] || sudo mkdir ${MOUNT_PATH}/${APP}/tmp/dist/
[ -d ${MOUNT_PATH}/${APP}/tmp/dist ] && sudo rm -fr ${MOUNT_PATH}/${APP}/tmp/dist/
sudo mkdir ${MOUNT_PATH}/${APP}/tmp/dist/
[ -d ${MOUNT_PATH}/${APP}/tmp/src ] && sudo rm -rf ${MOUNT_PATH}/${APP}/tmp/src/
sudo mkdir -p ${MOUNT_PATH}/${APP}/tmp/src
sudo cp -pfr ressources/${APP}/* ${MOUNT_PATH}/${APP}/tmp/src
@ -93,7 +94,8 @@ debmaker_run(){
do
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh ${CURRENT_STEP}
done
find ${MOUNT_PATH}/${APP}/tmp/dist/ -name *.deb -exec cp {} dist/ \;
rm -fr dist/${APP}*
find ${MOUNT_PATH}/${APP}/tmp/dist/ -name *.deb -exec cp -v {} dist/ \;
debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/
}

View file

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=0.108.0-b.7
VERSION=0.108.0-b.8
[ -e ./lib/function.sh ] && source ./lib/function.sh
@ -14,10 +14,7 @@ STEP="envinit prebuild build makedeb"
envinit() {
apt-get update
if [ $(dpkg -l | grep -e 'ii nodejs ' | wc -l) -eq 1 ];
then
apt-get dist-upgrade -y
else
apt install -y --no-install-recommends build-essential git wget ca-certificates dpkg fakeroot
wget -qO - https://deb.nodesource.com/setup_16.x | bash
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
@ -25,14 +22,11 @@ envinit() {
apt-get update
apt-get install -y nodejs yarn
wget -qO - https://go.dev/dl/go1.18.linux-amd64.tar.gz | tar -C /usr/local -xz
fi
}
prebuild(){
[ -e /tmp/git ] && rm -fr /tmp/git
[ -e /tmp/${APP} ] || mkdir /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
cp -r /tmp/git/. /tmp/${APP}
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}
build() {

View file

@ -1,14 +1,13 @@
#!/bin/bash
VERSION=4.35.0
RELEASE=1
VERSION=4.35.6
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=authelia
DEPOT=https://github.com/authelia/authelia.git
GIT_VERSION=v${VERSION}
DEB_VERSION=${VERSION}-${RELEASE}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4
@ -26,10 +25,8 @@ envinit() {
}
prebuild(){
[ -e /tmp/git ] && rm -fr /tmp/git
[ -e /tmp/${APP} ] || mkdir /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
cp -r /tmp/git/. /tmp/${APP}
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}
build() {

View file

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=1.10.11
VERSION=1.10.13
[ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=1.16.7
VERSION=1.16.8
[ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -7,7 +7,7 @@ VERSION=10.0.0
APP=glpi
DEPOT=https://github.com/glpi-project/glpi.git
GIT_VERSION=${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEB_VERSION=10.0.1-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4

View file

@ -1,7 +1,7 @@
#!/bin/bash
GIT_VERSION=v2.8.6
DEB_VERSION_DESKTOP=2.8.6-$(date +%Y%m%d%H%M)
GIT_VERSION=v2.8.8
DEB_VERSION_DESKTOP=2.8.8-$(date +%Y%m%d%H%M)
DEB_VERSION_SERVER=2.7.8-$(date +%Y%m%d%H%M)
[ -e ./lib/function.sh ] && source ./lib/function.sh
@ -9,7 +9,7 @@ DEB_VERSION_SERVER=2.7.8-$(date +%Y%m%d%H%M)
APP=joplin
DEPOT=https://github.com/laurent22/joplin.git
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=12
IMAGE_SIZE=14
STEP="envinit prebuild build makedeb"

View file

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=0.3.1
VERSION=0.4.0
[ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=0.42.4
VERSION=0.43.1
[ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -3,27 +3,30 @@
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=vaultwarden-web
VERSION=2.25.1
VERSION=2.28.1
GIT_VERSION=v$VERSION
DEB_VERSION=$VERSION-2
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=
DEPOT=https://github.com/bitwarden/web.git
STEP="envinit prebuild build makedeb"
envinit() {
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends wget fakeroot dpkg ca-certificates build-essential git python
wget -qO - https://deb.nodesource.com/setup_16.x | bash
apt-get update
apt-get install -y nodejs
apt clean
}
prebuild(){
GIT_VERSION=$1
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
GIT_VERSION=$1
git clone --depth 1 -b ${GIT_VERSION} https://github.com/bitwarden/web.git /tmp/web-vault
cd /tmp/web-vault
cd /tmp/${APP}
git submodule update --init --recursive
cd ..
@ -34,22 +37,20 @@ prebuild(){
PATCH_FILE=$(ls patches/ | sort -V | tail -n 1)
cp patches/${PATCH_FILE} ../web-vault/
cd /tmp/web-vault
/tmp/${APP}
git apply ${PATCH_FILE}
}
build() {
cd /tmp/web-vault
cd /tmp/${APP}
npm install
npm run dist:oss:selfhost
}
makedeb(){
GIT_VERSION=$1
DEB_VERSION=$2
PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/web-vault/build/* ${PATH_DEB}/usr/share/vaultwarden-web
cp -fr /tmp/${APP}/build/* ${PATH_DEB}/usr/share/vaultwarden-web
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View file

@ -3,16 +3,18 @@
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=vaultwarden
VERSION=1.24.0
VERSION=1.25.0
GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-1
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=6
IMAGE_SIZE=8
DEPOT=https://github.com/dani-garcia/vaultwarden.git
STEP="envinit prebuild build makedeb"
envinit() {
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential git wget fakeroot dpkg ca-certificates libmariadb-dev libpq-dev pkg-config libmysql++-dev
cd /tmp
wget -qO - https://sh.rustup.rs > rustup
@ -21,22 +23,20 @@ envinit() {
}
prebuild(){
GIT_VERSION=$1
git clone --depth 1 -b ${GIT_VERSION} https://github.com/dani-garcia/vaultwarden.git /tmp/vaultwarden
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
}
build() {
cd /tmp/vaultwarden/
cd /tmp/${APP}
source ~/.cargo/env
cargo build --features sqlite,mysql,postgresql --release
}
makedeb(){
GIT_VERSION=$1
DEB_VERSION=$2
PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/vaultwarden/target/release/vaultwarden ${PATH_DEB}/usr/lib/vaultwarden/
cp -fr /tmp/${APP}/target/release/vaultwarden ${PATH_DEB}/usr/lib/vaultwarden/
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View file

@ -3,47 +3,56 @@
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=wallabag
VERSION=2.4.3
VERSION=2.5.0
GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-3
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=2
IMAGE_SIZE=4
DEPOT=https://github.com/wallabag/wallabag.git
STEP="envinit prebuild build makedeb"
envinit() {
apt-get install -y --no-install-recommends wget ca-certificates composer git php-common php-xml php-json php-gd php-mbstring php-xml php-tidy php-curl php-tokenizer php-bcmath php-intl php-fpm unzip fakeroot dpkg
apt-get update
apt-get dist-upgrade -y
apt-get install -y --no-install-recommends wget ca-certificates git php-common php-xml php-json php-gd php-mbstring php-xml php-tidy php-curl php-tokenizer php-bcmath php-intl php-fpm unzip fakeroot dpkg gpg make
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
wget https://dl.yarnpkg.com/debian/pubkey.gpg -O - | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
apt-get update
apt-get install yarn -y
}
prebuild(){
GIT_VERSION=$1
git clone --depth 1 -b ${GIT_VERSION} https://github.com/wallabag/wallabag.git /tmp/wallabag
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
cd /tmp/${APP}
wget https://getcomposer.org/download/2.2.13/composer.phar
}
build() {
cd /tmp/wallabag
SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist -n --no-scripts
cd /tmp/${APP}
SYMFONY_ENV=prod php composer.phar install --no-dev -o --prefer-dist -n --no-scripts
ENV=PROD make build
}
makedeb(){
GIT_VERSION=$1
DEB_VERSION=$2
PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/wallabag/app ${PATH_DEB}/usr/share/wallabag/app
cp -fr /tmp/wallabag/src ${PATH_DEB}/usr/share/wallabag/src
cp -fr /tmp/wallabag/vendor ${PATH_DEB}/usr/share/wallabag/vendor
cp -fr /tmp/wallabag/web ${PATH_DEB}/usr/share/wallabag/web
cp -fr /tmp/${APP}/app ${PATH_DEB}/usr/share/wallabag/app
cp -fr /tmp/${APP}/src ${PATH_DEB}/usr/share/wallabag/src
cp -fr /tmp/${APP}/vendor ${PATH_DEB}/usr/share/wallabag/vendor
cp -fr /tmp/${APP}/web ${PATH_DEB}/usr/share/wallabag/web
cp -fr /tmp/${APP}/bin ${PATH_DEB}/usr/share/wallabag/bin
echo need by synfony to find project directory > ${PATH_DEB}/usr/share/wallabag/composer.json
cp -fr /tmp/wallabag/data ${PATH_DEB}/var/lib/wallabag/data
cp -fr /tmp/wallabag/var ${PATH_DEB}/var/lib/wallabag/var
cp -fr /tmp/${APP}/data ${PATH_DEB}/var/lib/wallabag/data
cp -fr /tmp/${APP}/var ${PATH_DEB}/var/lib/wallabag/var
cp /tmp/wallabag/app/config/parameters.yml.dist ${PATH_DEB}/etc/wallabag/parameters.yml
ln -s /var/lib/wallabag/data ${PATH_DEB}/usr/share/wallabag/data
ln -s /var/lib/wallabag/var ${PATH_DEB}/usr/share/wallabag/var
ln -s /etc/wallabag/parameters.yml ${PATH_DEB}/usr/share/wallabag/app/config/parameters.yml
ln -s /var/lib/${APP}/data ${PATH_DEB}/usr/share/wallabag/data
ln -s /var/lib/${APP}/var ${PATH_DEB}/usr/share/wallabag/var
ln -s /etc/${APP}/parameters.yml ${PATH_DEB}/usr/share/wallabag/app/config/parameters.yml
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View file

@ -1,2 +1,4 @@
#!/bin/bash
chown -R www-data:www-data /var/lib/wallabag/
[ -e /var/lib/wallabag/var/cache/ ] && rm -fr /var/lib/wallabag/var/cache/