11{
2+ "schemaVersion": "v1.0.0-WD",
23 "name": "simple",
34 "version": "1.1.0-beta1",
45 "description": "new fancy webapp with microservices",
4546 "io.cnab.status": {}
4647 },
4748 "parameters": {
49+ "fields": {
50+ "api_host": {
51+ "definition": "api_host",
52+ "destination": {
53+ "env": "docker_param1"
54+ }
55+ },
56+ "com.docker.app.kubernetes-namespace": {
57+ "definition": "com.docker.app.kubernetes-namespace",
58+ "applyTo": [
59+ "install",
60+ "upgrade",
61+ "uninstall",
62+ "io.cnab.status"
63+ ],
64+ "destination": {
65+ "env": "DOCKER_KUBERNETES_NAMESPACE"
66+ }
67+ },
68+ "com.docker.app.orchestrator": {
69+ "definition": "com.docker.app.orchestrator",
70+ "applyTo": [
71+ "install",
72+ "upgrade",
73+ "uninstall",
74+ "io.cnab.status"
75+ ],
76+ "destination": {
77+ "env": "DOCKER_STACK_ORCHESTRATOR"
78+ }
79+ },
80+ "com.docker.app.render-format": {
81+ "definition": "com.docker.app.render-format",
82+ "applyTo": [
83+ "com.docker.app.render"
84+ ],
85+ "destination": {
86+ "env": "DOCKER_RENDER_FORMAT"
87+ }
88+ },
89+ "com.docker.app.share-registry-creds": {
90+ "definition": "com.docker.app.share-registry-creds",
91+ "destination": {
92+ "env": "DOCKER_SHARE_REGISTRY_CREDS"
93+ }
94+ },
95+ "static_subdir": {
96+ "definition": "static_subdir",
97+ "destination": {
98+ "env": "docker_param2"
99+ }
100+ },
101+ "web_port": {
102+ "definition": "web_port",
103+ "destination": {
104+ "env": "docker_param3"
105+ }
106+ }
107+ }
108+ },
109+ "credentials": {
110+ "com.docker.app.registry-creds": {
111+ "path": "/cnab/app/registry-creds.json"
112+ },
113+ "docker.context": {
114+ "path": "/cnab/app/context.dockercontext"
115+ }
116+ },
117+ "definitions": {
48118 "api_host": {
49- "type": "string",
50119 "default": "example.com",
51- "destination": {
52- "env": "docker_param1"
53- }
120+ "type": "string"
54121 },
55122 "com.docker.app.kubernetes-namespace": {
56- "type": "string",
57123 "default": "",
58- "metadata": {
59- "description": "Namespace in which to deploy"
60- },
61- "destination": {
62- "env": "DOCKER_KUBERNETES_NAMESPACE"
63- },
64- "apply-to": [
65- "install",
66- "upgrade",
67- "uninstall",
68- "io.cnab.status"
69- ]
124+ "description": "Namespace in which to deploy",
125+ "title": "Namespace",
126+ "type": "string"
70127 },
71128 "com.docker.app.orchestrator": {
72- "type": "string",
73129 "default": "",
74- "allowedValues": [
130+ "description": "Orchestrator on which to deploy",
131+ "enum": [
75132 "",
76133 "swarm",
77134 "kubernetes"
78135 ],
79- "metadata": {
80- "description": "Orchestrator on which to deploy"
81- },
82- "destination": {
83- "env": "DOCKER_STACK_ORCHESTRATOR"
84- },
85- "apply-to": [
86- "install",
87- "upgrade",
88- "uninstall",
89- "io.cnab.status"
90- ]
136+ "title": "Orchestrator",
137+ "type": "string"
91138 },
92139 "com.docker.app.render-format": {
93- "type": "string",
94140 "default": "yaml",
95- "allowedValues": [
141+ "description": "Output format for the render command",
142+ "enum": [
96143 "yaml",
97144 "json"
98145 ],
99- "metadata": {
100- "description": "Output format for the render command"
101- },
102- "destination": {
103- "env": "DOCKER_RENDER_FORMAT"
104- },
105- "apply-to": [
106- "com.docker.app.render"
107- ]
146+ "title": "Render format",
147+ "type": "string"
108148 },
109149 "com.docker.app.share-registry-creds": {
110- "type": "bool",
111150 "default": false,
112- "metadata": {
113- "description": "Share registry credentials with the invocation image"
114- },
115- "destination": {
116- "env": "DOCKER_SHARE_REGISTRY_CREDS"
117- }
151+ "description": "Share registry credentials with the invocation image",
152+ "title": "Share registry credentials",
153+ "type": "boolean"
118154 },
119155 "static_subdir": {
120- "type": "string",
121156 "default": "data/static",
122- "destination": {
123- "env": "docker_param2"
124- }
157+ "type": "string"
125158 },
126159 "web_port": {
127- "type": "string",
128160 "default": "8082",
129- "destination": {
130- "env": "docker_param3"
131- }
132- }
133- },
134- "credentials": {
135- "com.docker.app.registry-creds": {
136- "path": "/cnab/app/registry-creds.json"
137- },
138- "docker.context": {
139- "path": "/cnab/app/context.dockercontext"
161+ "type": "string"
140162 }
141163 }
142164}
0 commit comments