Skip to content

Commit

Permalink
bugfix: 容器环境,停止微服务没有触发shutdown hook TencentBlueKing#1251
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Sep 5, 2022
1 parent 7d54be5 commit 6a2fb57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions support-files/kubernetes/images/backend/backend.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ ENV BK_JOB_HOME=/data/job/exec
COPY ./ /data/job/exec/
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'Asia/Shanghai' > /etc/timezone && \
chmod +x /data/job/exec/startup.sh
chmod +x /data/job/exec/startup.sh \
chmod +x /data/job/exec/tini

# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /data/job/exec/tini
RUN chmod +x /data/job/exec/tini

ENV LANG en_US.utf8
ENV LANGUAGE en_US.utf8
Expand Down
Binary file added support-files/kubernetes/images/backend/tini
Binary file not shown.

0 comments on commit 6a2fb57

Please sign in to comment.