Skip to content
Permalink
Browse files
inject more env var when start-computer.sh (#115)
  • Loading branch information
coderzc committed Oct 14, 2021
1 parent 5f06b65 commit 614d8a00dceb935c93612169491c3cad25e37d1e
Showing 3 changed files with 3 additions and 2 deletions.
@@ -18,3 +18,4 @@
target
gen-java
build
**/dependency-reduced-pom.xml
@@ -175,7 +175,7 @@ if [ ! -a "${COPY_CONF_DIR}" ]; then
fi

NEW_COMPUTER_CONF_PATH="${COPY_CONF_DIR}/$(basename "${COMPUTER_CONF_PATH}")"
envsubst '${POD_IP}' < "${COMPUTER_CONF_PATH}" > "${NEW_COMPUTER_CONF_PATH}"
envsubst '${POD_IP},${HOSTNAME},${POD_NAME},${POD_NAMESPACE}' < "${COMPUTER_CONF_PATH}" > "${NEW_COMPUTER_CONF_PATH}"
chmod 777 "${NEW_COMPUTER_CONF_PATH}"

if [ "${LOG4J_CONF_PATH}" != "" ];then
@@ -99,7 +99,7 @@ public static boolean waitUntilReady(Duration initialDelay,
}

public static String crName(String jobId) {
return jobId.toLowerCase();
return jobId.toLowerCase().replaceAll("_", "-");
}

public static String genJobId(String algorithmName) {

0 comments on commit 614d8a0

Please sign in to comment.