Skip to content

Commit 4cdf5c6

Browse files
authored
chore(NA): install microdnf in UBI docker build only (#82611)
* chore(NA): install microdnf in uby docker build only * chore(NA): run microdnf update inside a retry * chore(NA): run microdnf update inside the main retry
1 parent b999989 commit 4cdf5c6

File tree

1 file changed

+4
-2
lines changed
  • src/dev/build/tasks/os_packages/docker_generator/templates

1 file changed

+4
-2
lines changed

src/dev/build/tasks/os_packages/docker_generator/templates/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ EXPOSE 5601
5252
{{/ubi}}
5353

5454
RUN for iter in {1..10}; do \
55-
# update microdnf to have exclusion feature for dnf configuration
56-
{{packageManager}} update microdnf --setopt=tsflags=nodocs -y && \
55+
{{#ubi}}
56+
# update microdnf to have exclusion feature for dnf configuration
57+
{{packageManager}} update microdnf --setopt=tsflags=nodocs -y && \
58+
{{/ubi}}
5759
{{packageManager}} update --setopt=tsflags=nodocs -y && \
5860
{{packageManager}} install --setopt=tsflags=nodocs -y \
5961
fontconfig freetype shadow-utils libnss3.so {{#ubi}}findutils{{/ubi}} && \

0 commit comments

Comments
 (0)