-
Notifications
You must be signed in to change notification settings - Fork 2
/
preview.inf.json
executable file
·88 lines (70 loc) · 2.22 KB
/
preview.inf.json
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
#!/usr/bin/env pinf.it
{
"# run": (run.bash.progress () >>>
[ -e ".~lib.json" ] || lib.json from node_modules > .~lib.json
<<<),
"#": "gi0.PINF.it/core/v0",
"#": {
"process": "bash.origin.process"
},
":runner:": "process @ runner/v0",
"gi0.PINF.it/core/v0 @ # :runner: set() config": {
"build": {
"env": {
"DOCKER_IMAGE_NAME": "cadorn/firephp.org"
},
"run": (bash () >>>
#!/usr/bin/env bash.origin.script
depend {
"docker": {
"bash.origin.docker # runner/v0": "localhost"
}
}
pushd "public" > /dev/null
#CALL_docker force_build . "${DOCKER_IMAGE_NAME}"
CALL_docker build . "${DOCKER_IMAGE_NAME}"
popd > /dev/null
<<<)
},
"run": {
"depends": [
"build"
],
"env": {
"DOCKER_IMAGE_NAME": "cadorn/firephp.org",
"PORT": 8081
},
"run": (bash () >>>
#!/usr/bin/env bash.origin.script
depend {
"docker": {
"bash.origin.docker # runner/v0": "localhost"
}
}
pushd "public" > /dev/null
echo "Server running at: http://localhost:${PORT}/"
CALL_docker run_no_tty "${DOCKER_IMAGE_NAME}:latest" "${PORT}"
popd > /dev/null
<<<),
"routes": {
"alive": {
"uri": "/"
}
}
},
"browser": {
"depends": [
"run"
],
"env": {
"PORT": 8081
},
"run": (bash () >>>
#!/usr/bin/env bash.origin.script
open "http://127.0.0.1:${PORT}/"
# TODO: Launch latest FirePHP extension from source
<<<)
}
},
"gi0.PINF.it/core/v0 @ # :runner: run()": ""
}