Git Product home page Git Product logo

Comments (11)

Djelibeybi avatar Djelibeybi commented on May 10, 2024 1

This is being tracked as bug 31093269 internally. Thanks for the report.

from container-images.

jaredculp avatar jaredculp commented on May 10, 2024
bash-4.4# ls /etc/yum.repos.d/                                                              
oracle-linux-ol8.repo

from container-images.

jaredculp avatar jaredculp commented on May 10, 2024
bash-4.4# head -n6 /etc/yum.repos.d/oracle-linux-ol8.repo 
[ol8_baseos_latest]
name=Oracle Linux 8 BaseOS Latest ($basearch)
baseurl=https://yum$ociregion.oracle.com/repo/OracleLinux/OL8/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

from container-images.

Djelibeybi avatar Djelibeybi commented on May 10, 2024

I am trying to install a rpm from a url using the 8-slim image. Microdnf apparently doesn't support this. I am able to install yum, but then all yum commands fail.

I would recommend using the oraclelinux:8 image if you want to install a third-party RPM (as it includes the full DNF client). However, this should work, so let's debug. Do you perhaps need to set a proxy to access yum.oracle.com from this machine? If so, you should pass a build-time environment variable to set https_proxy to the right value.

from container-images.

jaredculp avatar jaredculp commented on May 10, 2024

I don't think that's it because I can run the 8 image without the https_proxy.

from container-images.

Djelibeybi avatar Djelibeybi commented on May 10, 2024

Can you check the content of /etc/yum/vars/ociregion on the 8-slim image (after installing the full yum client)? It should either be empty (if you're not on OCI) or contain a valid OCI region, e.g. -phx or -syd.

from container-images.

jaredculp avatar jaredculp commented on May 10, 2024

The file doesn't even exist.

from container-images.

jaredculp avatar jaredculp commented on May 10, 2024

touching this file makes it work! Is this a bug or a necessary step?

from container-images.

Djelibeybi avatar Djelibeybi commented on May 10, 2024

It's half a bug. :) Let me review this with engineering and get back to you. Glad we have a workaround for now though.

from container-images.

jaredculp avatar jaredculp commented on May 10, 2024

Also out of curiosity is there a way to get this to work with dnf? Based on the docs I've read, dnf relies on either a [repository] section in /etc/dnf/dnf.conf or uses /etc/yum.repos.d. The latter isn't present if I don't install yum, and I can't figure out what I need to do to add ol8_baseos_latest as a repo to dnf.

from container-images.

Djelibeybi avatar Djelibeybi commented on May 10, 2024

Sure, you can add something like this to /etc/dnf/dnf.conf:

[ol8_baseos_latest]
name=BaseOS
baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64

[ol8_appstream_latest]
name=AppStream
baseurl=http://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64

Essentially, it's identical to the layout of the /etc/yum.repos.d/oracle-linux-ol8.repo file, though you'd still need to move that one out of the way.

from container-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.