Nature40 / pimod

Reconfigure Raspberry Pi images with an easy, Docker-like configuration file
GNU General Public License v3.0
127 stars 19 forks source link

Provide an option for Pifile inheritance #7

Closed jonashoechst closed 5 years ago

jonashoechst commented 5 years ago

As an addition to the FROM definition I suggest to introduce an PARENT statement.

When a Pifile stars with an PARENT statement, pimod first creates the image defined in the parent Pifile and afterwards continues executing the Pifile.

gh0st42 commented 5 years ago

Mmmh... something smells like docker ;) Isn't it enough to reference your previously generated image in FROM? Otherwise one could just source another Pifile in the beginning. Should work, shouldn't it? If intermediate images are a thing then setting a temporary working directory for image generation might also be a good idea..

jonashoechst commented 5 years ago

Actually either using a Base Image with FROM or source of another Pifile are two options that work just fine for me. In my opinion this possibilities should be documented.