settings.test.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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:
  34. '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2017/bin/x86_64-linux/',
  35. HOME: '/tmp',
  36. },
  37. modem: {
  38. socketPath: false,
  39. },
  40. user: process.env.SIBLING_CONTAINER_USER || '111',
  41. },
  42. },
  43. internal: {
  44. clsi: {
  45. port: 3013,
  46. load_port: 3044,
  47. host: 'localhost',
  48. },
  49. },
  50. apis: {
  51. clsi: {
  52. url: 'http://localhost:3013',
  53. },
  54. },
  55. smokeTest: false,
  56. project_cache_length_ms: 1000 * 60 * 60 * 24,
  57. parallelFileDownloads: 1,
  58. }