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

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

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

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

28 29 30 31 32 33 34
[template-caddy-service]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template-caddy-service.sh.in
md5sum = 61da5aea191595962ab020b4197b5390
output = ${buildout:directory}/template-caddy-service.sh.in
mode = 0644

eteri's avatar
eteri committed
35 36 37 38 39 40 41
[template-Caddyfile]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/Caddyfile.in
md5sum = c3ad1c9ea830dab84fa18bd58b5dc2ed
output = ${buildout:directory}/Caddyfile.in
mode = 0644

42 43 44
[template-caddy]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-caddy.cfg.in
eteri's avatar
eteri committed
45
md5sum = 3c9c4ef2963a57e5a68188f00a5938b9
46 47 48 49
output = ${buildout:directory}/instance-caddy.cfg.in
mode = 0644


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