mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-04 08:03:37 +01:00
Merge pull request #3818 from wy65701436/temp-photon
Temporary workaround for photon distro-sync error
This commit is contained in:
commit
9979de55d4
@ -1,7 +1,7 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf erase vim -y \
|
RUN tdnf erase vim -y \
|
||||||
&& tdnf distro-sync -y \
|
&& tdnf distro-sync -y || echo \
|
||||||
&& tdnf install -y sudo \
|
&& tdnf install -y sudo \
|
||||||
&& tdnf clean all \
|
&& tdnf clean all \
|
||||||
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor \
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf erase vim -y \
|
&& tdnf erase vim -y \
|
||||||
&& tdnf install -y git shadow sudo bzr rpm xz python-xml \
|
&& tdnf install -y git shadow sudo bzr rpm xz python-xml \
|
||||||
&& tdnf clean all \
|
&& tdnf clean all \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN mkdir /harbor/ \
|
RUN mkdir /harbor/ \
|
||||||
&& tdnf distro-sync -y \
|
&& tdnf distro-sync -y || echo \
|
||||||
&& tdnf install sudo -y \
|
&& tdnf install sudo -y \
|
||||||
&& tdnf clean all \
|
&& tdnf clean all \
|
||||||
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
&& groupadd -r -g 10000 harbor && useradd --no-log-init -r -g 10000 -u 10000 harbor
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf install -y cronie rsyslog logrotate shadow tar gzip sudo net-tools\
|
&& tdnf install -y cronie rsyslog logrotate shadow tar gzip sudo net-tools\
|
||||||
&& mkdir /etc/rsyslog.d/ \
|
&& mkdir /etc/rsyslog.d/ \
|
||||||
&& mkdir /var/spool/rsyslog \
|
&& mkdir /var/spool/rsyslog \
|
||||||
|
@ -2,7 +2,7 @@ FROM vmware/photon:1.0
|
|||||||
|
|
||||||
#The Docker Daemon has to be running with storage backend btrfs when building the image
|
#The Docker Daemon has to be running with storage backend btrfs when building the image
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf install -y sed shadow procps-ng gawk gzip sudo net-tools \
|
&& tdnf install -y sed shadow procps-ng gawk gzip sudo net-tools \
|
||||||
&& groupadd -r -g 10000 mysql && useradd --no-log-init -r -g 10000 -u 10000 mysql \
|
&& groupadd -r -g 10000 mysql && useradd --no-log-init -r -g 10000 -u 10000 mysql \
|
||||||
&& tdnf install -y mariadb-server mariadb \
|
&& tdnf install -y mariadb-server mariadb \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf install -y nginx \
|
&& tdnf install -y nginx \
|
||||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||||
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf erase vim -y \
|
&& tdnf erase vim -y \
|
||||||
&& tdnf install -y shadow sudo \
|
&& tdnf install -y shadow sudo \
|
||||||
&& tdnf clean all \
|
&& tdnf clean all \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf erase vim -y \
|
&& tdnf erase vim -y \
|
||||||
&& tdnf install -y shadow sudo \
|
&& tdnf install -y shadow sudo \
|
||||||
&& tdnf clean all \
|
&& tdnf clean all \
|
||||||
|
@ -3,7 +3,7 @@ FROM vmware/photon:1.0
|
|||||||
ENV PGDATA /var/lib/postgresql/data
|
ENV PGDATA /var/lib/postgresql/data
|
||||||
|
|
||||||
RUN touch /etc/localtime.bak \
|
RUN touch /etc/localtime.bak \
|
||||||
&& tdnf distro-sync -y \
|
&& tdnf distro-sync -y || echo \
|
||||||
&& tdnf install -y sed shadow gzip postgresql\
|
&& tdnf install -y sed shadow gzip postgresql\
|
||||||
&& groupadd -r postgres --gid=999 \
|
&& groupadd -r postgres --gid=999 \
|
||||||
&& useradd -r -g postgres --uid=999 postgres \
|
&& useradd -r -g postgres --uid=999 postgres \
|
||||||
|
@ -3,7 +3,7 @@ FROM vmware/photon:1.0
|
|||||||
MAINTAINER wangyan@vmware.com
|
MAINTAINER wangyan@vmware.com
|
||||||
|
|
||||||
# The original script in the docker offical registry image.
|
# The original script in the docker offical registry image.
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf erase vim -y \
|
&& tdnf erase vim -y \
|
||||||
&& tdnf install sudo -y \
|
&& tdnf install sudo -y \
|
||||||
&& tdnf clean all \
|
&& tdnf clean all \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y || echo \
|
||||||
&& tdnf erase vim -y \
|
&& tdnf erase vim -y \
|
||||||
&& tdnf install sudo -y \
|
&& tdnf install sudo -y \
|
||||||
&& tdnf clean all \
|
&& tdnf clean all \
|
||||||
|
Loading…
Reference in New Issue
Block a user