Skip to content

Commit 131424e

Browse files
zhangeamonzhangeamon
authored andcommitted
chore(stacks): add lakefs
1 parent 658f939 commit 131424e

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@
446446
"owner": "projectnessie",
447447
"match": "^nessie-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
448448
},
449+
"lakefs": {
450+
"name": "lakefs",
451+
"type": "github",
452+
"owner": "treeverse",
453+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
454+
},
449455
}
450456

451457

stacks/lakefs/build.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
if [[ ${OS_ARCH} =~ "x86" || ${OS_ARCH} =~ "amd" ]]; then
10+
OS_ARCH="x86_64"
11+
elif [[ ${OS_ARCH} =~ "arm" ]]; then
12+
OS_ARCH="arm64"
13+
fi
14+
15+
BIN_DIR="${DATA_DIR}"/bin
16+
mkdir -p "${BIN_DIR}"
17+
curl -fsSL -o tmp.tar.gz https://github.com/treeverse/lakeFS/releases/download/v${STACK_VERSION}/lakeFS_${STACK_VERSION}_Linux_${OS_ARCH}.tar.gz
18+
tar -xzf tmp.tar.gz
19+
mv lakectl "${BIN_DIR}"/lakectl
20+
mv lakefs "${BIN_DIR}"/lakefs
21+
rm -rf tmp.tar.gz
22+
chmod +x "${BIN_DIR}/lakectl"
23+
chmod +x "${BIN_DIR}/lakefs"
24+
}
25+
26+
# call build stack
27+
build-stack "${1}"

0 commit comments

Comments
 (0)