New method

This commit is contained in:
thomas 2022-08-17 20:35:16 +02:00
parent 590209a9ba
commit 8da4693b9f
28 changed files with 111 additions and 330 deletions

View file

@ -1,9 +1,6 @@
#!/bin/bash
VERSION=0.44
[ -e ./lib/function.sh ] && source ./lib/function.sh
VERSION=0.44.1
APP=metabase
DEPOT=https://github.com/metabase/metabase.git
GIT_VERSION=v$VERSION
@ -11,25 +8,13 @@ DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=10
STEP="envinit prebuild build makedeb"
STEP="base_package_upgrade envinit get_git_source build makedeb"
envinit() {
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential git wget ca-certificates dpkg fakeroot openjdk-17-jdk curl
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
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y nodejs yarn
curl https://download.clojure.org/install/linux-install-1.11.1.1149.sh | bash
}
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}
configure_depot_yarn
configure_depot_nodejs
apt install -y --no-install-recommends build-essential openjdk-17-jdk curl nodejs yarn
wget -qO - https://download.clojure.org/install/linux-install-1.11.1.1155.sh | bash
}
build() {