-
Notifications
You must be signed in to change notification settings - Fork 12
/
Azkfile.js
80 lines (70 loc) · 1.7 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
var envs = {
DNS_DOMAIN: "test.resolver",
DNS_IP: "127.0.0.2",
TERM: env.TERM,
BUILD_FOLDER: "/azk/build",
}
// Adds the systems that shape your system
systems({
ubuntu12: {
depends: ["dns"],
image: { dockerfile: "./Dockerfiles/ubuntu12" },
workdir: "/azk/#{manifest.dir}",
command: "# command to run app",
shell: "/bin/bash",
mounts: {
"/azk/#{manifest.dir}" : '.',
"/etc/nsswitch.conf" : './mocker/#{system.name}-nsswitch.conf',
"/etc/resolver" : './mocker/resolver',
"/azk/build" : persistent('build-#{system.name}'),
"/azk/lib" : '/usr/lib'
},
envs: envs,
},
ubuntu16: {
extends: "ubuntu12",
image: { dockerfile: "./Dockerfiles/ubuntu16" },
},
ubuntu15: {
extends: "ubuntu12",
image: { dockerfile: "./Dockerfiles/ubuntu15" },
},
ubuntu14: {
extends: "ubuntu12",
image: { dockerfile: "./Dockerfiles/ubuntu14" },
},
'debian8-0': {
extends: "ubuntu12",
image: { dockerfile: "./Dockerfiles/debian8.0" },
},
fedora20: {
extends: "ubuntu12",
image: { dockerfile: "./Dockerfiles/fedora20" },
},
fedora23: {
extends: "ubuntu12",
image: { dockerfile: "./Dockerfiles/fedora23" },
},
package: {
image: { docker: "azukiapp/fpm" },
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
mounts: {
"/azk/#{manifest.dir}" : '.',
},
envs: envs,
},
dns: {
image: { docker: "azukiapp/azktcl:0.0.2" },
command: "dnsmasq --no-daemon --address=/$DNS_DOMAIN/$DNS_IP",
wait: false,
ports: {
dns: "53/udp",
80: disable,
},
envs: envs,
},
});