Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

docker image: support loading exercise videos, fixtures, nutrition info

Dieter Plaetinck5907f675275c
diff --git a/extras/docker/development/entrypoint.sh b/extras/docker/development/entrypoint.sh
index 3d9683b84..c3ab182e6 100644
--- a/extras/docker/development/entrypoint.sh
+++ b/extras/docker/development/entrypoint.sh
@@ -57,6 +57,26 @@ then
python3 manage.py download-exercise-images
fi
+# Download exercise videos
+if [[ "$DOWNLOAD_EXERCISE_VIDEOS_ON_STARTUP" == "True" ]];
+then
+ echo "Downloading exercise videos"
+ python3 manage.py download-exercise-videos
+fi
+
+# Load online fixtures
+if [[ "$LOAD_ONLINE_FIXTURES_ON_STARTUP" == "True" ]];
+then
+ echo "Loading online fixtures"
+ python3 manage.py load-online-fixtures
+fi
+
+# Sync ingredients
+if [[ "$SYNC_INGREDIENTS_ON_STARTUP" == "True" ]];
+then
+ echo "Syncing ingredients"
+ python3 manage.py sync-ingredients
+fi
# Set the site URL
python3 manage.py set-site-url