settings.test.js 1.2 KB

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