mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 08:38:03 +01:00
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:
parent
19234cdb46
commit
4752cac051
@ -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
|
||||
|
@ -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
|
@ -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
|
@ -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/
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user