add Dockerfile for CLI image - #33
Conversation
kevinpapst
left a comment
There was a problem hiding this comment.
Nice approach, thanks for starting the discussion 👍
I will post more details later on, just as a starter:
I relaxed the composer requirement in the composer.json, so we can switch to PHP 8.5
And we need to document the usage with docker (native please, not podman).
Are you open to create a PR there to explain it in this file: https://github.com/kimai/www.kimai.org/blob/main/collections/_documentation/cli.md ?
Hi @kevinpapst Yes, I can do that in a separate PR. How does that sound? |
Separate PR created here: kimai/www.kimai.org#768 |
Closes #24
Note that this Docker image requires using the Kimai config on the host machine.
That is, I ran
kimai configfrom the CLI in the container in order to generate the config on the host's filesystem at ~/.config.Running kimai cli with the version flag
$ podman run --rm --network none kimai-cli:local --version Kimai - Remote Console version 2.0.0 2026-09-09 10:27:44 UTC (#21345e3)Running the kimai cli with the list subcommand