buildout.cfg 1.46 KB
Newer Older
1 2
[buildout]
extends =
3
  ../../component/golang/buildout.cfg
4 5 6 7 8 9 10 11 12 13 14 15 16
  ../../stack/slapos.cfg
  gowork.cfg

parts =
  gowork
  slapos-cookbook
  instance-profile
  template-caddy
  caddy

[gowork]
install =
  github.com/mholt/caddy
eteri's avatar
eteri committed
17

18 19 20
[instance-profile]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
eteri's avatar
eteri committed
21
md5sum = 403f86b667f7a5d397993735bcd162ab
22 23 24 25 26
output =${buildout:directory}/instance.cfg
filename = instance.cfg
mode = 0644

[template-caddyfile]
eteri's avatar
eteri committed
27
recipe = slapos.recipe.build:download
28
url = ${:_profile_base_location_}/Caddyfile.in
eteri's avatar
eteri committed
29 30 31
md5sum = 2580eeb504d93627d1990f42663f80c7
filename = Caddyfile.in
location = ${buildout:parts-directory}/${:_buildout_section_name_}
32 33 34 35 36
mode = 0644

[template-caddy]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-caddy.cfg.in
eteri's avatar
eteri committed
37
md5sum = f87880908a33c03ba68f233cda6c6265
38 39 40 41 42
output = ${buildout:directory}/instance-caddy.cfg.in
mode = 0644

[template-public-html]
recipe = slapos.recipe.template
eteri's avatar
eteri committed
43
url =  ${:_profile_base_location_}/templates/index.html
44 45 46 47 48 49
md5sum = b5794ac8b10ed90173ad566e6e324b35
output =  ${buildout:directory}/index.html
mode = 0644

[caddy]
recipe  = slapos.recipe.cmmi
50
path    = ${go_github.com_mholt_caddy:location}
51 52 53 54 55 56
go      = ${gowork:golang}/bin/go
configure-command = :
make-targets =
make-binary = cd ${:path}/caddy && ${:go} install -v
environment =
  PATH=${pkgconfig:location}/bin:${gowork:golang}/bin:${buildout:bin-directory}:%(PATH)s
57 58
  GOPATH=${gowork:directory}
output =  ${gowork:bin}/caddy