diff --git a/scripts/checker.py b/scripts/checker.py index 18de5ef..ac4b8a6 100644 --- a/scripts/checker.py +++ b/scripts/checker.py @@ -446,6 +446,12 @@ "owner": "projectnessie", "match": "^nessie-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$", }, + "lakefs": { + "name": "lakefs", + "type": "github", + "owner": "treeverse", + "match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$", + }, } diff --git a/stacks/lakefs/build.sh b/stacks/lakefs/build.sh new file mode 100755 index 0000000..5dc41dc --- /dev/null +++ b/stacks/lakefs/build.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Load stack utils +. /usr/bin/stack-utils + +# Implement build function +function build() { + generate-stack-path + if [[ ${OS_ARCH} =~ "x86" || ${OS_ARCH} =~ "amd" ]]; then + OS_ARCH="x86_64" + elif [[ ${OS_ARCH} =~ "arm" ]]; then + OS_ARCH="arm64" + fi + + BIN_DIR="${DATA_DIR}"/bin + mkdir -p "${BIN_DIR}" + curl -fsSL -o tmp.tar.gz https://github.com/treeverse/lakeFS/releases/download/v${STACK_VERSION}/lakeFS_${STACK_VERSION}_Linux_${OS_ARCH}.tar.gz + tar -xzf tmp.tar.gz + mv lakectl "${BIN_DIR}"/lakectl + mv lakefs "${BIN_DIR}"/lakefs + rm -rf tmp.tar.gz + chmod +x "${BIN_DIR}/lakectl" + chmod +x "${BIN_DIR}/lakefs" +} + +# call build stack +build-stack "${1}" \ No newline at end of file