Skip to content

Commit 775fcf5

Browse files
committed
chore(stacks): add rustfs
1 parent c72c95b commit 775fcf5

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@
380380
"owner": "opensearch-project",
381381
"match": "^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
382382
},
383+
"rustfs": {
384+
"name": "rustfs",
385+
"type": "github",
386+
"owner": "rustfs",
387+
"match": "^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
388+
},
383389
"seaweedfs": {
384390
"name": "seaweedfs",
385391
"type": "github",

stacks/rustfs/build.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
BIN_DIR="${DATA_DIR}"/bin
10+
mkdir -p "${BIN_DIR}"
11+
12+
curl -fsSL -o rustfs.zip https://github.com/rustfs/rustfs/releases/download/${STACK_VERSION}/rustfs-linux-$(uname -m)-gnu-v${STACK_VERSION}.zip \
13+
&& unzip -j rustfs.zip -d "${BIN_DIR}" \
14+
&& rm rustfs.zip
15+
16+
chmod +x "${BIN_DIR}"/"${STACK_NAME}"
17+
}
18+
19+
# call build stack
20+
build-stack "${1}"

0 commit comments

Comments
 (0)