Changed to docker image that builds from source

This commit is contained in:
bj
2023-09-07 10:52:31 +00:00
parent 4a8c1de794
commit 3d0ec7f2f6
4 changed files with 36 additions and 79 deletions
-15
View File
@@ -1,15 +0,0 @@
#!/bin/sh
# file: download-release.sh
mkdir -p release
cd release
git clone https://github.com/ankicommunity/anki-sync-server
mv anki-sync-server/src/* .
rm -rf anki-sync-server
cd ..
+10 -12
View File
@@ -1,15 +1,13 @@
#!/bin/sh
# file: entrypoint.sh
#!/bin/bash
# if [ -f "/app/data/auth.db" ]; then
# echo "auth.db found"
# else
# echo "Creating new authentication database: auth.db."
# sqlite3 /app/data/auth.db 'CREATE TABLE auth (user VARCHAR PRIMARY KEY, hash VARCHAR)'
# fi
IFS=',' read -ra USER_ARRAY <<< "$SYNC_USERS"
# echo "Updating database schema"
# python3 utils/migrate_user_tables.py
for index in "${!USER_ARRAY[@]}"; do
USER_PASS="${USER_ARRAY[index]}"
export "SYNC_USER$((index+1))=$USER_PASS"
done
# Now start the anki-sync-server
echo "Starting anki sync server..."
exec anki-sync-server
echo "Starting anki-sync-server"
python3 -m ankisyncd