Giter Site home page Giter Site logo

Use Dockerfile ARGs about kubler HOT 4 OPEN

berney avatar berney commented on July 20, 2024
Use Dockerfile ARGs

from kubler.

Comments (4)

r7l avatar r7l commented on July 20, 2024

I am not against this change but i'd guess this change would break any existing image as you would have to replace all the template files with a Dockerfile. I actually prefer the current name as it makes clear that it's not a simple Dockerfile on it's own but instead it's a template that will be used and maybe even altered by Kubler.

from kubler.

berney avatar berney commented on July 20, 2024

Thanks for the comments r71.

I working on #215 and was thinking it could simplify kubler, by leveraging docker features.

Right now I mostly see IMAGE_PARENT and MAINTAINER like the figlet example in the OP. The MAINTAINER seems to be just a way to centralise it, in your central kubler.conf you can update this, and every image will get the update.

The IMAGE_PARENT is important as it is used to define the dependency graph hierarchy, if build.conf didn't declare it and it was just hardcoded in the FROM directives then kubler wouldn't understand the image dependency graph, couldn't order the builds, and dependency images would be missing due to not being built yet.

from kubler.

r7l avatar r7l commented on July 20, 2024

Maybe i got your idea wrong. What i meant is that currently every image has a file called Dockerfile.template like you've said and the .template file extension is a nice way to not mix this template file with a real Dockerfile.

I don't mind changing these variables if this helps. But it's up to @edannenberg anyways.

from kubler.

berney avatar berney commented on July 20, 2024

You understood me right. I was thinking to effectively git mv Dockerfile.template Dockerfile, and to add the ARG IMAGE_PARENT etc to the dockerfile, and then in the docker build commands add the --build-arg IMAGE_PARENT="${IMAGE_PARENT}" sort of thing.

The way Kubler is right now, before a build, you have the Dockerfile.template, and after a build you have the generated Dockerfile with the concrete values, and the rootfs.tar, together which is enough to feed to native docker to (re)create the image.

from kubler.

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.