Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tini manage process #1788

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading