debmaker/ressources/metabase/debmaker

37 lines
772 B
Plaintext
Raw Normal View History

2022-02-12 18:30:28 +01:00
#!/bin/bash
2024-05-15 10:20:52 +02:00
VERSION=0.49.9
APP=metabase
DEPOT=https://github.com/metabase/metabase.git
GIT_VERSION=v$VERSION
2022-03-24 02:48:03 +01:00
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
2023-07-16 09:36:17 +02:00
DEBIAN_VERSION_CODENAME=bookworm
2024-03-17 23:55:26 +01:00
IMAGE_SIZE=14
2022-10-08 03:58:00 +02:00
PACKAGE_DEPENDENCY="build-essential default-jdk curl nodejs yarn"
2022-11-01 22:14:36 +01:00
main(){
base_package_upgrade
2022-08-17 20:35:16 +02:00
configure_depot_yarn
2023-09-02 22:51:34 +02:00
configure_depot_nodejs 18
2022-09-21 01:59:25 +02:00
install_package_dependency
install_clojure
2022-11-01 22:14:36 +01:00
get_git_source
build
makedeb
2022-02-12 18:30:28 +01:00
}
build() {
cd /tmp/${APP}/
PATH=$PATH:/usr/local/bin
2023-07-27 16:29:59 +02:00
npx browserslist@latest --update-db
2023-05-01 00:17:30 +02:00
./bin/build.sh
2022-02-12 18:30:28 +01:00
}
makedeb(){
2022-02-24 00:02:53 +01:00
PATH_DEB=/tmp/src/rootfs
2022-03-24 01:50:20 +01:00
cp /tmp/${APP}/target/uberjar/metabase.jar ${PATH_DEB}/usr/share/metabase/
2022-02-24 00:02:53 +01:00
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
2022-02-12 18:30:28 +01:00
}