mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
23 lines
484 B
Bash
Executable File
23 lines
484 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Simple helper script to kill all running processes in the container that
|
|
# belong to the root user.
|
|
|
|
# DO NOT RUN OUTSIDE THE DOCKER CONTAINER EXECUTING ARGO CD TESTS.
|
|
# YOU HAVE BEEN WARNED.
|
|
|
|
cleanup() {
|
|
echo "Killing all processes"
|
|
sudo pkill -u root
|
|
}
|
|
|
|
echo "Running as $0 ($PWD)"
|
|
if test "${PWD}" != "/go/src/github.com/argoproj/argo-cd"; then
|
|
echo "ERROR: We don't seem to be in Docker container. Exit." >&2
|
|
exit 1
|
|
fi
|
|
trap cleanup 2 15
|
|
while :; do
|
|
sleep 1
|
|
done
|