Remove unused "sudo" package from most images

Notably missing is the "log" image, which still uses sudo.

Signed-off-by: Tianon Gravi <tianon@infosiftr.com>
This commit is contained in:
Tianon Gravi 2020-06-11 17:21:01 -07:00
parent 19234cdb46
commit 4752cac051
13 changed files with 13 additions and 19 deletions

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install -y shadow sudo >>/dev/null\
RUN tdnf install -y shadow >>/dev/null\
&& tdnf clean all \
&& groupadd -r -g 10000 chart \
&& useradd --no-log-init -m -g 10000 -u 10000 chart

View File

@ -1,7 +1,5 @@
FROM photon:2.0
RUN tdnf install -y sudo >>/dev/null\
&& tdnf clean all \
&& mkdir /clair-adapter/ \
RUN mkdir /clair-adapter/ \
&& groupadd -r -g 10000 clair-adapter \
&& useradd --no-log-init -m -r -g 10000 -u 10000 clair-adapter

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install -y git shadow sudo rpm xz python-xml >>/dev/null\
RUN tdnf install -y git shadow rpm xz python-xml >>/dev/null\
&& tdnf clean all \
&& groupadd -r -g 10000 clair \
&& useradd --no-log-init -m -g 10000 -u 10000 clair

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install sudo tzdata -y >> /dev/null \
RUN tdnf install tzdata -y >> /dev/null \
&& tdnf clean all \
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -m -g 10000 -u 10000 harbor \
&& mkdir /harbor/

View File

@ -1,5 +1,5 @@
FROM photon:2.0
RUN tdnf install sudo tzdata -y >> /dev/null \
RUN tdnf install tzdata -y >> /dev/null \
&& tdnf clean all \
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -m -g 10000 -u 10000 harbor

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install sudo nginx -y >> /dev/null\
RUN tdnf install nginx -y >> /dev/null\
&& tdnf clean all \
&& groupadd -r -g 10000 nginx && useradd --no-log-init -r -g 10000 -u 10000 nginx \
&& ln -sf /dev/stdout /var/log/nginx/access.log \

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install -y shadow sudo \
RUN tdnf install -y shadow \
&& tdnf clean all \
&& groupadd -r -g 10000 notary \
&& useradd --no-log-init -r -g 10000 -u 10000 notary

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install -y shadow sudo \
RUN tdnf install -y shadow \
&& tdnf clean all \
&& groupadd -r -g 10000 notary \
&& useradd --no-log-init -r -g 10000 -u 10000 notary

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install -y nginx sudo >> /dev/null \
RUN tdnf install -y nginx >> /dev/null \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \
&& groupadd -r -g 10000 nginx && useradd --no-log-init -r -g 10000 -u 10000 nginx \

View File

@ -1,3 +1,3 @@
FROM photon:2.0
RUN tdnf install -y redis sudo && tdnf clean all
RUN tdnf install -y redis && tdnf clean all

View File

@ -1,6 +1,4 @@
FROM photon:2.0
RUN tdnf install sudo -y >> /dev/null\
&& tdnf clean all \
&& mkdir -p /etc/registry \
RUN mkdir -p /etc/registry \
&& groupadd -r -g 10000 harbor && useradd --no-log-init -m -g 10000 -u 10000 harbor

View File

@ -1,6 +1,4 @@
FROM photon:2.0
RUN tdnf install sudo -y >> /dev/null \
&& tdnf clean all \
&& groupadd -r -g 10000 harbor && useradd --no-log-init -m -g 10000 -u 10000 harbor \
RUN groupadd -r -g 10000 harbor && useradd --no-log-init -m -g 10000 -u 10000 harbor \
&& mkdir -p /etc/registry

View File

@ -1,6 +1,6 @@
FROM photon:2.0
RUN tdnf install -y sudo rpm >> /dev/null \
RUN tdnf install -y rpm >> /dev/null \
&& tdnf clean all \
&& groupadd -r -g 10000 scanner \
&& useradd --no-log-init -m -r -g 10000 -u 10000 scanner