Merge pull request #12694 from heww/shadow-package

chore(images): install shadow package in base images
This commit is contained in:
He Weiwei 2020-08-10 18:58:17 +08:00 committed by GitHub
commit d81fe8d788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 18 additions and 12 deletions

View File

@ -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

View File

@ -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/

View File

@ -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

View File

@ -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 \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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