[misc] move the sqlite database into a db/ directory

This commit is contained in:
Jakob Ackermann 2020-02-19 12:23:20 +01:00 committed by Jakob Ackermann
parent 5b1656b884
commit 3309adf2ad
5 changed files with 9 additions and 5 deletions

View file

@ -5,3 +5,4 @@ gitrev
.npm
.nvmrc
nodemon.json
db/

View file

@ -24,5 +24,7 @@ COPY . /app
FROM base
COPY --from=app /app /app
RUN mkdir -p db \
&& chown node:node db
CMD ["node", "--expose-gc", "app.js"]

View file

@ -1,5 +1,6 @@
clsi
--acceptance-creds=None
--data-dirs=db
--dependencies=
--docker-repos=gcr.io/overleaf-ops
--env-add=

View file

@ -9,7 +9,7 @@ module.exports = {
username: 'clsi',
dialect: 'sqlite',
storage:
process.env.SQLITE_PATH || Path.resolve(__dirname + '/../db.sqlite'),
process.env.SQLITE_PATH || Path.resolve(__dirname + '/../db/db.sqlite'),
pool: {
max: 1,
min: 1
@ -65,8 +65,7 @@ if (process.env.DOCKER_RUNNER) {
dockerRunner: process.env.DOCKER_RUNNER === 'true',
docker: {
image:
process.env.TEXLIVE_IMAGE ||
'quay.io/sharelatex/texlive-full:2017.1',
process.env.TEXLIVE_IMAGE || 'quay.io/sharelatex/texlive-full:2017.1',
env: {
HOME: '/tmp'
},
@ -93,8 +92,7 @@ if (process.env.DOCKER_RUNNER) {
module.exports.path.synctexBaseDir = () => '/compile'
module.exports.path.sandboxedCompilesHostDir =
process.env.COMPILES_HOST_DIR
module.exports.path.sandboxedCompilesHostDir = process.env.COMPILES_HOST_DIR
module.exports.path.synctexBinHostPath = process.env.SYNCTEX_BIN_HOST_PATH
}

2
services/clsi/db/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore