Skip to content

Configuration

Jarno Elovirta edited this page Aug 17, 2019 · 3 revisions

Kuhnuri environment is configured with config.ts

{
  // AWS region for the environment
  region: "us-east-1",
  // AWS account that will the environment will run under
  account: "AKIAXXXXXXXXXXXXXXXX",
  // List of transtypes and workers that implement them
  transtypes: {
    html2pdf: ["html2pdf", "weasyprint"]
  },
  // List of workers
  workers: [
    {
      // Transtypes that worker supports
      transtypes: ["fo", "html2pdf", "docx"],
      // Worker Docker image
      image: "jelovirt/kuhnuri_batch_worker:3.2",
      // List of DITA-OT plugins that are installed to worker
      plugins: [
        "com.elovirta.fo",
        "com.elovirta.ooxml",
        "https://github.com/jelovirt/com.elovirta.html2pdf/archive/master.zip"
      ]
    }
  ],
  // List of environments that are created
  environments: [
    {
      // Type of Batch compute environment, either SPOT or EC2
      type: "SPOT"
    }
  ]
}
Clone this wiki locally