forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fix some annoyances when running locally (argoproj#6576)
Signed-off-by: jannfis <[email protected]>
- Loading branch information
Showing
5 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# Simple helper script to kill all running processes in the container that | ||
# have belong to the root user. | ||
|
||
# DO NOT RUN OUTSIDE THE DOCKER CONTAINER EXECUTING ARGO CD TESTS. | ||
# YOU HAVE BEEN WARNED. | ||
|
||
somefunc() { | ||
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 somefunc 2 15 | ||
while :; do | ||
sleep 1 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
export HELM_EXPERIMENTAL_OCI=1 | ||
docker run -p 5000:5000 --restart=always --name registry registry | ||
docker run -p 5000:5000 --rm --name registry registry |