mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 01:58:35 +01:00
Merge pull request #12694 from heww/shadow-package
chore(images): install shadow package in base images
This commit is contained in:
commit
d81fe8d788
@ -1,5 +1,7 @@
|
||||
FROM photon:2.0
|
||||
|
||||
RUN mkdir /clair-adapter/ \
|
||||
RUN tdnf install -y shadow >> /dev/null \
|
||||
&& tdnf clean all \
|
||||
&& 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 tzdata -y >> /dev/null \
|
||||
RUN tdnf install -y tzdata shadow >> /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 tzdata -y >> /dev/null \
|
||||
RUN tdnf install -y tzdata shadow >> /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 nginx -y >> /dev/null\
|
||||
RUN tdnf install -y nginx shadow >> /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 \
|
||||
RUN tdnf install -y shadow >> /dev/null \
|
||||
&& 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 \
|
||||
RUN tdnf install -y shadow >> /dev/null \
|
||||
&& tdnf clean all \
|
||||
&& groupadd -r -g 10000 notary \
|
||||
&& useradd --no-log-init -r -g 10000 -u 10000 notary
|
||||
|
@ -1,8 +1,8 @@
|
||||
FROM photon:2.0
|
||||
|
||||
RUN tdnf install -y nginx >> /dev/null \
|
||||
RUN tdnf install -y nginx shadow >> /dev/null \
|
||||
&& tdnf clean all \
|
||||
&& 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 \
|
||||
&& chown -R nginx:nginx /etc/nginx \
|
||||
&& tdnf clean all
|
||||
&& chown -R nginx:nginx /etc/nginx
|
@ -1,4 +1,6 @@
|
||||
FROM photon:2.0
|
||||
|
||||
RUN mkdir -p /etc/registry \
|
||||
RUN tdnf install -y shadow >> /dev/null \
|
||||
&& tdnf clean all \
|
||||
&& mkdir -p /etc/registry \
|
||||
&& groupadd -r -g 10000 harbor && useradd --no-log-init -m -g 10000 -u 10000 harbor
|
@ -1,4 +1,6 @@
|
||||
FROM photon:2.0
|
||||
|
||||
RUN groupadd -r -g 10000 harbor && useradd --no-log-init -m -g 10000 -u 10000 harbor \
|
||||
RUN tdnf install -y shadow >> /dev/null \
|
||||
&& tdnf clean all \
|
||||
&& 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 rpm >> /dev/null \
|
||||
RUN tdnf install -y rpm shadow >> /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