Skip to content

Commit f6539b1

Browse files
dmavisxescab
authored andcommitted
fix: git zombie processes left behind after periodic image updater runs (argoproj-labs#584)
Signed-off-by: Daniel Mavis <[email protected]> Signed-off-by: Francesc Arbona <[email protected]>
1 parent e62ac4a commit f6539b1

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
apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo make && \
@@ -30,4 +30,4 @@ COPY hack/git-ask-pass.sh /usr/local/bin/git-ask-pass.sh
3030

3131
USER 1000
3232

33-
ENTRYPOINT ["/usr/local/bin/argocd-image-updater"]
33+
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)