Replies: 2 comments 4 replies
-
I realized that if you ship multiple images like so: name: shadems
images: # image versions (tags) to be built
0.5.0:
dockerfile: Dockerfile
0.4.0: # key is version/tag
dockerfile: Dockerfile.v040 ...then you need an obvious mechanism to select a default image, when the recipe does not specify a version number. The obvious suggestion is to select the highest version. (Comparing semvers properly: https://stackoverflow.com/questions/11887762/how-do-i-compare-version-numbers-in-python/21065570) Then, in development I often find myself building "test" images with pre-release or branch versions of packages, we don't want those ever selected by default. I have added a images: # image versions (tags) to be built
0.6.test:
dockerfile: Dockerfile.v06test
production: false
0.5.0:
dockerfile: Dockerfile
0.4.0: # key is version/tag
dockerfile: Dockerfile.v040 The default image version should then be the highest-numbered production version. NB: need to modify |
Beta Was this translation helpful? Give feedback.
-
Why load all the configs here, and not on the fly as they are needed? |
Beta Was this translation helpful? Give feedback.
-
Continuing the discussion from #637.
@SpheMakh I pushed some initial revisions to configuratt, see 2021dc5. Quoting the commit message:
~/.config/stimela.conf
), and "stimela config" subcommandPlease take a look before too long so that our thinking stays in sync. Note that this pretty much implements #692, albeit only for docker for now. In particular,
stimela images
,build
andpush
now works with the new config.Beta Was this translation helpful? Give feedback.
All reactions