Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: dremio-bin #6688

Merged
merged 4 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ docker-compose-plugin-bin
dolphin-emu-git
dotdrop
drawio-desktop-deb
dremio-bin
dropbox-deb
duf-deb
dunst
Expand Down
12 changes: 12 additions & 0 deletions packages/dremio-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pkgbase = dremio-bin
gives = dremio
pkgver = 4.9.1
pkgdesc = Dremio: Data Lakehouse Platform Powered by Apache Iceberg
url = https://www.dremio.com/
arch = amd64
depends = openjdk-8-jdk
maintainer = Luca Fabbian <[email protected]>
source = https://download.dremio.com/community-server/4.9.1-202010230218060541-2e764ed0/dremio-community-4.9.1-202010230218060541-2e764ed0.tar.gz
sha256sums = ccd0ac89c9d3dc13eee8eba0f3f489b3f9efc7a897c1c550d919fcc294c749f9

pkgname = dremio-bin
60 changes: 60 additions & 0 deletions packages/dremio-bin/dremio-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
pkgname="dremio-bin"
gives="dremio"
pkgver="4.9.1"
fullver="4.9.1-202010230218060541-2e764ed0"
depends=("openjdk-8-jdk")
url="https://www.dremio.com/"
pkgdesc="Dremio: Data Lakehouse Platform Powered by Apache Iceberg"
maintainer=("Luca Fabbian <[email protected]>")
arch=('amd64')
sha256sums=("ccd0ac89c9d3dc13eee8eba0f3f489b3f9efc7a897c1c550d919fcc294c749f9")
source=("https://download.dremio.com/community-server/${fullver}/${gives}-community-${fullver}.tar.gz")

build() {
mkdir -p "${pkgdir}/opt/${pkgname}"
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/lib/systemd/system"
}

package() {
cp -r "${gives}-community-${fullver}"/* "${pkgdir}/opt/${pkgname}"

# shellcheck disable=SC2016
echo '#!/bin/bash
# Set the JAVA_HOME for this script
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH

# Forward execution to dremio script
bash "/opt/'"${pkgname}"'/bin/dremio" "$@"' | tee "${pkgdir}/usr/bin/dremio" > /dev/null
chmod +x "${pkgdir}/usr/bin/dremio"

echo '[Unit]
Description=Dremio Daemon Server
Documentation=https://docs.dremio.com
Wants=network-online.target
After=network-online.target

[Service]
User=root
Group=root
ExecStart=/usr/bin/dremio start-fg
Restart=on-failure
LimitNOFILE=65536


[Install]
WantedBy=multi-user.target' | tee "${pkgdir}/lib/systemd/system/dremio.service" > /dev/null
}

post_install() {
if [[ -f /bin/systemctl ]]; then
sudo systemctl enable dremio.service --now
fi
}

post_remove() {
if [[ -f /bin/systemctl ]]; then
sudo rm "/etc/systemd/system/multi-user.target.wants/dremio.service" && echo "Removed /etc/systemd/system/multi-user.target.wants/dremio.service"
fi
}
13 changes: 13 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -2144,6 +2144,19 @@ pkgbase = drawio-desktop-deb

pkgname = drawio-desktop-deb
---
pkgbase = dremio-bin
gives = dremio
pkgver = 4.9.1
pkgdesc = Dremio: Data Lakehouse Platform Powered by Apache Iceberg
url = https://www.dremio.com/
arch = amd64
depends = openjdk-8-jdk
maintainer = Luca Fabbian <[email protected]>
source = https://download.dremio.com/community-server/4.9.1-202010230218060541-2e764ed0/dremio-community-4.9.1-202010230218060541-2e764ed0.tar.gz
sha256sums = ccd0ac89c9d3dc13eee8eba0f3f489b3f9efc7a897c1c550d919fcc294c749f9

pkgname = dremio-bin
---
pkgbase = dropbox-deb
gives = dropbox
pkgver = 2020.03.04
Expand Down
Loading