settings.test.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. const Path = require('path')
  2. module.exports = {
  3. path: {
  4. // eslint-disable-next-line no-path-concat
  5. compilesDir: Path.resolve(__dirname + '/../../../compiles'),
  6. // eslint-disable-next-line no-path-concat
  7. clsiCacheDir: Path.resolve(__dirname + '/../../../cache'),
  8. // synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id)
  9. synctexBaseDir() {
  10. return '/compile'
  11. },
  12. sandboxedCompilesHostDir: process.env.SANDBOXED_COMPILES_HOST_DIR,
  13. },
  14. clsi: {
  15. // strace: true
  16. // archive_logs: true
  17. commandRunner: 'docker-runner-sharelatex',
  18. latexmkCommandPrefix: ['/usr/bin/time', '-v'], // on Linux
  19. docker: {
  20. image: process.env.TEXLIVE_IMAGE || 'texlive-full:2017.1-opt',
  21. env: {
  22. PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2017/bin/x86_64-linux/',
  23. HOME: '/tmp',
  24. },
  25. modem: {
  26. socketPath: false,
  27. },
  28. user: process.env.SIBLING_CONTAINER_USER || '111',
  29. },
  30. },
  31. internal: {
  32. clsi: {
  33. port: 3013,
  34. load_port: 3044,
  35. host: 'localhost',
  36. },
  37. },
  38. apis: {
  39. clsi: {
  40. url: 'http://localhost:3013',
  41. },
  42. },
  43. smokeTest: false,
  44. project_cache_length_ms: 1000 * 60 * 60 * 24,
  45. parallelFileDownloads: 1,
  46. }