-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: kouki <[email protected]>
- Loading branch information
Showing
6 changed files
with
60 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
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,33 @@ | ||
FROM quay.io/cybozu/golang:1.21-jammy AS builder | ||
|
||
ENV ARGOCD_IMAGE_UPDATER_VERSION=0.12.2 | ||
|
||
WORKDIR /work | ||
|
||
RUN git clone --depth 1 --branch v${ARGOCD_IMAGE_UPDATER_VERSION} https://github.com/argoproj-labs/argocd-image-updater.git | ||
|
||
WORKDIR /work/argocd-image-updater | ||
RUN mkdir -p dist && \ | ||
make controller | ||
|
||
FROM quay.io/cybozu/ubuntu:22.04 | ||
LABEL org.opencontainers.image.source="https://github.com/cybozu/neco-containers" | ||
|
||
RUN groupadd -g 10000 argocd && \ | ||
useradd -r -u 10000 -g argocd argocd && \ | ||
mkdir -p /home/argocd && \ | ||
chown argocd:argocd /home/argocd && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends git openssh-client python3 python3-pip && \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install awscli && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
COPY --from=builder /work/argocd-image-updater/dist/argocd-image-updater /usr/local/bin | ||
COPY --from=builder /work/argocd-image-updater/hack/git-ask-pass.sh /usr/local/bin/git-ask-pass.sh | ||
COPY --from=builder /work/argocd-image-updater/LICENSE /usr/local/argocd-image-updater/LICENSE | ||
|
||
USER argocd | ||
|
||
ENTRYPOINT ["/usr/local/bin/argocd-image-updater"] |
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,8 @@ | ||
# Argo CD Image Updater Container | ||
|
||
This derectory provides a Dockerfile to build a arogocd-image-updater container | ||
that runs [argoproj-labs/argocd-image-updater](https://github.com/argoproj-labs/argocd-image-updater). | ||
|
||
## Docker images | ||
|
||
Docker images are available on [ghcr.io/cybozu/argocd-image-updater](https://ghcr.io/cybozu/argocd-image-updater) |
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 @@ | ||
0.12.2.1 |
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