File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function build() {
1010 mkdir -p " ${DATA_DIR} " /env
1111 echo " /opt/drycc/java" > " ${DATA_DIR} " /env/JAVA_HOME
1212 cat << EOF >> ${PROFILE_DIR} /${STACK_NAME} .sh
13- export LD_LIBRARY_PATH="\$ {JAVA_HOME}/jre/ lib/ ${OS_ARCH} /server:\$ {LD_LIBRARY_PATH}"
13+ export LD_LIBRARY_PATH="\$ {JAVA_HOME}/lib/server:\$ {LD_LIBRARY_PATH}"
1414EOF
1515
1616}
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ bash configure \
4242 --with-version-pre=" drycc" \
4343 --with-version-opt=" " \
4444 --with-vendor-version-string=" $( date ' +%Y%m%d%H%M%S' ) " \
45- --with-native-debug-symbols=external \
45+ --with-native-debug-symbols=none \
4646 --disable-warnings-as-errors
4747make
4848cp -rf build/linux-* -server-release/jdk/* " ${DATA_DIR} "
49+ rm -rf " ${DATA_DIR} " /lib/jvm.cfg " ${DATA_DIR} " /lib/tzdb.dat
50+ cp -rf build/linux-* -server-release/support/modules_libs/java.base/jvm.cfg " ${DATA_DIR} /lib/jvm.cfg"
51+ cp -rf build/linux-* -server-release/support/modules_libs/java.base/tzdb.dat " ${DATA_DIR} /lib/tzdb.dat"
Original file line number Diff line number Diff line change 66# Implement build function
77function build() {
88 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/kafka/archive/refs/tags/${STACK_VERSION} .tar.gz
9+ curl -fsSL -o tmp.tar.gz https://dlcdn.apache.org/kafka/${STACK_VERSION} /kafka_2.13-${STACK_VERSION} .tgz
1210 tar -xzf tmp.tar.gz
13- mv kafka-" ${STACK_VERSION} " /* " ${DATA_DIR} "
14- rm kafka-" ${STACK_VERSION} " tmp.tar.gz -rf
15-
11+ mv kafka_2.13-" ${STACK_VERSION} " /* " ${DATA_DIR} "
12+ rm -rf kafka_2.13-${STACK_VERSION} tmp.tar.gz
1613 cat << EOF > ${PROFILE_DIR} /${STACK_NAME} .sh
1714export PATH="/opt/drycc/kafka:/opt/drycc/kafka/bin:\$ PATH"
1815EOF
Original file line number Diff line number Diff line change 66# Implement build function
77function build() {
88 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
9+ curl -fsSL -o tmp.tar.gz https://dlcdn.apache.org/zookeeper/zookeeper-${STACK_VERSION} /apache-zookeeper-${STACK_VERSION} -bin.tar.gz
1210 tar -xzf tmp.tar.gz
13- mv zookeeper-release-" ${STACK_VERSION} " /* " ${DATA_DIR} "
14- rm zookeeper-release-" ${STACK_VERSION} " tmp.tar.gz -rf
15-
11+ cp -rf apache-zookeeper-${STACK_VERSION} -bin/* " ${DATA_DIR} "
12+ rm -rf apache-zookeeper-${STACK_VERSION} -bin tmp.tar.gz
1613 cat << EOF > ${PROFILE_DIR} /${STACK_NAME} .sh
1714export PATH="/opt/drycc/zookeeper/bin:\$ PATH"
1815EOF
You can’t perform that action at this time.
0 commit comments