Commit 8f036c76 authored by He Weiwei's avatar He Weiwei
Browse files

chore(images): install shadow package in base images



The latest `photon:2.0` does not include `groupadd` and `useradd`
we need to install `shadow` package which includes these commands.
Signed-off-by: default avatarHe Weiwei <hweiwei@vmware.com>
parent d599cd98
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
\ No newline at end of file
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/
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
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 \
......
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
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
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
\ No newline at end of file
&& chown -R nginx:nginx /etc/nginx
\ No newline at end of file
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
\ No newline at end of file
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
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
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