-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
74 lines (72 loc) · 1.64 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { Config } from "./lib/types";
const config: Config = {
region: process.env.CDK_DEFAULT_REGION,
account: process.env.CDK_DEFAULT_ACCOUNT,
transtypes: {
html5: [
{
worker: "basic",
params: { transtype: "html5" }
}
],
pdf2: [
{ worker: "custom", params: { transtype: "fo" } },
{ worker: "fop" }
],
fo2pdf: [
{ worker: "custom", params: { transtype: "fo", "pdf.formatter": "ah" } },
{ worker: "ahf" }
],
html2pdf: [
{ worker: "custom", params: { transtype: "html2pdf" } },
{ worker: "weasyprint" }
],
// graphics: [{worker:"graphics"}],
docx: [
{ worker: "graphics" },
{ worker: "custom", params: { transtype: "docx" } }
]
},
workers: {
basic: {
image: "jelovirt/kuhnuri_batch_worker:3.2"
},
custom: {
image: "jelovirt/kuhnuri_batch_worker:3.2",
plugins: [
"com.elovirta.fo",
"com.elovirta.ooxml",
"https://github.com/jelovirt/com.elovirta.html2pdf/archive/master.zip"
]
},
fop: {
image: "jelovirt/kuhnuri_batch_fop_worker:3.2"
},
graphics: {
image: "jelovirt/kuhnuri_batch_graphics_worker:3.2"
},
weasyprint: {
image: "jelovirt/kuhnuri_batch_weasyprint_worker:3.2"
},
ahf: {
image: "jelovirt/kuhnuri_batch_ahf_worker:3.2",
vcpus: 1,
memory: 2048,
assets: [
{
src: "assets/AHFormatter.lic",
dst: "/AHFormatter/etc/AHFormatter.lic"
}
]
}
},
environments: [
{
type: "SPOT"
}
// {
// type: "EC2"
// }
]
};
export default config;