We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a51a53f commit c98c576Copy full SHA for c98c576
1 file changed
stacks/zookeeper/build.sh
@@ -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