-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-entrypoint.sh
24 lines (23 loc) · 926 Bytes
/
docker-entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
if [ "$1" == "--slideshow" ]; then
echo "Executing the slideshow Python file..."
python3 /app/features/create_slideshow_from_album.py
elif [ "$1" == "--collage" ]; then
echo "Executing the collage Python file..."
python3 /app/features/create_collage_for_specified_person.py
elif [ "$1" == "--image-resize" ]; then
echo "Executing the Resize Image Python file..."
python3 /app/features/resize_all_images.py
elif [ "$1" == "--remove-duplicates" ]; then
echo "Executing the Remove Duplicate Images Python file..."
python3 /app/features/remove_duplicate_images.py
elif [ "$1" == "--detect-duplicates" ]; then
echo "Executing the Detect Duplicate Images Python file..."
python3 /app/features/detect_duplicate_images.py
elif [ "$1" == "--pytest" ]; then
echo "Executing pytest..."
pytest /app/tests
else
echo "No argument provided, executing the main Python file..."
python3 /app/main.py
fi