Compare commits
2 Commits
a92a6a8738
...
daa30878e7
Author | SHA1 | Date |
---|---|---|
thomas | daa30878e7 | |
thomas | d4e0270e00 |
|
@ -87,13 +87,18 @@ debmaker_chroot() {
|
|||
|
||||
debmaker_run(){
|
||||
zdebmaker_getDep
|
||||
[ -f cache/${APP} ] || zdebmaker_createAppOS
|
||||
[ -f cache/${APP} ] || zdebmaker_createAppOS
|
||||
zdebmaker_inject
|
||||
debmaker_mount_proc_sys cache/${APP} ${MOUNT_PATH}/${APP}/
|
||||
for CURRENT_STEP in ${STEP}
|
||||
do
|
||||
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh ${CURRENT_STEP}
|
||||
done
|
||||
if [ "$STEP" == "" ]
|
||||
then
|
||||
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh main
|
||||
else
|
||||
for CURRENT_STEP in ${STEP}
|
||||
do
|
||||
sudo chroot ${MOUNT_PATH}/${APP}/ /tmp/src/exec_in_chroot.sh ${CURRENT_STEP}
|
||||
done
|
||||
fi
|
||||
rm -fr dist/${APP}*
|
||||
find ${MOUNT_PATH}/${APP}/tmp/dist/ -name *.deb -exec cp -v {} dist/ \;
|
||||
debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/
|
||||
|
|
|
@ -9,7 +9,13 @@ 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"
|
||||
main(){
|
||||
base_package_upgrade
|
||||
envinit
|
||||
get_git_source
|
||||
build
|
||||
makedeb
|
||||
}
|
||||
|
||||
envinit() {
|
||||
configure_depot_yarn
|
||||
|
@ -31,6 +37,10 @@ makedeb(){
|
|||
mv ${PATH_DEB}/usr/share/cloudbeaver/workspace ${PATH_DEB}/var/lib/cloudbeaver/
|
||||
ln -s /var/lib/cloudbeaver/workspace ${PATH_DEB}/usr/share/cloudbeaver/workspace
|
||||
|
||||
mkdir ${PATH_DEB}/etc/
|
||||
mv ${PATH_DEB}/usr/share/cloudbeaver/conf ${PATH_DEB}/etc/cloudbeaver/
|
||||
ln -s /etc/cloudbeaver ${PATH_DEB}/usr/share/cloudbeaver/conf
|
||||
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
/etc/default/cloudbeaver
|
||||
/etc/cloudbeaver/cloudbeaver.conf
|
||||
/etc/cloudbeaver/logback.xml
|
||||
/etc/cloudbeaver/initial-data-sources.conf
|
||||
/etc/cloudbeaver/initial-data.conf
|
||||
/etc/cloudbeaver/product.conf
|
||||
|
|
|
@ -3,5 +3,6 @@ Version: %VERSION%
|
|||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: default-jre-headless
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: cloudbeaver
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
CLOUDBEAVER_HOME=/usr/share/cloudbeaver/
|
|
@ -2,11 +2,14 @@
|
|||
Description=cloudbeaver
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
User=cloudbeaver
|
||||
EnvironmentFile=-/etc/default/cloudbeaver
|
||||
Group=cloudbeaver
|
||||
ExecStart=/usr/share/cloudbeaver/run-server.sh
|
||||
WorkingDirectory=/var/lib/cloudbeaver
|
||||
WorkingDirectory=/usr/share/cloudbeaver
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
ReadWritePaths=/var/lib/cloudbeaver
|
||||
|
|
Loading…
Reference in New Issue