marmelab / gaudi

Gaudi allows to share multi-component applications, based on Docker, Go, and YAML.
http://gaudi.io/
MIT License
563 stars 28 forks source link

[RFR] Add varnish template #3

Closed manuquentin closed 10 years ago

manuquentin commented 10 years ago

Configuration

lb:
     type: varnish
    links: [front1, front2]
    ports:
        80: 80
    custom:
        backends: [front1, front2]
fzaninotto commented 10 years ago

how would you define your custom VCL?

manuquentin commented 10 years ago

An entry in the config file will allows to set a custom vcl file with a ADD in the Dockerfile. To do this, I need to generate Dockerfiles on the fly so I've made the #4 to use templated Dockerfile. With the Twig like template engine of golang (http://golang.org/pkg/text/template/) it will be easy as a pie.