Skip to content

Commit db8187a

Browse files
committed
chore(stacks): update java zookeeper kafka build
1 parent 9334243 commit db8187a

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

stacks/java/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}"
1414
EOF
1515

1616
}

stacks/java/make.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
4747
make
4848
cp -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"

stacks/kafka/build.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
# Implement build function
77
function 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
1714
export PATH="/opt/drycc/kafka:/opt/drycc/kafka/bin:\$PATH"
1815
EOF

stacks/zookeeper/build.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
# Implement build function
77
function 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
1714
export PATH="/opt/drycc/zookeeper/bin:\$PATH"
1815
EOF

0 commit comments

Comments
 (0)