add cloudbeaver

This commit is contained in:
thomas 2022-10-01 02:01:37 +02:00
parent eaeb8ed670
commit f6de507351
14 changed files with 142 additions and 23 deletions

View file

@ -0,0 +1,19 @@
#### authelia
##### Information
Site : https://www.authelia.com/
Source : https://github.com/authelia/authelia
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y authelia
#Edit /etc/authelia/configuration.yml
systemctl enable --now authelia
```

View file

@ -0,0 +1,15 @@
#### bitwarden-desktop
##### Information
Site : https://bitwarden.com/
Source : https://github.com/bitwarden/clients/
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y bitwarden-desktop
```

View file

@ -0,0 +1,19 @@
#### cloudbeaver
##### Information
Site : https://cloudbeaver.io/
Source : https://github.com/dbeaver/cloudbeaver
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y cloudbeaver
systemctl enable --now cloudbeaver
#configuration with http://<ip>:8978
```

36
ressources/cloudbeaver/debmaker Executable file
View file

@ -0,0 +1,36 @@
#!/bin/bash
VERSION=21.3.3
APP=cloudbeaver
DEPOT=https://github.com/dbeaver/cloudbeaver.git
GIT_VERSION=last
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=5
PACKAGE_DEPENDENCY="nodejs yarn maven openjdk-11-jdk"
STEP="base_package_upgrade envinit get_git_source build makedeb"
envinit() {
configure_depot_yarn
configure_depot_nodejs 14.x
install_package_dependency
npm install -g lerna
}
build() {
cd /tmp/${APP}/deploy
./build.sh
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/${APP}/deploy/cloudbeaver ${PATH_DEB}/usr/share/
mv ${PATH_DEB}/usr/share/cloudbeaver/workspace ${PATH_DEB}/var/lib/cloudbeaver/
ln -s /var/lib/cloudbeaver/workspace ${PATH_DEB}/usr/share/cloudbeaver/workspace
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View file

@ -0,0 +1 @@
/etc/default/cloudbeaver

View file

@ -0,0 +1,7 @@
Package: cloudbeaver
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: cloudbeaver

View file

@ -0,0 +1,5 @@
#!/bin/bash
id cloudbeaver &> /dev/null || useradd cloudbeaver -r -s /bin/false -d /var/lib/cloudbeaver
chown -R cloudbeaver:cloudbeaver /var/lib/cloudbeaver

View file

@ -0,0 +1 @@
CLOUDBEAVER_HOME=/usr/share/cloudbeaver/

View file

@ -0,0 +1,15 @@
[Unit]
Description=cloudbeaver
[Service]
Type=exec
User=cloudbeaver
EnvironmentFile=-/etc/default/cloudbeaver
ExecStart=/usr/share/cloudbeaver/run-server.sh
WorkingDirectory=/var/lib/cloudbeaver
Restart=on-failure
RestartSec=30s
ReadWritePaths=/var/lib/cloudbeaver
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,20 @@
#### phpbb
##### Information
Site : https://www.phpbb.com/
Source : https://github.com/phpbb/phpbb
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y phpbb phpbb-install
#after configuration
apt-get purge -y phpbb-install
```