Skip to content

Commit

Permalink
fix: kill zombie
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 committed Dec 5, 2023
1 parent b045e89 commit b780d9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions hack/contrib/docker/monitor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ ENV RELEASE_DESC=${RELEASE_DESC}

COPY rainbond-monitor /run/rainbond-monitor

RUN if [ $(arch) = "arm64" ] || [ $(arch) = "aarch64" ]; then \
wget https://pkg.goodrain.com/pkg/tini/v0.19.0/tini-arm -O /bin/tini && chmod +x /bin/tini; \
else \
wget https://pkg.goodrain.com/pkg/tini/v0.19.0/tini -O /bin/tini && chmod +x /bin/tini; \
fi

ADD entrypoint.sh /run/entrypoint.sh

ENTRYPOINT ["/run/entrypoint.sh"]
2 changes: 1 addition & 1 deletion hack/contrib/docker/monitor/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ if [ "$1" = "bash" ];then
elif [ "$1" = "version" ];then
/run/rainbond-monitor version
else
exec /run/rainbond-monitor $@
exec /bin/tini -- /run/rainbond-monitor $@
fi

0 comments on commit b780d9e

Please sign in to comment.