-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make pip package update independent of docker build
- Loading branch information
1 parent
4efd48b
commit 75c8ca7
Showing
3 changed files
with
40 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# Ensure all stdout and stderr are sent to the Docker logs | ||
exec > >(tee -i /proc/1/fd/1) 2>&1 | ||
|
||
# Check if SYNC_USER1 is set | ||
if [ -z "$SYNC_USER1" ]; then | ||
echo "ERROR: SYNC_USER1 environment variable is not set. Exiting." | ||
exit 1 | ||
fi | ||
|
||
# Update the Anki sync server package | ||
echo "Updating Anki sync server package..." | ||
pip install --upgrade anki | ||
|
||
# Start the Anki sync server | ||
echo "Starting Anki sync server..." | ||
exec python -m anki.syncserver |