-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFulgensfile.js
132 lines (124 loc) · 3.87 KB
/
Fulgensfile.js
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
module.exports = {
config: {
SchemaVersion: "1.0.0",
Name: "linky",
Vagrant: {
Box: "ubuntu/xenial64",
Install: "maven openjdk-8-jdk-headless docker.io nodejs"
}
},
versions: {
lucenebuild: {
TestedWith: "3-jdk-11",
},
lucene: {
TestedWith: "11",
},
cdb: {
Docker: "3"
},
linky: {
TestedWith: "10 & 11 & 14"
}
},
software: {
lucenebuild: {
Source: "mvn",
Mvn: {
Goal: 'package assembly:single'
},
Git: "https://github.com/rnewson/couchdb-lucene",
Dir: "$$TMP$$/lucene",
Artifact: "$$TMP$$/lucene-bin/bin/run",
BeforeBuild: [
"sed -i.bak 's/allowLeadingWildcard=false/allowLeadingWildcard=true/g' src/main/resources/couchdb-lucene.ini",
"sed -i.bak 's/host=localhost/host=0.0.0.0/g' src/main/resources/couchdb-lucene.ini"
],
AfterBuild: [
"mv -f src/main/resources/couchdb-lucene.ini.bak src/main/resources/couchdb-lucene.ini",
"mkdir -p \"$BASE_PWD/$$TMP$$/lucene-bin\"",
"tar -xvf target/*.tar.gz --strip 1 -C \"$BASE_PWD/$$TMP$$/lucene-bin\""
],
luceneConfig: {
Name: "couchdb-lucene.ini",
Content: [
{ Regexp: "^allowLeadingWildcard=", Line: "allowLeadingWildcard=true" },
{ Regexp: "^host=", Line: "host=0.0.0.0" },
{
Source: "cdb",
Regexp: "^url.*=",
Line: "url=http://$$VALUE$$:5984/"
}
],
LoadDefaultContent: "https://raw.githubusercontent.com/rnewson/couchdb-lucene/master/src/main/resources/couchdb-lucene.ini",
AttachIntoDocker: "/home/node/exec_env/localrun/lucene-bin/conf"
}
},
lucene: {
Source: "java",
DockerImage: "adoptopenjdk/openjdk11-openj9",
DockerMemory: "150M",
Start: "lucenebuild",
ExposedPort: 5985
},
cdb: {
Source: "couchdb",
DockerMemory: "200M",
CouchDB: [
{
Schema: "linky",
Create: [
"build/couchdb/linky/_design-asyncWait-curl.json",
"build/couchdb/linky/_design-debug-curl.json",
"build/couchdb/linky/_design-feedUpdates-curl.json",
"build/couchdb/linky/_design-hierarchy-curl.json",
"build/couchdb/linky/_design-links-curl.json",
"build/couchdb/linky/_design-lucene-curl.json",
"build/couchdb/linky/_design-users-curl.json",
"build/couchdb/linky/_design-visitors-curl.json"
]
}, {
Schema: "linky_archive",
Create: [ "build/couchdb/linky-archive/_design-archives-curl.json" ]
}
],
couchconfig: {
Name: "local.ini",
Content: [
{ Line: "[httpd_global_handlers]" },
{
Source: "lucene",
Line: "_fti={couch_httpd_proxy, handle_proxy_req, <<\"http://$$VALUE$$:5985\">>}"
}
],
AttachIntoDocker: "/usr/local/etc/couchdb/local.d"
}
},
linky: {
Source: "node",
DockerMemory: "200M",
Start: "server/",
Node: {
Param: "-r babel-register -r babel-polyfill --trace-warnings"
},
ExposedPort: 8080,
configFile: {
Name: "linky.properties",
Content: [
{ Regexp: "archive.protocol=", Line: "archive.protocol=" },
{ Regexp: "archive.domain=", Line: "archive.domain=" },
{ Source:"cdb", Regexp: "db.host=", Line: "db.host=$$VALUE$$" }
],
LoadDefaultContent: "server/util/linky_default.properties",
AttachAsEnvVar: ["LINKY_PROPERTIES", "$$SELF_NAME$$"]
},
EnvVars: [
{ Name: "NODE_ENV", Value: "development" },
{ Name: "PROXY_PORT", Value: "8080" },
{ Name: "PROXY_BIND", Value: "0.0.0.0" },
{ Name: "PORT", Value: "8080" },
{ Name: "BIND", Value: "0.0.0.0" }
]
}
}
}