software.cfg 1.47 KB
Newer Older
1 2
[buildout]
extends =
Gabriel Monnerat's avatar
Gabriel Monnerat committed
3
  ../../component/caddy/buildout.cfg
4 5
  ../../stack/slapos.cfg

Gabriel Monnerat's avatar
Gabriel Monnerat committed
6
parts =
7 8 9
  golang19
  slapos-cookbook
  instance-profile
10
  template-caddy
11 12 13
  caddy

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

[gopath]
directory = ${buildout:directory}/go.work
src	= ${:directory}/src
bin	= ${:directory}/bin

26
[template-caddyfile]
eteri's avatar
eteri committed
27 28
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/Caddyfile.in
29
md5sum = 616f9c7cb788e1f1d7cee2093a7dc6ef
eteri's avatar
eteri committed
30 31 32
output = ${buildout:directory}/Caddyfile.in
mode = 0644

33 34 35
[template-caddy]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-caddy.cfg.in
36
md5sum = 045022e5698badca5dbdd6b95518f8e1
37 38 39
output = ${buildout:directory}/instance-caddy.cfg.in
mode = 0644

40 41 42 43 44 45 46
[template-public-html]
recipe = slapos.recipe.template
url =  ${:_profile_base_location_}/index.html
md5sum = b5794ac8b10ed90173ad566e6e324b35
output =  ${buildout:directory}/index.html
mode = 0644

47 48 49 50
[caddy]
recipe  = slapos.recipe.cmmi
path    = ${caddy-repository:location}
go      = ${golang19:location}/bin/go
51 52 53
configure-command = cd ${:path}/caddy && ${:go} get -v
make-targets =
make-binary = cd ${:path}/caddy && ${:go} install -v
54 55 56
environment =
  PATH=${pkgconfig:location}/bin:${golang19:location}/bin:${buildout:bin-directory}:%(PATH)s
  GOPATH=${gopath:directory}
57
output =  ${gopath:bin}/caddy