instance.cfg 2.05 KB
Newer Older
1 2 3 4
[buildout]
parts =
  dream_simulation
  dream_platform
Jérome Perrin's avatar
Jérome Perrin committed
5
  dream_test_suite
6
  dream_interpreter
7
  grunt_watch
8 9 10 11 12 13
  publish-connection-parameter

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

14
# parameters
15 16 17 18 19 20 21
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap_connection:computer_id}
partition = $${slap_connection:partition_id}
url = $${slap_connection:server_url}
key = $${slap_connection:key_file}
cert = $${slap_connection:cert_file}
22
[dream_platform_parameter]
23
port = 8080
24
host = $${instance-parameter:ipv6-random}
25

26 27 28 29 30 31
# interpreter
[dream_interpreter]
recipe = slapos.cookbook:wrapper
command-line = ${buildout:bin-directory}/dream_interpreter
wrapper-path = $${buildout:bin-directory}/dream_interpreter

32
# service
33 34
[dream_platform]
recipe = slapos.cookbook:wrapper
35
command-line = ${buildout:bin-directory}/dream_platform --debug --host $${dream_platform_parameter:host} --port $${dream_platform_parameter:port} --log $${directory:log}/dream_platform.log
36 37
wrapper-path = $${directory:service}/dream_platform

38 39 40 41 42
[grunt_watch]
recipe = slapos.cookbook:wrapper
command-line = bash -c 'cd ${dream-repository.git:location}; PATH=${nodejs:location}/bin/:$PATH ${dream-repository.git:location}/node_modules/grunt-cli/bin/grunt watch -f > $${directory:log}/grunt.log'
wrapper-path = $${directory:service}/dream_grunt_watch

43
# CLI
44 45 46 47 48
[dream_simulation]
recipe = slapos.cookbook:wrapper
command-line = ${buildout:bin-directory}/dream_simulation
wrapper-path = $${directory:script}/dream_simulation

Jérome Perrin's avatar
Jérome Perrin committed
49 50 51 52 53
[dream_test_suite]
recipe = slapos.cookbook:wrapper
command-line = ${dream_testrunner:script}
wrapper-path = $${directory:script}/dream_test_suite

54 55 56 57 58 59 60 61 62 63 64 65
[directory]
recipe = slapos.cookbook:mkdirectory
home = $${buildout:directory}
etc = $${:home}/etc
var = $${:home}/var
script = $${:etc}/run/
service = $${:etc}/service
promise = $${:etc}/promise/
log = $${:var}/log

[publish-connection-parameter]
recipe = slapos.cookbook:publishurl
66
url = http://[$${dream_platform_parameter:host}]:$${dream_platform_parameter:port}
67