Commit 4752cac0 authored by Tianon Gravi's avatar Tianon Gravi
Browse files

Remove unused "sudo" package from most images



Notably missing is the "log" image, which still uses sudo.
Signed-off-by: default avatarTianon Gravi <tianon@infosiftr.com>
parent 19234cdb
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
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
\ No newline at end of file
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
\ No newline at end of file
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/
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
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 \
......
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
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
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 \
......
FROM photon:2.0
RUN tdnf install -y redis sudo && tdnf clean all
RUN tdnf install -y redis && tdnf clean all
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
\ No newline at end of file
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
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment