openSUSE / obs-build

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

Feature Request: Detect Dockerfiles generated by a service #927

Open SchoolGuy opened 1 year ago

SchoolGuy commented 1 year ago

Currently, only a file named Dockerfile appears to be detected when executing osc build. However when using a source service like download_url the file will have a prefix and thus leads to the error message:

┬─[enno@tower:~/S/E/h/cobbler-docker-testing]─[17:32:58]
╰─>$ osc build
Missing argument: build description (for example a spec, dsc or kiwi file)
Vogtinator commented 1 year ago

How did you run the service? osc build does not run services before looking for the build description, so you'll have to do osc service ra manually.

Vogtinator commented 1 year ago

Looks like osc service run creates the files with a prefix, which won't work in this context. Should probably be documented.

SchoolGuy commented 1 year ago

Tried your comment. Works like a charm now.