enh: update for timer-moe

This commit is contained in:
jiajingbin 2025-03-24 19:16:03 +08:00
parent 8e3b0fbfa9
commit 3924c5a043
2 changed files with 16 additions and 4 deletions

View File

@ -12,9 +12,9 @@ ADD ${pkgFile} \
http://${nasIp}/data/nas/TDengine/anode/timer-moe.tar.gz \
/apps/
ADD ${pkgFile} /apps/
RUN cd ${dirName}/ && /bin/bash install.sh -e no && cd .. && rm -rf ${dirName}
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh /apps/taos_ts_server.py
EXPOSE 6090 8387 5000
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

View File

@ -6,17 +6,29 @@ export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
CONFIG_FILE="/usr/local/taos/taosanode/cfg/taosanode.ini"
TS_SERVER_FILE="/apps/taos_ts_server.py"
TIMER_POE_FILE="/apps/timer-moe/timer-moe_server.py"
if [ ! -f "$CONFIG_FILE" ]; then
echo "Error: Configuration file $CONFIG_FILE not found!"
exit 1
fi
echo "Starting taos_ts_server..."
python3 /apps/taos_ts_server.py --action server &
echo "Starting tdtsfm server..."
python3 $TS_SERVER_FILE --action server &
TAOS_TS_PID=$!
if ! ps -p $TAOS_TS_PID > /dev/null; then
echo "Error: taos_ts_server failed to start!"
echo "Error: tdtsfm server failed to start!"
exit 1
fi
echo "Starting timer-moe server..."
python3 $TIMER_POE_FILE --action server &
TIMER_MOE_PID=$!
if ! ps -p $TIMER_MOE_PID > /dev/null; then
echo "Error: timer-moe server failed to start!"
exit 1
fi