Skip to content

Commit c98c576

Browse files
committed
chore(stacks): add zookeeper
1 parent a51a53f commit c98c576

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

stacks/zookeeper/build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
curl -fsSL -o tmp.tar.gz https://github.com/apache/zookeeper/archive/refs/tags/release-${STACK_VERSION}.tar.gz
12+
tar -xzf tmp.tar.gz
13+
mv zookeeper-release-"${STACK_VERSION}"/* "${DATA_DIR}"
14+
rm zookeeper-release-"${STACK_VERSION}" tmp.tar.gz -rf
15+
16+
cat << EOF > ${PROFILE_DIR}/${STACK_NAME}.sh
17+
export PATH="/opt/drycc/zookeeper/bin:\$PATH"
18+
EOF
19+
}
20+
21+
# call build stack
22+
build-stack "${1}"

0 commit comments

Comments
 (0)