summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mavis <90711593+dmavis@users.noreply.github.com>2023-07-05 20:11:44 -0500
committerGitHub <noreply@github.com>2023-07-05 21:11:44 -0400
commitf6c4fe387387d342fabcbc06fbe320645163851a (patch)
tree125ab34638b56c440bcd62ce88b2cdceae90c321
parent7c93d602a7e3e18b175a8d67457f37e9a9be3d73 (diff)
fix: git zombie processes left behind after periodic image updater runs (#584)
Signed-off-by: Daniel Mavis <daniel.mavis@faa.gov>
-rw-r--r--Dockerfile4
-rw-r--r--manifests/base/deployment/argocd-image-updater-deployment.yaml3
2 files changed, 3 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index ec38e46..c374bae 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,7 +14,7 @@ FROM alpine:latest
RUN apk update && \
apk upgrade && \
- apk add ca-certificates git openssh-client python3 py3-pip && \
+ apk add ca-certificates git openssh-client python3 py3-pip tini && \
pip3 install --upgrade pip && \
pip3 install awscli && \
rm -rf /var/cache/apk/*
@@ -28,4 +28,4 @@ COPY hack/git-ask-pass.sh /usr/local/bin/git-ask-pass.sh
USER 1000
-ENTRYPOINT ["/usr/local/bin/argocd-image-updater"]
+ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/argocd-image-updater"]
diff --git a/manifests/base/deployment/argocd-image-updater-deployment.yaml b/manifests/base/deployment/argocd-image-updater-deployment.yaml
index b5b8260..1e430bf 100644
--- a/manifests/base/deployment/argocd-image-updater-deployment.yaml
+++ b/manifests/base/deployment/argocd-image-updater-deployment.yaml
@@ -18,8 +18,7 @@ spec:
app.kubernetes.io/name: argocd-image-updater
spec:
containers:
- - command:
- - /usr/local/bin/argocd-image-updater
+ - args:
- run
image: quay.io/argoprojlabs/argocd-image-updater:latest
imagePullPolicy: Always