Skip to content

Commit

Permalink
feat: add tini manage process (#1788)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
zzzhangqi authored Nov 29, 2023
1 parent d9d4188 commit 6dd8ae6
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion hack/contrib/docker/api/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-api version
else
exec /run/rainbond-api --start=true $@
exec /bin/tini -- /run/rainbond-api --start=true $@
fi
2 changes: 1 addition & 1 deletion hack/contrib/docker/chaos/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-chaos version
else
exec /run/rainbond-chaos $@
exec /bin/tini -- /run/rainbond-chaos $@
fi
3 changes: 2 additions & 1 deletion hack/contrib/docker/eventlog/Dockerfile.arm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM goodrainapps/alpine:3.16
ARG BASE_IMAGE_VERSION
FROM goodrainapps/alpine:${BASE_IMAGE_VERSION}
ARG RELEASE_DESC
RUN apk add --no-cache libstdc++ ca-certificates openssl openssl-dev zeromq-dev

Expand Down
2 changes: 1 addition & 1 deletion hack/contrib/docker/eventlog/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-eventlog version
else
exec /run/rainbond-eventlog $@
exec /bin/tini -- /run/rainbond-eventlog $@
fi
2 changes: 1 addition & 1 deletion hack/contrib/docker/init-probe/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-init-probe version
else
exec /run/rainbond-init-probe $@
exec /bin/tini -- /run/rainbond-init-probe $@
fi
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
2 changes: 1 addition & 1 deletion hack/contrib/docker/mq/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-mq version
else
exec /run/rainbond-mq $@
exec /bin/tini -- /run/rainbond-mq $@
fi
2 changes: 1 addition & 1 deletion hack/contrib/docker/node/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-node version
else
exec /run/rainbond-node $@
exec /bin/tini -- /run/rainbond-node $@
fi
2 changes: 1 addition & 1 deletion hack/contrib/docker/webcli/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
/usr/bin/rainbond-webcli version
else
exec /usr/bin/rainbond-webcli $@
exec /bin/tini -- /usr/bin/rainbond-webcli $@
fi
2 changes: 1 addition & 1 deletion hack/contrib/docker/worker/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-worker version
else
exec /run/rainbond-worker $@
exec /bin/tini -- /run/rainbond-worker $@
fi

0 comments on commit 6dd8ae6

Please sign in to comment.