Skip to content

Containerfile: minor simplications#3099

Merged
gastmaier merged 3 commits intocifrom
ci-container-versioning
Jan 29, 2026
Merged

Containerfile: minor simplications#3099
gastmaier merged 3 commits intocifrom
ci-container-versioning

Conversation

@gastmaier
Copy link
Copy Markdown
Collaborator

@gastmaier gastmaier commented Jan 29, 2026

PR Description

I standardized the container version as a environment variable called version (couldn't come up with a better name, unfortunately.)
this tag is read while building the container during the ci/cd to auto-tag.
Another change is to default the container to the shell, since the entry-point can be easily injected in the systemd file and most users will want to use the shell anyway.

For the docs, just tag as latest, so user can just docker run -it adi/linux, providing less friction (does not deprecate container-run.sh , that script still provides nice aliases, even a way to mount ai with the --mount-ai).

runner_labels if not set, defaults to repo-only, then always suffixed with version, so in practice $version,repo-only

The main motivation for the changes is to not have to touch the systemd files on tag bumps, since the version context is in the container now (overwriting name_label,runner_labels don't overwrite the 'implicit' version, because it is not implicit anymore).

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

Use simpler version enviroment variable, to standarize container
versioning internally. Set entrypoint to bash by default, since is the
most desired behaviour when running locally, being entrypoint.sh only
useful on systemd files, which can set the `--entrypoint` anyway.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
The painpoint of the runner name now resolves internally, and the
entrypoint defaults to bash (most users usage), then append to the
systemd run command.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Just use podman, with the first with '# or docker, ...' comment, it
should be enough for most users.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
@gastmaier gastmaier merged commit 5c60ddf into ci Jan 29, 2026
3 checks passed
@gastmaier gastmaier deleted the ci-container-versioning branch January 29, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants