settings.test.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. const Path = require('path')
  2. module.exports = {
  3. // Options are passed to Sequelize.
  4. // See http://sequelizejs.com/documentation#usage-options for details
  5. mysql: {
  6. clsi: {
  7. database: 'clsi',
  8. username: 'clsi',
  9. password: null,
  10. dialect: 'sqlite',
  11. storage: Path.resolve('db.sqlite'),
  12. },
  13. },
  14. path: {
  15. // eslint-disable-next-line no-path-concat
  16. compilesDir: Path.resolve(__dirname + '/../../../compiles'),
  17. // eslint-disable-next-line no-path-concat
  18. clsiCacheDir: Path.resolve(__dirname + '/../../../cache'),
  19. // synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id)
  20. synctexBaseDir() {
  21. return '/compile'
  22. },
  23. sandboxedCompilesHostDir: process.env.SANDBOXED_COMPILES_HOST_DIR,
  24. },
  25. clsi: {
  26. // strace: true
  27. // archive_logs: true
  28. commandRunner: 'docker-runner-sharelatex',
  29. latexmkCommandPrefix: ['/usr/bin/time', '-v'], // on Linux
  30. docker: {
  31. image: process.env.TEXLIVE_IMAGE || 'texlive-full:2017.1-opt',
  32. env: {
  33. PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2017/bin/x86_64-linux/',
  34. HOME: '/tmp',
  35. },
  36. modem: {
  37. socketPath: false,
  38. },
  39. user: process.env.SIBLING_CONTAINER_USER || '111',
  40. },
  41. },
  42. internal: {
  43. clsi: {
  44. port: 3013,
  45. load_port: 3044,
  46. host: 'localhost',
  47. },
  48. },
  49. apis: {
  50. clsi: {
  51. url: 'http://localhost:3013',
  52. },
  53. },
  54. smokeTest: false,
  55. project_cache_length_ms: 1000 * 60 * 60 * 24,
  56. parallelFileDownloads: 1,
  57. }