Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker file and docker-compose.yaml #650

Closed
wants to merge 89 commits into from

Conversation

DavidHenryThoreau
Copy link

I've simplify Dockerfile in order to reduce size, i've also create a docker-compose.yaml in order to deploy the container.
You can find in .github/workflow/docker.yaml a workflow to build for arm64 and amd64 docker images.

HenryDavidThoreau and others added 30 commits May 2, 2024 13:11
fix link to ruff
Currently translated at 90.7% (49 of 54 strings)

Translation: FitTrackee/FitTrackee Client - Administration
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-administration/cs/
Currently translated at 70.3% (19 of 27 strings)

Translation: FitTrackee/FitTrackee Client - Common
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-common/cs/
Currently translated at 100.0% (19 of 19 strings)

Translation: FitTrackee/FitTrackee Client - Buttons
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-buttons/cs/
Currently translated at 28.5% (4 of 14 strings)

Translation: FitTrackee/FitTrackee Client - Equipments
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-equipments/cs/
Currently translated at 100.0% (40 of 40 strings)

Translation: FitTrackee/FitTrackee API - Emails
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-api-emails/cs/
Currently translated at 7.8% (3 of 38 strings)

Translation: FitTrackee/FitTrackee Client - API messages
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-api-messages/cs/
Currently translated at 98.1% (106 of 108 strings)

Translation: FitTrackee/FitTrackee Client - Workouts
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-workouts/cs/
Currently translated at 92.5% (25 of 27 strings)

Translation: FitTrackee/FitTrackee Client - Common
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-common/cs/
Currently translated at 100.0% (5 of 5 strings)

Translation: FitTrackee/FitTrackee Client - Errors
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-errors/cs/
Currently translated at 100.0% (14 of 14 strings)

Translation: FitTrackee/FitTrackee Client - Equipments
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-equipments/cs/
Currently translated at 100.0% (38 of 38 strings)

Translation: FitTrackee/FitTrackee Client - API messages
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-api-messages/cs/
Currently translated at 45.7% (64 of 140 strings)

Translation: FitTrackee/FitTrackee Client - User
Translate-URL: https://hosted.weblate.org/projects/fittrackee/fittrackee-client-user/cs/
SamR1 and others added 27 commits May 27, 2024 14:36
add missing commit() - linked to SamR1#557
Follow these steps in order to migrate from PostgreSQL 16 to 17 :
- Make a SQL backup
- Install PostgreSQL 17
- Drop the database created by FitTrackee
- Restore the backup

docker exec -i fittrackee-db pg_dumpall \
 -U fittrackee > postgres-backupv16.sql
docker stop fittrackee-db fittrackee
mv fittrackee-db fittrackee-db.16
docker compose pull && docker compose up -d
docker cp postgres-backupv16.sql fittrackee-db:/tmp
docker stop fittrackee
docker exec -it fittrackee-db bash
su - postgres
psql -U fittrackee -c 'DROP DATABASE fittrackee WITH (FORCE);'
psql -U fittraclee -c 'CREATE DATABASE fittrackee;'
psql -U fittrackee < postgres-backupv16.sql
psql -U fittrackee -c 'ALTER USER fittrackee WITH PASSWORD \'fittrackee\';'
docker restart fittrackee-db fittrackee

Test the FitTrackee with PostgreSQL see equipments.
If you're sure all is working as expected you can remove old PostgreSQL data
directory :
rm -rf fittrackee-db.16
PostgreSQL user and group
APP_SETTINGS set to Production
volume for GPX files
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.

4 participants