Spaces:
Sleeping
Sleeping
Commit ·
1b06006
1
Parent(s): 4f53243
update: export from starry-refactor 2026-02-21 20:45
Browse files- Dockerfile +2 -1
- docker-entrypoint.sh +9 -0
- example-score/page-00.png +3 -0
- example-score/page-01.png +3 -0
- example-score/page-02.png +3 -0
- example-score/page-03.png +3 -0
- seed-data.sql.gz +2 -2
Dockerfile
CHANGED
|
@@ -123,8 +123,9 @@ COPY --chown=node backend/python-services/ ./backend/python-services/
|
|
| 123 |
# --- Supervisord config ---
|
| 124 |
COPY --chown=node supervisord.conf ./supervisord.conf
|
| 125 |
|
| 126 |
-
# --- Example score seed data
|
| 127 |
COPY --chown=node seed-data.sql.gz ./seed-data.sql.gz
|
|
|
|
| 128 |
|
| 129 |
# --- Config files ---
|
| 130 |
COPY --chown=node docker-entrypoint.sh ./docker-entrypoint.sh
|
|
|
|
| 123 |
# --- Supervisord config ---
|
| 124 |
COPY --chown=node supervisord.conf ./supervisord.conf
|
| 125 |
|
| 126 |
+
# --- Example score seed data + page images ---
|
| 127 |
COPY --chown=node seed-data.sql.gz ./seed-data.sql.gz
|
| 128 |
+
COPY --chown=node example-score/ ./example-score/
|
| 129 |
|
| 130 |
# --- Config files ---
|
| 131 |
COPY --chown=node docker-entrypoint.sh ./docker-entrypoint.sh
|
docker-entrypoint.sh
CHANGED
|
@@ -236,6 +236,15 @@ if [ -f /home/node/app/seed-data.sql.gz ]; then
|
|
| 236 |
/usr/lib/postgresql/15/bin/psql -h 127.0.0.1 -p 5432 -U node -d starry_omr 2>&1 | tail -1
|
| 237 |
fi
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
# ── Start cluster-server (port 3999) ──
|
| 240 |
echo 'Starting cluster-server on port 3999...'
|
| 241 |
cd /home/node/app/backend/cluster-server
|
|
|
|
| 236 |
/usr/lib/postgresql/15/bin/psql -h 127.0.0.1 -p 5432 -U node -d starry_omr 2>&1 | tail -1
|
| 237 |
fi
|
| 238 |
|
| 239 |
+
# Copy example score page images to uploads directory
|
| 240 |
+
if [ -d /home/node/app/example-score ]; then
|
| 241 |
+
echo 'Copying example score images to uploads...'
|
| 242 |
+
for png in /home/node/app/example-score/page-*.png; do
|
| 243 |
+
HASH=$(md5sum "$png" | cut -c1-12)
|
| 244 |
+
cp -n "$png" "/tmp/starry-uploads/pp_c8d853b1_${HASH}.png"
|
| 245 |
+
done
|
| 246 |
+
fi
|
| 247 |
+
|
| 248 |
# ── Start cluster-server (port 3999) ──
|
| 249 |
echo 'Starting cluster-server on port 3999...'
|
| 250 |
cd /home/node/app/backend/cluster-server
|
example-score/page-00.png
ADDED
|
Git LFS Details
|
example-score/page-01.png
ADDED
|
Git LFS Details
|
example-score/page-02.png
ADDED
|
Git LFS Details
|
example-score/page-03.png
ADDED
|
Git LFS Details
|
seed-data.sql.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8345a15a2f524adb47cff223fe66e65a7b9b449054a382022ff50e944b7101c5
|
| 3 |
+
size 4332934
|