Skip to content

Commit

Permalink
Agent清理进程为worker兜底 #10234
Browse files Browse the repository at this point in the history
  • Loading branch information
tangruotian committed Jun 27, 2024
1 parent 43072cb commit c03633f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions support-files/agent-package/script/linux/agent_docker_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ ci_log() {
echo "$msg" >&2
}

mkdir -p /data/devops/logs
cd /data/devops
mkdir -p "$CI_LOG_DIR"
cd "$CI_DIR"

ci_log "docker_init.sh was launched."

export LANG="zh_CN.UTF-8"

ci_log "start to copy worker-agent.jat as the docker.jar..."

cp /data/worker-agent.jar /data/devops/docker.jar
cp /data/worker-agent.jar "$CI_DIR/docker.jar"
chmod +x docker.jar

ci_log "copy docker.jar finished, ready to start it..."

exec /usr/local/jre/bin/java -Dfile.encoding=UTF-8 -DLC_CTYPE=UTF-8 -Dbuild.type=DOCKER -Dsun.zip.disableMemoryMapping=true -Xmx1024m -Xms128m -jar docker.jar "$@" >>"$CI_LOG_DIR/docker.log" 2>&1
exec /usr/local/jre/bin/java -Dfile.encoding=UTF-8 -DLC_CTYPE=UTF-8 -Dbuild.type=DOCKER -Dsun.zip.disableMemoryMapping=true -Xmx1024m -Xms128m -jar docker.jar "$@" >>"$CI_LOG_FILE" 2>&1

ci_log "end"

0 comments on commit c03633f

Please sign in to comment.