Skip to content

Commit c19eafd

Browse files
authored
Merge pull request #299 from lcnetdev/test
Test
2 parents 32debc4 + 1b4d6ae commit c19eafd

37 files changed

Lines changed: 626211 additions & 128 deletions

.debug.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
TXL_LOGLEVEL=DEBUG
2+
TXL_APP_MODE=development
3+
REMOTE_PDB_HOST=0.0.0.0
4+
REMOTE_PDB_PORT=4444

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
ext/arabic_rom/data
2+
.venv
3+
data

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ tags.temp
136136

137137

138138
# Local
139-
ext/arabic_rom/data
139+
/ext/arabic_rom/data
140140
scriptshifter/data/*.db
141141
!.keep
142142
VERSION
143143
.~lock.*
144+
/data

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
FROM lcnetdev/scriptshifter-base:latest
2-
ARG WORKROOT "/usr/local/scriptshifter/src"
2+
ENV WORKROOT="/usr/local/scriptshifter/src"
33

44
# Copy core application files.
55
WORKDIR ${WORKROOT}
66
COPY VERSION entrypoint.sh sscli uwsgi.ini wsgi.py ./
77
COPY scriptshifter ./scriptshifter/
88
COPY test ./test/
9-
COPY requirements.txt ./
10-
RUN pip install --no-cache-dir -r requirements.txt
119

12-
ENV HF_DATASETS_CACHE /data/hf/datasets
10+
#ENV HF_DATASETS_CACHE="/data/hf/datasets"
1311
RUN ./sscli admin init-db
1412

1513
RUN chmod +x ./entrypoint.sh
1614
#RUN chown -R www:www ${WORKROOT} .
1715

1816
EXPOSE 8000
1917

18+
# For debugging WSGI sessions.
19+
#RUN pip install --break-system-packages remote-pdb
20+
#ENV PYTHONBREAKPOINT=remote_pdb.set_trace
21+
2022
ENTRYPOINT ["./entrypoint.sh"]

deps.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ else
1010
fi
1111

1212
# Preload Thai model.
13-
python -c 'from esupar import load; load("th")'
13+
#python -c 'from esupar import load; load("th")'
1414

1515
host=${TXL_WEBAPP_HOST:-"0.0.0.0"}
1616
port=${TXL_WEBAPP_PORT:-"8000"}

0 commit comments

Comments
 (0)