diff --git a/services/filestore/.dockerignore b/services/filestore/.dockerignore new file mode 100644 index 0000000000..a99835353f --- /dev/null +++ b/services/filestore/.dockerignore @@ -0,0 +1,3 @@ +node_modules/* +app.js +**/js/* diff --git a/services/filestore/docker-compose.ci.yml b/services/filestore/docker-compose.ci.yml new file mode 100644 index 0000000000..e979b7d4c5 --- /dev/null +++ b/services/filestore/docker-compose.ci.yml @@ -0,0 +1,31 @@ +# This file was auto-generated, do not edit it directly. +# Instead run bin/update_build_scripts from +# https://github.com/sharelatex/sharelatex-dev-environment +# Version: 1.1.1 + +version: "2" + +services: + test_unit: + image: quay.io/sharelatex/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER + user: node + command: npm run test:unit:_run + + test_acceptance: + build: . + image: quay.io/sharelatex/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER + environment: + REDIS_HOST: redis + MONGO_HOST: mongo + POSTGRES_HOST: postgres + depends_on: + - mongo + - redis + user: node + command: npm run test:acceptance:_run + redis: + image: redis + + mongo: + image: mongo:3.4 + diff --git a/services/filestore/docker-compose.yml b/services/filestore/docker-compose.yml new file mode 100644 index 0000000000..6d11493b66 --- /dev/null +++ b/services/filestore/docker-compose.yml @@ -0,0 +1,39 @@ +# This file was auto-generated, do not edit it directly. +# Instead run bin/update_build_scripts from +# https://github.com/sharelatex/sharelatex-dev-environment +# Version: 1.1.1 + +version: "2" + +services: + test_unit: + image: node:6.9.5 + volumes: + - .:/app + working_dir: /app + environment: + MOCHA_GREP: ${MOCHA_GREP} + command: npm run test:unit + user: node + + test_acceptance: + build: . + volumes: + - .:/app + working_dir: /app + environment: + REDIS_HOST: redis + MONGO_HOST: mongo + POSTGRES_HOST: postgres + MOCHA_GREP: ${MOCHA_GREP} + user: node + depends_on: + - mongo + - redis + command: npm run test:acceptance + redis: + image: redis + + mongo: + image: mongo:3.4 + diff --git a/services/filestore/nodemon.json b/services/filestore/nodemon.json new file mode 100644 index 0000000000..98db38d71b --- /dev/null +++ b/services/filestore/nodemon.json @@ -0,0 +1,19 @@ +{ + "ignore": [ + ".git", + "node_modules/" + ], + "verbose": true, + "legacyWatch": true, + "execMap": { + "js": "npm run start" + }, + + "watch": [ + "app/coffee/", + "app.coffee", + "config/" + ], + "ext": "coffee" + +} diff --git a/services/filestore/package-lock.json b/services/filestore/package-lock.json new file mode 100644 index 0000000000..e69de29bb2