This repository has been archived by the owner on Jun 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvagga.yaml
111 lines (99 loc) · 2.41 KB
/
vagga.yaml
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
containers:
nim:
setup:
- !Alpine v3.2
- !Install [build-base]
- &nim !Unpack
- - !TarInstall
url: http://nim-lang.org/download/nim-0.12.0.tar.xz
script: |
sh build.sh
sh install.sh /usr/bin
- !GitInstall
url: git://github.com/nim-lang/nimble
script: |
nim c -d:release src/nimble.nim
cp src/nimble /usr/bin/nimble
nimu:
setup:
- !Ubuntu trusty
- !Install [build-essential]
- *nim
serve:
setup:
- !Alpine v3.2
- !Sh |
rm /bin/bbsuid # fails to sync :(
- !Tar
url: https://github.com/cortesi/devd/releases/download/v0.1/devd-0.1-linux64.tgz
path: /usr/bin
subdir: devd-0.1-linux64
server-pkgs:
setup:
- !Container nim
- !Install [git]
- !Env HOME: /usr/lib/nimble
- !Sh 'nimble install -y jester sha1'
- !GitInstall
url: git://github.com/onionhammer/onion-nimrod
script: |
cd websockets
nimble init websockets
nimble install
environ:
HOME: /usr/lib/nimble
bld:
setup:
- !Container server-pkgs
- !Depends hellojs.nim
- !Depends server.nim
- !Sh |
rm /bin/bbsuid # fails to sync :(
- !Tar
url: https://github.com/cortesi/devd/releases/download/v0.1/devd-0.1-linux64.tgz
path: /usr/bin
subdir: devd-0.1-linux64
- !EnsureDir /app
- !EnsureDir /app/nimcache
- !Sh |
nim js hellojs.nim
cp index.html /app
cp m.css /app
cp nimcache/hellojs.js /app/nimcache
cp -R i /app
nim c server.nim
cp server /app
- !EnsureDir /config
- !Sh |
cp config/devd.yaml /config
cp config/server.yaml /config
auto-clean: true
commands:
nim: !Command
container: nim
run: [nim]
js: !Command
description: Build nim -> JS
container: nim
run: [nim, js, hellojs.nim]
srv: !Command
description: Run websocket server
container: server-pkgs
run: [nim, c, -r, server.nim]
serve: !Command
description: Serve test pages
container: serve
run: &devd
- devd
- --address=0.0.0.0
- --port=5000
- .
run: !Supervise
description: Run websocket server and devd
children:
devd: !Command
container: serve
run: *devd
nim: !Command
container: server-pkgs
run: [nim, c, -r, server.nim]