1+ {
2+ "name" : " python-app" ,
3+ "version" : " 0.1.0" ,
4+ "description" : " Quickstart Python with Docker App" ,
5+ "maintainers" : [
6+ {
7+ "name" : " mikespub"
8+ }
9+ ],
10+ "invocationImages" : [
11+ {
12+ "imageType" : " docker" ,
13+ "image" : " python-app:0.1.0-invoc"
14+ }
15+ ],
16+ "images" : {
17+ "redis" : {
18+ "imageType" : " docker" ,
19+ "image" : " redis" ,
20+ "description" : " redis"
21+ },
22+ "web" : {
23+ "imageType" : " docker" ,
24+ "image" : " mikespub/quickstart-python" ,
25+ "description" : " mikespub/quickstart-python"
26+ }
27+ },
28+ "actions" : {
29+ "com.docker.app.inspect" : {
30+ "stateless" : true
31+ },
32+ "com.docker.app.render" : {
33+ "stateless" : true
34+ },
35+ "com.docker.app.status" : {}
36+ },
37+ "parameters" : {
38+ "FLASK_HOST" : {
39+ "type" : " string" ,
40+ "default" : " 0.0.0.0" ,
41+ "destination" : {
42+ "env" : " docker_param1"
43+ }
44+ },
45+ "FLASK_PORT" : {
46+ "type" : " string" ,
47+ "default" : " 5080" ,
48+ "destination" : {
49+ "env" : " docker_param2"
50+ }
51+ },
52+ "com.docker.app.kubernetes-namespace" : {
53+ "type" : " string" ,
54+ "default" : " " ,
55+ "metadata" : {
56+ "description" : " Namespace in which to deploy"
57+ },
58+ "destination" : {
59+ "env" : " DOCKER_KUBERNETES_NAMESPACE"
60+ },
61+ "apply-to" : [
62+ " install" ,
63+ " upgrade" ,
64+ " uninstall" ,
65+ " com.docker.app.status"
66+ ]
67+ },
68+ "com.docker.app.orchestrator" : {
69+ "type" : " string" ,
70+ "default" : " " ,
71+ "allowedValues" : [
72+ " " ,
73+ " swarm" ,
74+ " kubernetes"
75+ ],
76+ "metadata" : {
77+ "description" : " Orchestrator on which to deploy"
78+ },
79+ "destination" : {
80+ "env" : " DOCKER_STACK_ORCHESTRATOR"
81+ },
82+ "apply-to" : [
83+ " install" ,
84+ " upgrade" ,
85+ " uninstall" ,
86+ " com.docker.app.status"
87+ ]
88+ },
89+ "com.docker.app.render-format" : {
90+ "type" : " string" ,
91+ "default" : " yaml" ,
92+ "allowedValues" : [
93+ " yaml" ,
94+ " json"
95+ ],
96+ "metadata" : {
97+ "description" : " Output format for the render command"
98+ },
99+ "destination" : {
100+ "env" : " DOCKER_RENDER_FORMAT"
101+ },
102+ "apply-to" : [
103+ " com.docker.app.render"
104+ ]
105+ },
106+ "com.docker.app.share-registry-creds" : {
107+ "type" : " bool" ,
108+ "default" : false ,
109+ "metadata" : {
110+ "description" : " Share registry credentials with the invocation image"
111+ },
112+ "destination" : {
113+ "env" : " DOCKER_SHARE_REGISTRY_CREDS"
114+ }
115+ }
116+ },
117+ "credentials" : {
118+ "com.docker.app.registry-creds" : {
119+ "path" : " /cnab/app/registry-creds.json"
120+ },
121+ "docker.context" : {
122+ "path" : " /cnab/app/context.dockercontext"
123+ }
124+ }
125+ }
0 commit comments