Skip to content

Commit f6c4fe3

Browse files
authored
fix: git zombie processes left behind after periodic image updater runs (#584)
Signed-off-by: Daniel Mavis <daniel.mavis@faa.gov>
1 parent 7c93d60 commit f6c4fe3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FROM alpine:latest
1414

1515
RUN apk update && \
1616
apk upgrade && \
17-
apk add ca-certificates git openssh-client python3 py3-pip && \
17+
apk add ca-certificates git openssh-client python3 py3-pip tini && \
1818
pip3 install --upgrade pip && \
1919
pip3 install awscli && \
2020
rm -rf /var/cache/apk/*
@@ -28,4 +28,4 @@ COPY hack/git-ask-pass.sh /usr/local/bin/git-ask-pass.sh
2828

2929
USER 1000
3030

31-
ENTRYPOINT ["/usr/local/bin/argocd-image-updater"]
31+
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/argocd-image-updater"]

manifests/base/deployment/argocd-image-updater-deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ spec:
1818
app.kubernetes.io/name: argocd-image-updater
1919
spec:
2020
containers:
21-
- command:
22-
- /usr/local/bin/argocd-image-updater
21+
- args:
2322
- run
2423
image: quay.io/argoprojlabs/argocd-image-updater:latest
2524
imagePullPolicy: Always

0 commit comments

Comments
 (0)