Create a Service
Overview
A service is specified via a Servicefile.
A Servicefile is json-encoded and, like a Dockerfile, can references other 'supporting' files.
Servicefile
yac services are specified in a Servicefile.
Servicefiles allow you to define services that can be easily installed in any VPC by Service Providers.
I like to think of the Servicefile as a cloud formation template on steroids.
The core of the Servicefile is the container definitions, including:
- which containers to run, and
- how to wire them together
The rest of the Servicefile has constructs that allow the Service Developer to:
- specify cloud resources used by the service, and
- set parameters in the resource templates, and
- prompt Service Providers for dynamic parameters, and
- perform custom setup functions, and
- specify an instance boot file, and
- customize resource names
That's it!
Case Study
The nginx-demo service provides good example of the how to specify and share a service via a Servicefile.