openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
133 stars 184 forks source link

Container build can't find base container #1028

Open vladiskuz opened 3 weeks ago

vladiskuz commented 3 weeks ago

I have my instance of OBS and I'm trying to build containers. I have base container that built in the same repo. Then I have the following container

<?xml version="1.0" encoding="utf-8"?>
<image schemaversion="7.4" name="os">
  <description type="system">
    <author>Me</author>
    <contact>me@gmail.com</contact>
    <specification>OS image container</specification>
    <license>MIT</license>
  </description>
  <preferences>
    <type image="docker" derived_from="obsrepositories:/this/is/my-base#latest">
      <containerconfig
        name="this/is/my-os" tag="latest"
        maintainer="Me">
        <subcommand execute="kolla_start"/>
      </containerconfig>
    </type>
    <version>1.0.0</version>
    <packagemanager>dnf</packagemanager>
    <rpm-excludedocs>true</rpm-excludedocs>
  </preferences>
  <repository>
    <source path="obsrepositories:/"/>
  </repository>
  <packages type="image">
    <package name="cronie"/>
  </packages>
</image>

In web UI I can see -- nothing provides container:this/is/my-base:latest I can see nothing in my logs but I can pull this/is/my-base container Looks like this is a bug

mlschroe commented 3 weeks ago

(This may be a bug, but it's unlikely that it is in obs-build.)

You said that you can pull the base container, how do you do that? Can you please paste the last lines of the log file of the base container build done in the same project?

mlschroe commented 3 weeks ago

The base container build should also have produced a <something>.containerinfo file. What are the contents of this file?