-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Conversation
apt-get install -y --no-install-recommends git openssh-client python3 python3-pip tini gpg gpg-agent && \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install awscli && \ |
There was a problem hiding this comment.
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 && \ |
There was a problem hiding this comment.
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 && \ |
There was a problem hiding this comment.
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.
No description provided.