adding extra packages to Docker image...

185 views
Skip to first unread message

Larry Prikockis

unread,
Jun 5, 2024, 7:03:57 AM6/5/24
to Keycloak User
Hi- I'm following the instructions here: https://www.keycloak.org/server/containers to build a keycloak docker image with a couple extra packages I need for my implementation.

However, the "RUN dnf install ...." command is timing out:

> [ubi-micro-build 3/3] RUN dnf install --installroot /mnt/rootfs curl --releasever 9 --setopt install_weak_deps=false --nodocs -y &&     dnf --installroot /mnt/rootfs clean all &&     rpm --root /mnt/rootfs -e --nodeps setup:                                                                                                                                                                                                  
0.343 Updating Subscription Management repositories.                                                                                                                                                              
0.343 Unable to read consumer identity
0.344
0.344 This system is not registered with an entitlement server. You can use subscription-manager to register.
0.344
50.39 Red Hat Universal Base Image 9 (RPMs) - BaseOS  0.0  B/s |   0  B     00:50    
50.39 Errors during downloading metadata for repository 'ubi-9-baseos-rpms':
50.39   - Curl error (28): Timeout was reached for https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/baseos/os/repodata/a27718cc28ec6d71432e0ef3e6da544b7f9d93f6bb7d0a55aacd592d03144b70-comps.xml [Failed t 
....etc

Any ideas on what I'm doing wrong?

Alexander Schwartz

unread,
Jun 5, 2024, 7:40:14 AM6/5/24
to Larry Prikockis, Keycloak User
Hi Larry,

when I open the URL in the error message in my browser I can access the content. 

So I assume it was a temporary network issue at the time you ran it, the network settings in the environment where you're running the build don't allow you access the internet. 

Best,
Alexander

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/b31456d7-a51b-409f-b0ec-3906d8b7d080n%40googlegroups.com.


--

Alexander Schwartz, RHCE

He/Him

Principal Software Engineer, Keycloak Maintainer

Red Hat - Germany remote

asch...@redhat.com   

Red Hat GmbH, Registered seat: Werner von Siemens Ring 12, D-85630 Grasbrunn, Germany 
Commercial register: Amtsgericht Muenchen/Munich, HRB 153243,
Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross
Reply all
Reply to author
Forward
0 new messages