Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
docker image for kimai2 #284
FYI, created a Docker container for kimai2 which is available at https://hub.docker.com/r/dysonsphere/kimai2/
Used php7.2-apache as base image everything is working as expected. Nice job on the tool!
I would like to keep the docker container updated with the latest releases, that can be done by manually updating the code using git inside the container and republishing it but an automated way would be even better.
Is there any automated build pipeline this project is using where I can hook my docker container so that it gets updated automatically with every release?
If there is no such build pipeline in place yet, are the core devs interested to have one?
PS: We love this tool during the evaluation phase and have decided to bundle it into one of our services packages.
Hi @dysonspherelab !
Nice, thanks! Could you submit a PR with the Dockerfile (and probably a short documentation chapter about how to use it) as well, so people can use it out-of-the-box?
Regarding the build pipeline, there is none yet. There is so much other stuff, which I wanted to tackle before that part. I could probably add a web hook to a service if that would help?
Could you share who is "we" and what is that "service package" you talk about?
Hey @kevinpapst we are Dysonspherelab :) it is a cloud technology focused company and we are offering a managed devops service which bundles few software packages in which we have decided to use kimai2 for the open source time tracking solution.
I have provided very simple documentation in my docker hub read me. It goes like this:
Run the app container
Now install all dependencies for Kimai 2:
sudo -u www-data composer install --no-dev --optimize-autoloader
bin/console doctrine:migrations:version --add --all
sudo -u www-data bin/console cache:warmup --env=prod
bin/console kimai:create-user username firstname.lastname@example.org ROLE_SUPER_ADMIN
For available roles, please refer to the user documentation (https://github.com/kevinpapst/kimai2/blob/master/var/docs/users.md).
Most of it is just a simple copy paste fromyour read me :)
I would open a new PR for dockerizing the future builds, thanks
I couldn't get the one from @dysonspherelab running. But created one myself yesterday based on the php:7.2-apache Image.
@Haidy777 the docker image is working. Please tell more about the error you were facing while running the container?
@Haidy777 Let me walk you through the process I used to build this docker image. Also, your login will work once you will connect it to a mysql service, that was the confusion I mentioned earlier.
If you follow above steps exactly as it is you can get a docker container similar to mine.
So, if you want to use my container docker pull and run it, also run a mysql container, and start creating new users to access those.
Let me know if you need more info regarding this, thanks
Here's my take on it (with Nginx and FPM): https://github.com/felixhummel/kimai-in-docker/tree/kimai2
Let me know if you'd like to integrate this here.
referenced this issue
Nov 6, 2018
As Kimai does ship a Dockerfile now, I closed this issue.