deamen / ubi

Repository for UBI based containers
GNU General Public License v3.0
0 stars 0 forks source link

Set timezone in image #5

Closed deamen closed 2 years ago

deamen commented 2 years ago

It appears that the tzdata package needs to be re-installed.

deamen commented 2 years ago

Upstream source: https://access.redhat.com/solutions/5616681 RUN microdnf reinstall tzdata -y

deamen commented 2 years ago

The reinstall step caused an error: Installed package tzdata-2022a-1.el9_0.noarch not available.

deamen commented 2 years ago

This appears to be a timing issue:

Upgrading:
 curl-minimal-7.76.1-14.el9_0.5.x86_64               ubi-9-baseos 134.7\xc2\xa0kB
  replacing curl-minimal-7.76.1-14.el9_0.4.x86_64
 libcurl-minimal-7.76.1-14.el9_0.5.x86_64            ubi-9-baseos 235.2\xc2\xa0kB
  replacing libcurl-minimal-7.76.1-14.el9_0.4.x86_64
 tzdata-2022c-1.el9_0.noarch                         ubi-9-baseos 859.3\xc2\xa0kB
   replacing tzdata-2022a-1.el9_0.noarch

The tzdata-2022a-1.el9_0.noarch package is replaced by tzdata-2022c-1.el9_0.noarch and has been removed from the repository therefore reinstall failed.

The solution is to run update before reinstall:

RUN microdnf update -y --nodocs --setopt install_weak_deps=0
RUN microdnf reinstall -y --nodocs --setopt install_weak_deps=0 tzdata