Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update argocd-image-updater version to v0.15.1 #1496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rkwmt
Copy link
Contributor

@rkwmt rkwmt commented Dec 26, 2024

No description provided.

@rkwmt rkwmt self-assigned this Dec 26, 2024
@rkwmt rkwmt marked this pull request as draft December 26, 2024 08:59
@rkwmt rkwmt marked this pull request as ready for review December 27, 2024 01:05
Comment on lines +21 to 23
apt-get install -y --no-install-recommends git openssh-client python3 python3-pip tini gpg gpg-agent && \
pip3 install --upgrade pip && \
pip3 install awscli && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

24.04/ubuntu-debug installs awscli with curl, how about using this method?
With this, we can omit installing python3 and python3-pip I think.
https://github.com/cybozu/ubuntu-base/blob/1cb03b74e6b001c989ea83296a035e1bb9b7d129/24.04/ubuntu-debug/Dockerfile#L55-L58

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 && \
apt-get install -y --no-install-recommends git openssh-client python3 python3-pip tini gpg gpg-agent && \
pip3 install --upgrade pip && \
pip3 install awscli && \
apt-get clean && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can omit explicit apt-get clean.

https://docs.docker.com/build/building/best-practices/

Official Debian and Ubuntu images automatically run apt-get clean, so explicit invocation is not required.

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 && \
apt-get install -y --no-install-recommends git openssh-client python3 python3-pip tini gpg gpg-agent && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to write package names line by line and alphabetize them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants