SamR1 / FitTrackee

Self-hosted outdoor activity tracker :bicyclist:
https://samr1.github.io/FitTrackee
GNU Affero General Public License v3.0
719 stars 44 forks source link

Docker's Container on docker hub #126

Open szala1981 opened 2 years ago

szala1981 commented 2 years ago

I am a Linux novice and I cannot install fitrackee following the instructions - I have error:

root@debian:~/FitTrackee# make docker-build docker-run docker-init
make: docker-compose: No such file or directory
make: *** [Makefile:28: docker-build] Error 127

Is it possible to create a container on docker hub? - this is the easiest way to install for many users. Thanks!

SamR1 commented 2 years ago

Hi,

Sorry for the delay.

Can you check if docker-compose is correctly installed by displaying its version?

$ docker-compose -v
Docker Compose version 2.2.2

Note that the docker files present in this repo are just for evaluation. Another repository exists with sample files for custom configuration.

I can look how to create container on Docker Hub, but I have a basic knowledge of docker since I'm not using it for development or deployment.

d-rk commented 2 years ago

@SamR1 are you interested in a PR with a github action workflow to deploy to docker hub automatically. I could help with that.

SamR1 commented 2 years ago

Hi,

Thanks for your help offer :) No problem for a PR.

albertodiazsaez commented 2 years ago

Hi.

I'm also interested on this because I use FitTrackee on a daily for my bike-commuting, and updating using docker is tedious in it's current state (I understand is for developing purposes and not for "production" use).

How is this doing? I'm not an expert in docker, but I have a bit of experience and if help is needed to create the DockerHub and docker-compose for a "production-ready" deployment, I think I can help.

titilambert commented 2 years ago

@SamR1 it should be pretty straight forward to get it. You just need to use that: https://github.com/marketplace/actions/build-and-push-docker-images for both server (python) and client(javascript) images. Let me know if you need help. But since, I guess you want to be the owner of the dockerhub images, you should add by yourself those github actions

SamR1 commented 2 years ago

Hi,

Thanks for the link.

I don't think if it's necessary to create a Javascript image, the Python application already includes js assets.

Since I have no experience deploying with Docker images in production, if you or anyone else wants to start a PR, it would be great :).

I have just created a repository on Docker Hub.

If you have any questions, you can reach me on matrix. But FYI, at the moment I don't have much free time to work on FitTrackee :/. So, sorry in advance if it takes me a while to reply.

DavidHenryThoreau commented 11 months ago

I've read this (https://dockerlabs.collabnix.com/intermediate/workshop/DockerCompose/push_command.html) and make PR

DavidHenryThoreau commented 11 months ago

Or even better https://docs.docker.com/docker-hub/builds/link-source/

DavidHenryThoreau commented 6 months ago

I've set workflow, after merging into master it generates images as you can see : https://github.com/DavidHenryThoreau/FitTrackee/pkgs/container/fittrackee

Commit is here : https://github.com/DavidHenryThoreau/FitTrackee/commit/0f58f34dfdb95f3cddd0dbb87d163eff5b0bbe2f?diff=unified&w=0

jnaav commented 3 months ago

I've set workflow, after merging into master it generates images as you can see : https://github.com/DavidHenryThoreau/FitTrackee/pkgs/container/fittrackee

Commit is here : DavidHenryThoreau@0f58f34?diff=unified&w=0

So, it is possible to use the ghcr.io/davidhenrythoreau/fittrackee:sha-971cf6a image? But how we should configure it in order to run it? I mean, which ports, env variables, etc should we configure? The same as the docker-compose-dev.yml file?

DavidHenryThoreau commented 2 months ago

I've set workflow, after merging into master it generates images as you can see : https://github.com/DavidHenryThoreau/FitTrackee/pkgs/container/fittrackee Commit is here : DavidHenryThoreau@0f58f34?diff=unified&w=0

So, it is possible to use the ghcr.io/davidhenrythoreau/fittrackee:sha-971cf6a image? But how we should configure it in order to run it? I mean, which ports, env variables, etc should we configure? The same as the docker-compose-dev.yml file?

You can use that docker-compose.yaml file