-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'stage' into production
- Loading branch information
Showing
78 changed files
with
5,727 additions
and
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**/node_modules | ||
bundler |
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 @@ | ||
**/node_modules |
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,13 @@ | ||
# Copy this file .env.dist to .env | ||
ENVIRONMENT=local | ||
|
||
CLIPS_BUCKET_NAME=common-voice-clips | ||
DATASETS_BUNDLER_BUCKET_NAME=common-voice-bundler | ||
|
||
STORAGE_LOCAL_DEVELOPMENT_ENDPOINT=http://storage:8080 | ||
|
||
DB_HOST=db | ||
DB_PORT=3306 | ||
DB_USER=voicecommons | ||
DB_PASSWORD=voicecommons | ||
DB_DATABASE=voiceweb |
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,6 @@ | ||
dist | ||
js | ||
*.tsv | ||
.env | ||
*.txt | ||
cv-corpus* |
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,32 @@ | ||
FROM node:18-bullseye | ||
|
||
RUN apt-get update && \ | ||
apt-get install python3-pip vim -y && \ | ||
pip3 install --upgrade setuptools | ||
|
||
USER node | ||
|
||
RUN mkdir -p /home/node/code && \ | ||
cd /home/node && \ | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y && \ | ||
git clone --depth 1 -b release-v1.0.1 https://github.com/common-voice/CorporaCreator.git && \ | ||
git clone --depth 1 -b release-v1.0.0 https://github.com/common-voice/mp3-duration-reporter.git && \ | ||
cd CorporaCreator && \ | ||
python3 setup.py install --user && \ | ||
cd /home/node/mp3-duration-reporter && \ | ||
/home/node/.cargo/bin/cargo install --path . | ||
|
||
ENV PATH "$PATH:/home/node/.local/bin/:/home/node/.cargo/bin" | ||
|
||
WORKDIR /home/node/code | ||
|
||
COPY --chown=node ./package.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
COPY --chown=node ./ ./ | ||
|
||
RUN npm run build | ||
|
||
CMD ["npm", "run", "start"] |
Oops, something went wrong.