forked from azukiapp/azk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Azkfile.js
56 lines (48 loc) · 1.43 KB
/
Azkfile.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
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Global image to reuse
//addImage('base', { repository: "cevich/empty_base_image" }); // tag: latest
var config = require('azk').config;
systems({
grunt: {
image: "dockerfile/nodejs",
workdir: "/azk/<%= manifest.dir %>",
mount_folders: {
".": "/azk/<%= manifest.dir %>",
},
envs: {
PATH: "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/azk/<%= manifest.dir %>/node_modules/.bin"
}
},
docs: {
image: "dockerfile/python",
//provision: [
//'export INSTALL_DIR=/azk/<%= manifest.dir %>/vendor/python',
//'pip install --target=$INSTALL_DIR --install-option="--install-scripts=$INSTALL_DIR/bin" sphinx',
//],
workdir: "/azk/<%= manifest.dir %>",
mount_folders: {
".": "/azk/<%= manifest.dir %>",
},
//envs: {
//PYTHONPATH: "/azk/<%= manifest.dir %>/vendor/python",
//PATH: "/bin:/sbin:/usr/bin:/usr/sbin:/azk/<%= manifest.dir %>/vendor/python/bin"
//}
},
dns: {
image: config("docker:image_default"),
command: "dnsmasq --no-daemon --address=/<%= azk.default_domain %>/<%= azk.balancer_ip %>",
ports: {
dns: "53:53/udp",
}
},
'balancer-redirect': {
image: config("docker:image_default"),
command: "socat TCP4-LISTEN:$HTTP_PORT,fork TCP:$BALANCER_IP:$BALANCER_PORT",
ports: {
http: "80:<%= azk.balancer_port %>/tcp",
}
},
});
setDefault('docs');