[#152] modify pinpoint-flink-job.jar just one time when the container is created

This commit is contained in:
progyoung 2022-11-25 13:57:23 +08:00 committed by ga-ram
parent 94379d4afb
commit 62fd8704fb
1 changed files with 9 additions and 7 deletions

View File

@ -2,13 +2,15 @@
# In flink version < 1.11 we can't use "job cluster" because it's not yet available # In flink version < 1.11 we can't use "job cluster" because it's not yet available
if [ "$1" = "standalone-job" ]; then if [ "$1" = "standalone-job" ]; then
cd /build if [ -e /build/pinpoint-flink-job.jar ]; then
zip -d pinpoint-flink-job.jar "profiles/release/*.properties" cd /build
sed -i -e "s/#PINPOINT_ZOOKEEPER_ADDRESS#/${PINPOINT_ZOOKEEPER_ADDRESS}/g" profiles/release/* zip -d pinpoint-flink-job.jar "profiles/release/*.properties"
zip -r pinpoint-flink-job.jar profiles/ sed -i -e "s/#PINPOINT_ZOOKEEPER_ADDRESS#/${PINPOINT_ZOOKEEPER_ADDRESS}/g" profiles/release/*
cd - zip -r pinpoint-flink-job.jar profiles/
cd -
mv /build/pinpoint-flink-job.jar pinpoint-flink-job.jar mv /build/pinpoint-flink-job.jar pinpoint-flink-job.jar
fi
shift shift