Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Add ability to overwrite images used for outputs #213

Merged
merged 1 commit into from
Apr 13, 2018
Merged

Conversation

rn
Copy link
Member

@rn rn commented Apr 12, 2018

We currently hardcode the Linuxkit/mkimage- images. This has the
unfortunate consequence that, if we update the LinuxKit image used
to generate the output, we have to update the Moby tool and then
vendor it back into the LinuxKit repository.

This commit introduces UpdateOutputImages() which allows a client
of the Moby tools package to selectively overwrite the packages
used to generate the outputs.

We keep the full image names (name + tag) intact in the source
to make it easier to update them with 'sed'. From the image names
we generate a map which can be updated with UpdateOutputImages().

See: #211 (comment)

Signed-off-by: Rolf Neugebauer rolf.neugebauer@gmail.com

@rn
Copy link
Member Author

rn commented Apr 12, 2018

@justincormack was this along the line of what you had in mind?

@rn rn force-pushed the mkimage branch 2 times, most recently from 67b5d58 to 02c7755 Compare April 12, 2018 21:39
We currently hardcode the Linuxkit/mkimage- images. This has the
unfortunate consequence that, if we update the LinuxKit image used
to generate the output, we have to update the Moby tool and then
vendor it back into the LinuxKit repository.

This commit introduces UpdateOutputImages() which allows a client
of the Moby tools package to selectively overwrite the packages
used to generate the outputs.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@gmail.com>
@justincormack
Copy link
Collaborator

Yes that looks fine. We can easily change this in future if needed so I think its fine, but it gives the client more control.

@rn rn merged commit 4a569d2 into moby:master Apr 13, 2018
@rn
Copy link
Member Author

rn commented Apr 13, 2018

I think it would be nice to extend this in the future to allow clients to add new output formats too but need to think a bit more about the API.

@justincormack
Copy link
Collaborator

Yes, the main issue is the somewhat messy variation in input formats.

@rn rn deleted the mkimage branch April 13, 2018 17:26
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants