#293 Idea: Dockerfiles could default to the Fedora branch if the FROM line is missing
Opened 6 years ago by bowlofeggs. Modified 6 years ago

I had a weird bug today where my Dockerfile in my master branch had a FROM line that specified Fedora 26, which caused the container to be built into Fedora 26 tags instead of Rawhide. It was obviously my mistake, but it occurred to me that it might be nice if the build system used my branch to determine which FROM line to use if my Dockerfile doesn't define one, so that it works a little more similarly to RPMs when I do a fedpkg container-build. Since some containers don't base off the base image, it would be important that this only happen when FROM is missing, but it could be nice for containers that do want the base image.

Another idea: If the from line doesn't contain a tag (after a :, like :f26), the tag could be appended. This might work for containers that don't use the base image?


another solution would be to have the build system require that the FROM line be correct (i.e. matching the current branch) before it built content.

Doing this would maintain compatibility with people doing docker build on their local machine and testing things out.

Metadata Update from @dustymabe:
- Issue tagged with: containers

6 years ago

Doing this would maintain compatibility with people doing docker build on their local machine and testing things out.

Good point.

Login to comment on this ticket.

Metadata