-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
:) Since there is no official way to install this open source software in Ubuntu, I thought I could contribute. The script is mostly inspired from the docker and android studio ones. --------- Co-authored-by: V. <[email protected]> Co-authored-by: oklopfer <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c8422db
commit f14ae3a
Showing
4 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|