@pulumi/docker 3.1.0-alpha.1626976245 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/remoteImage.d.ts CHANGED
@@ -1,24 +1,28 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
+ * <!-- Bug: Type and Name are switched -->
4
5
  * Pulls a Docker image to a given Docker host from a Docker Registry.
5
- *
6
- * This resource will *not* pull new layers of the image automatically unless used in
7
- * conjunction with [`docker.RegistryImage`](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
8
- * data source to update the `pullTriggers` field.
6
+ * This resource will *not* pull new layers of the image automatically unless used in conjunction with docker.RegistryImage data source to update the `pullTriggers` field.
9
7
  *
10
8
  * ## Example Usage
9
+ * ### Basic
10
+ *
11
+ * Finds and downloads the latest `ubuntu:precise` image but does not check
12
+ * for further updates of the image
11
13
  *
12
14
  * ```typescript
13
15
  * import * as pulumi from "@pulumi/pulumi";
14
16
  * import * as docker from "@pulumi/docker";
15
17
  *
16
- * // Find the latest Ubuntu precise image.
17
18
  * const ubuntu = new docker.RemoteImage("ubuntu", {
18
19
  * name: "ubuntu:precise",
19
20
  * });
20
21
  * ```
21
- * ### Dynamic image
22
+ * ### Dynamic updates
23
+ *
24
+ * To be able to update an image dynamically when the `sha256` sum changes,
25
+ * you need to use it in combination with `docker.RegistryImage` as follows:
22
26
  *
23
27
  * ```typescript
24
28
  * import * as pulumi from "@pulumi/pulumi";
@@ -32,6 +36,69 @@ import { input as inputs, output as outputs } from "./types";
32
36
  * pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
33
37
  * });
34
38
  * ```
39
+ * ### Build
40
+ *
41
+ * You can also use the resource to build an image.
42
+ * In this case the image "zoo" and "zoo:develop" are built.
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as docker from "@pulumi/docker";
47
+ *
48
+ * const zoo = new docker.RemoteImage("zoo", {
49
+ * name: "zoo",
50
+ * build: {
51
+ * path: ".",
52
+ * tags: ["zoo:develop"],
53
+ * buildArg: {
54
+ * foo: "zoo",
55
+ * },
56
+ * label: {
57
+ * author: "zoo",
58
+ * },
59
+ * },
60
+ * });
61
+ * ```
62
+ *
63
+ * <!-- schema generated by tfplugindocs -->
64
+ * ## Schema
65
+ *
66
+ * ### Required
67
+ *
68
+ * - **name** (String) The name of the Docker image, including any tags or SHA256 repo digests.
69
+ *
70
+ * ### Optional
71
+ *
72
+ * - **build** (Block Set, Max: 1) Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. (see below for nested schema)
73
+ * - **force_remove** (Boolean) If true, then the image is removed forcibly when the resource is destroyed.
74
+ * - **id** (String) The ID of this resource.
75
+ * - **keep_locally** (Boolean) If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
76
+ * - **pull_trigger** (String, Deprecated) A value which cause an image pull when changed
77
+ * - **pull_triggers** (Set of String) List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker_registry_image.
78
+ *
79
+ * ### Read-Only
80
+ *
81
+ * - **latest** (String, Deprecated) The ID of the image in the form of `sha256:<hash>` image digest. Do not confuse it with the default `latest` tag.
82
+ * - **output** (String, Deprecated)
83
+ * - **repo_digest** (String) The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
84
+ *
85
+ * <a id="nestedblock--build"></a>
86
+ * ### Nested Schema for `build`
87
+ *
88
+ * Required:
89
+ *
90
+ * - **path** (String) Context path
91
+ *
92
+ * Optional:
93
+ *
94
+ * - **build_arg** (Map of String) Set build-time variables
95
+ * - **dockerfile** (String) Name of the Dockerfile. Defaults to `Dockerfile`.
96
+ * - **force_remove** (Boolean) Always remove intermediate containers
97
+ * - **label** (Map of String) Set metadata for an image
98
+ * - **no_cache** (Boolean) Do not use cache when building the image
99
+ * - **remove** (Boolean) Remove intermediate containers after a successful build. Defaults to `true`.
100
+ * - **tag** (List of String) Name and optionally a tag in the 'name:tag' format
101
+ * - **target** (String) Set the target build stage to build
35
102
  */
36
103
  export declare class RemoteImage extends pulumi.CustomResource {
37
104
  /**
@@ -50,38 +117,48 @@ export declare class RemoteImage extends pulumi.CustomResource {
50
117
  */
51
118
  static isInstance(obj: any): obj is RemoteImage;
52
119
  /**
53
- * See Build below for details.
120
+ * Configuration to build an image. Please see [docker build command
121
+ * reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
54
122
  */
55
123
  readonly build: pulumi.Output<outputs.RemoteImageBuild | undefined>;
56
124
  /**
57
- * Force remove the image when the resource is destroyed
125
+ * If true, then the image is removed forcibly when the resource is destroyed.
58
126
  */
59
127
  readonly forceRemove: pulumi.Output<boolean | undefined>;
60
128
  /**
61
- * If true, then the Docker image won't be
62
- * deleted on destroy operation. If this is false, it will delete the image from
129
+ * If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
63
130
  * the docker local storage on destroy operation.
64
131
  */
65
132
  readonly keepLocally: pulumi.Output<boolean | undefined>;
133
+ /**
134
+ * The ID of the image in the form of `sha256:<hash>` image digest. Do not confuse it with the default `latest` tag.
135
+ *
136
+ * @deprecated Use repo_digest instead
137
+ */
66
138
  readonly latest: pulumi.Output<string>;
67
139
  /**
68
140
  * The name of the Docker image, including any tags or SHA256 repo digests.
69
141
  */
70
142
  readonly name: pulumi.Output<string>;
143
+ /**
144
+ * @deprecated Is unused and will be removed.
145
+ */
71
146
  readonly output: pulumi.Output<string>;
72
147
  /**
73
- * **Deprecated**, use `pullTriggers` instead.
148
+ * A value which cause an image pull when changed
74
149
  *
75
150
  * @deprecated Use field pull_triggers instead
76
151
  */
77
152
  readonly pullTrigger: pulumi.Output<string | undefined>;
78
153
  /**
79
- * List of values which cause an
80
- * image pull when changed. This is used to store the image digest from the
81
- * registry when using the `docker.RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
82
- * to trigger an image update.
154
+ * List of values which cause an image pull when changed. This is used to store the image digest from the registry when
155
+ * using the [docker_registry_image](../data-sources/registry_image.md).
83
156
  */
84
157
  readonly pullTriggers: pulumi.Output<string[] | undefined>;
158
+ /**
159
+ * The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
160
+ */
161
+ readonly repoDigest: pulumi.Output<string>;
85
162
  /**
86
163
  * Create a RemoteImage resource with the given unique name, arguments, and options.
87
164
  *
@@ -96,54 +173,64 @@ export declare class RemoteImage extends pulumi.CustomResource {
96
173
  */
97
174
  export interface RemoteImageState {
98
175
  /**
99
- * See Build below for details.
176
+ * Configuration to build an image. Please see [docker build command
177
+ * reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
100
178
  */
101
179
  readonly build?: pulumi.Input<inputs.RemoteImageBuild>;
102
180
  /**
103
- * Force remove the image when the resource is destroyed
181
+ * If true, then the image is removed forcibly when the resource is destroyed.
104
182
  */
105
183
  readonly forceRemove?: pulumi.Input<boolean>;
106
184
  /**
107
- * If true, then the Docker image won't be
108
- * deleted on destroy operation. If this is false, it will delete the image from
185
+ * If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
109
186
  * the docker local storage on destroy operation.
110
187
  */
111
188
  readonly keepLocally?: pulumi.Input<boolean>;
189
+ /**
190
+ * The ID of the image in the form of `sha256:<hash>` image digest. Do not confuse it with the default `latest` tag.
191
+ *
192
+ * @deprecated Use repo_digest instead
193
+ */
112
194
  readonly latest?: pulumi.Input<string>;
113
195
  /**
114
196
  * The name of the Docker image, including any tags or SHA256 repo digests.
115
197
  */
116
198
  readonly name?: pulumi.Input<string>;
199
+ /**
200
+ * @deprecated Is unused and will be removed.
201
+ */
117
202
  readonly output?: pulumi.Input<string>;
118
203
  /**
119
- * **Deprecated**, use `pullTriggers` instead.
204
+ * A value which cause an image pull when changed
120
205
  *
121
206
  * @deprecated Use field pull_triggers instead
122
207
  */
123
208
  readonly pullTrigger?: pulumi.Input<string>;
124
209
  /**
125
- * List of values which cause an
126
- * image pull when changed. This is used to store the image digest from the
127
- * registry when using the `docker.RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
128
- * to trigger an image update.
210
+ * List of values which cause an image pull when changed. This is used to store the image digest from the registry when
211
+ * using the [docker_registry_image](../data-sources/registry_image.md).
129
212
  */
130
213
  readonly pullTriggers?: pulumi.Input<pulumi.Input<string>[]>;
214
+ /**
215
+ * The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
216
+ */
217
+ readonly repoDigest?: pulumi.Input<string>;
131
218
  }
132
219
  /**
133
220
  * The set of arguments for constructing a RemoteImage resource.
134
221
  */
135
222
  export interface RemoteImageArgs {
136
223
  /**
137
- * See Build below for details.
224
+ * Configuration to build an image. Please see [docker build command
225
+ * reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
138
226
  */
139
227
  readonly build?: pulumi.Input<inputs.RemoteImageBuild>;
140
228
  /**
141
- * Force remove the image when the resource is destroyed
229
+ * If true, then the image is removed forcibly when the resource is destroyed.
142
230
  */
143
231
  readonly forceRemove?: pulumi.Input<boolean>;
144
232
  /**
145
- * If true, then the Docker image won't be
146
- * deleted on destroy operation. If this is false, it will delete the image from
233
+ * If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
147
234
  * the docker local storage on destroy operation.
148
235
  */
149
236
  readonly keepLocally?: pulumi.Input<boolean>;
@@ -152,16 +239,14 @@ export interface RemoteImageArgs {
152
239
  */
153
240
  readonly name: pulumi.Input<string>;
154
241
  /**
155
- * **Deprecated**, use `pullTriggers` instead.
242
+ * A value which cause an image pull when changed
156
243
  *
157
244
  * @deprecated Use field pull_triggers instead
158
245
  */
159
246
  readonly pullTrigger?: pulumi.Input<string>;
160
247
  /**
161
- * List of values which cause an
162
- * image pull when changed. This is used to store the image digest from the
163
- * registry when using the `docker.RegistryImage` [data source](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
164
- * to trigger an image update.
248
+ * List of values which cause an image pull when changed. This is used to store the image digest from the registry when
249
+ * using the [docker_registry_image](../data-sources/registry_image.md).
165
250
  */
166
251
  readonly pullTriggers?: pulumi.Input<pulumi.Input<string>[]>;
167
252
  }
package/remoteImage.js CHANGED
@@ -5,24 +5,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const pulumi = require("@pulumi/pulumi");
6
6
  const utilities = require("./utilities");
7
7
  /**
8
+ * <!-- Bug: Type and Name are switched -->
8
9
  * Pulls a Docker image to a given Docker host from a Docker Registry.
9
- *
10
- * This resource will *not* pull new layers of the image automatically unless used in
11
- * conjunction with [`docker.RegistryImage`](https://www.terraform.io/docs/providers/docker/d/registry_image.html)
12
- * data source to update the `pullTriggers` field.
10
+ * This resource will *not* pull new layers of the image automatically unless used in conjunction with docker.RegistryImage data source to update the `pullTriggers` field.
13
11
  *
14
12
  * ## Example Usage
13
+ * ### Basic
14
+ *
15
+ * Finds and downloads the latest `ubuntu:precise` image but does not check
16
+ * for further updates of the image
15
17
  *
16
18
  * ```typescript
17
19
  * import * as pulumi from "@pulumi/pulumi";
18
20
  * import * as docker from "@pulumi/docker";
19
21
  *
20
- * // Find the latest Ubuntu precise image.
21
22
  * const ubuntu = new docker.RemoteImage("ubuntu", {
22
23
  * name: "ubuntu:precise",
23
24
  * });
24
25
  * ```
25
- * ### Dynamic image
26
+ * ### Dynamic updates
27
+ *
28
+ * To be able to update an image dynamically when the `sha256` sum changes,
29
+ * you need to use it in combination with `docker.RegistryImage` as follows:
26
30
  *
27
31
  * ```typescript
28
32
  * import * as pulumi from "@pulumi/pulumi";
@@ -36,6 +40,69 @@ const utilities = require("./utilities");
36
40
  * pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
37
41
  * });
38
42
  * ```
43
+ * ### Build
44
+ *
45
+ * You can also use the resource to build an image.
46
+ * In this case the image "zoo" and "zoo:develop" are built.
47
+ *
48
+ * ```typescript
49
+ * import * as pulumi from "@pulumi/pulumi";
50
+ * import * as docker from "@pulumi/docker";
51
+ *
52
+ * const zoo = new docker.RemoteImage("zoo", {
53
+ * name: "zoo",
54
+ * build: {
55
+ * path: ".",
56
+ * tags: ["zoo:develop"],
57
+ * buildArg: {
58
+ * foo: "zoo",
59
+ * },
60
+ * label: {
61
+ * author: "zoo",
62
+ * },
63
+ * },
64
+ * });
65
+ * ```
66
+ *
67
+ * <!-- schema generated by tfplugindocs -->
68
+ * ## Schema
69
+ *
70
+ * ### Required
71
+ *
72
+ * - **name** (String) The name of the Docker image, including any tags or SHA256 repo digests.
73
+ *
74
+ * ### Optional
75
+ *
76
+ * - **build** (Block Set, Max: 1) Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. (see below for nested schema)
77
+ * - **force_remove** (Boolean) If true, then the image is removed forcibly when the resource is destroyed.
78
+ * - **id** (String) The ID of this resource.
79
+ * - **keep_locally** (Boolean) If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
80
+ * - **pull_trigger** (String, Deprecated) A value which cause an image pull when changed
81
+ * - **pull_triggers** (Set of String) List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker_registry_image.
82
+ *
83
+ * ### Read-Only
84
+ *
85
+ * - **latest** (String, Deprecated) The ID of the image in the form of `sha256:<hash>` image digest. Do not confuse it with the default `latest` tag.
86
+ * - **output** (String, Deprecated)
87
+ * - **repo_digest** (String) The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
88
+ *
89
+ * <a id="nestedblock--build"></a>
90
+ * ### Nested Schema for `build`
91
+ *
92
+ * Required:
93
+ *
94
+ * - **path** (String) Context path
95
+ *
96
+ * Optional:
97
+ *
98
+ * - **build_arg** (Map of String) Set build-time variables
99
+ * - **dockerfile** (String) Name of the Dockerfile. Defaults to `Dockerfile`.
100
+ * - **force_remove** (Boolean) Always remove intermediate containers
101
+ * - **label** (Map of String) Set metadata for an image
102
+ * - **no_cache** (Boolean) Do not use cache when building the image
103
+ * - **remove** (Boolean) Remove intermediate containers after a successful build. Defaults to `true`.
104
+ * - **tag** (List of String) Name and optionally a tag in the 'name:tag' format
105
+ * - **target** (String) Set the target build stage to build
39
106
  */
40
107
  class RemoteImage extends pulumi.CustomResource {
41
108
  constructor(name, argsOrState, opts) {
@@ -51,6 +118,7 @@ class RemoteImage extends pulumi.CustomResource {
51
118
  inputs["output"] = state ? state.output : undefined;
52
119
  inputs["pullTrigger"] = state ? state.pullTrigger : undefined;
53
120
  inputs["pullTriggers"] = state ? state.pullTriggers : undefined;
121
+ inputs["repoDigest"] = state ? state.repoDigest : undefined;
54
122
  }
55
123
  else {
56
124
  const args = argsOrState;
@@ -65,6 +133,7 @@ class RemoteImage extends pulumi.CustomResource {
65
133
  inputs["pullTriggers"] = args ? args.pullTriggers : undefined;
66
134
  inputs["latest"] = undefined /*out*/;
67
135
  inputs["output"] = undefined /*out*/;
136
+ inputs["repoDigest"] = undefined /*out*/;
68
137
  }
69
138
  if (!opts.version) {
70
139
  opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
@@ -1 +1 @@
1
- {"version":3,"file":"remoteImage.js","sourceRoot":"","sources":["../remoteImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAsElD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,aAAa,CAAC,G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AAG,SAAS,CAAC,OAAO,CAAC;YACrC,MAAM,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC5C;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAhHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAkHC;AApGG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
package/secret.d.ts CHANGED
@@ -3,7 +3,7 @@ import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
4
  * ## Import
5
5
  *
6
- * Docker secret cannot be imported as the secret data, once set, is never exposed again.
6
+ * Import is supported using the following syntax#!/bin/bash # Docker secret cannot be imported as the secret data, once set, is never exposed again.
7
7
  */
8
8
  export declare class Secret extends pulumi.CustomResource {
9
9
  /**
@@ -22,15 +22,15 @@ export declare class Secret extends pulumi.CustomResource {
22
22
  */
23
23
  static isInstance(obj: any): obj is Secret;
24
24
  /**
25
- * The base64 encoded data of the secret.
25
+ * Base64-url-safe-encoded secret data
26
26
  */
27
27
  readonly data: pulumi.Output<string>;
28
28
  /**
29
- * See Labels below for details.
29
+ * User-defined key/value metadata
30
30
  */
31
31
  readonly labels: pulumi.Output<outputs.SecretLabel[] | undefined>;
32
32
  /**
33
- * The name of the Docker secret.
33
+ * User-defined name of the secret
34
34
  */
35
35
  readonly name: pulumi.Output<string>;
36
36
  /**
@@ -47,15 +47,15 @@ export declare class Secret extends pulumi.CustomResource {
47
47
  */
48
48
  export interface SecretState {
49
49
  /**
50
- * The base64 encoded data of the secret.
50
+ * Base64-url-safe-encoded secret data
51
51
  */
52
52
  readonly data?: pulumi.Input<string>;
53
53
  /**
54
- * See Labels below for details.
54
+ * User-defined key/value metadata
55
55
  */
56
56
  readonly labels?: pulumi.Input<pulumi.Input<inputs.SecretLabel>[]>;
57
57
  /**
58
- * The name of the Docker secret.
58
+ * User-defined name of the secret
59
59
  */
60
60
  readonly name?: pulumi.Input<string>;
61
61
  }
@@ -64,15 +64,15 @@ export interface SecretState {
64
64
  */
65
65
  export interface SecretArgs {
66
66
  /**
67
- * The base64 encoded data of the secret.
67
+ * Base64-url-safe-encoded secret data
68
68
  */
69
69
  readonly data: pulumi.Input<string>;
70
70
  /**
71
- * See Labels below for details.
71
+ * User-defined key/value metadata
72
72
  */
73
73
  readonly labels?: pulumi.Input<pulumi.Input<inputs.SecretLabel>[]>;
74
74
  /**
75
- * The name of the Docker secret.
75
+ * User-defined name of the secret
76
76
  */
77
77
  readonly name?: pulumi.Input<string>;
78
78
  }
package/secret.js CHANGED
@@ -7,7 +7,7 @@ const utilities = require("./utilities");
7
7
  /**
8
8
  * ## Import
9
9
  *
10
- * Docker secret cannot be imported as the secret data, once set, is never exposed again.
10
+ * Import is supported using the following syntax#!/bin/bash # Docker secret cannot be imported as the secret data, once set, is never exposed again.
11
11
  */
12
12
  class Secret extends pulumi.CustomResource {
13
13
  constructor(name, argsOrState, opts) {
package/service.d.ts CHANGED
@@ -3,10 +3,36 @@ import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
4
  * ## Import
5
5
  *
6
- * Docker service can be imported using the long id, e.g. for a service with the short id `55ba873dd`
6
+ * ### Example Assuming you created a `service` as follows #!/bin/bash docker service create --name foo -p 8080:80 nginx # prints th ID 4pcphbxkfn2rffhbhe6czytgi you provide the definition for the resource as follows terraform resource "docker_service" "foo" {
7
+ *
8
+ * name = "foo"
9
+ *
10
+ * task_spec {
11
+ *
12
+ * container_spec {
13
+ *
14
+ * image = "nginx"
15
+ *
16
+ * }
17
+ *
18
+ * }
19
+ *
20
+ * endpoint_spec {
21
+ *
22
+ * ports {
23
+ *
24
+ * target_port
25
+ *
26
+ * = "80"
27
+ *
28
+ * published_port = "8080"
29
+ *
30
+ * }
31
+ *
32
+ * } } then the import command is as follows #!/bin/bash
7
33
  *
8
34
  * ```sh
9
- * $ pulumi import docker:index/service:Service foo $(docker service inspect -f {{.ID}} 55b)
35
+ * $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
10
36
  * ```
11
37
  */
12
38
  export declare class Service extends pulumi.CustomResource {
@@ -26,39 +52,39 @@ export declare class Service extends pulumi.CustomResource {
26
52
  */
27
53
  static isInstance(obj: any): obj is Service;
28
54
  /**
29
- * See Auth below for details.
55
+ * Configuration for the authentication for pulling the images of the service
30
56
  */
31
57
  readonly auth: pulumi.Output<outputs.ServiceAuth | undefined>;
32
58
  /**
33
- * See Converge Config below for details.
59
+ * A configuration to ensure that a service converges aka reaches the desired that of all task up and running
34
60
  */
35
61
  readonly convergeConfig: pulumi.Output<outputs.ServiceConvergeConfig | undefined>;
36
62
  /**
37
- * See EndpointSpec below for details.
63
+ * Properties that can be configured to access and load balance a service
38
64
  */
39
65
  readonly endpointSpec: pulumi.Output<outputs.ServiceEndpointSpec>;
40
66
  /**
41
- * See Labels below for details.
67
+ * User-defined key/value metadata
42
68
  */
43
69
  readonly labels: pulumi.Output<outputs.ServiceLabel[]>;
44
70
  /**
45
- * See Mode below for details.
71
+ * Scheduling mode for the service
46
72
  */
47
73
  readonly mode: pulumi.Output<outputs.ServiceMode>;
48
74
  /**
49
- * The name of the Docker service.
75
+ * Name of the service
50
76
  */
51
77
  readonly name: pulumi.Output<string>;
52
78
  /**
53
- * See RollbackConfig below for details.
79
+ * Specification for the rollback strategy of the service
54
80
  */
55
81
  readonly rollbackConfig: pulumi.Output<outputs.ServiceRollbackConfig | undefined>;
56
82
  /**
57
- * See TaskSpec below for details.
83
+ * User modifiable task configuration
58
84
  */
59
85
  readonly taskSpec: pulumi.Output<outputs.ServiceTaskSpec>;
60
86
  /**
61
- * See UpdateConfig below for details.
87
+ * Specification for the update strategy of the service
62
88
  */
63
89
  readonly updateConfig: pulumi.Output<outputs.ServiceUpdateConfig | undefined>;
64
90
  /**
@@ -75,39 +101,39 @@ export declare class Service extends pulumi.CustomResource {
75
101
  */
76
102
  export interface ServiceState {
77
103
  /**
78
- * See Auth below for details.
104
+ * Configuration for the authentication for pulling the images of the service
79
105
  */
80
106
  readonly auth?: pulumi.Input<inputs.ServiceAuth>;
81
107
  /**
82
- * See Converge Config below for details.
108
+ * A configuration to ensure that a service converges aka reaches the desired that of all task up and running
83
109
  */
84
110
  readonly convergeConfig?: pulumi.Input<inputs.ServiceConvergeConfig>;
85
111
  /**
86
- * See EndpointSpec below for details.
112
+ * Properties that can be configured to access and load balance a service
87
113
  */
88
114
  readonly endpointSpec?: pulumi.Input<inputs.ServiceEndpointSpec>;
89
115
  /**
90
- * See Labels below for details.
116
+ * User-defined key/value metadata
91
117
  */
92
118
  readonly labels?: pulumi.Input<pulumi.Input<inputs.ServiceLabel>[]>;
93
119
  /**
94
- * See Mode below for details.
120
+ * Scheduling mode for the service
95
121
  */
96
122
  readonly mode?: pulumi.Input<inputs.ServiceMode>;
97
123
  /**
98
- * The name of the Docker service.
124
+ * Name of the service
99
125
  */
100
126
  readonly name?: pulumi.Input<string>;
101
127
  /**
102
- * See RollbackConfig below for details.
128
+ * Specification for the rollback strategy of the service
103
129
  */
104
130
  readonly rollbackConfig?: pulumi.Input<inputs.ServiceRollbackConfig>;
105
131
  /**
106
- * See TaskSpec below for details.
132
+ * User modifiable task configuration
107
133
  */
108
134
  readonly taskSpec?: pulumi.Input<inputs.ServiceTaskSpec>;
109
135
  /**
110
- * See UpdateConfig below for details.
136
+ * Specification for the update strategy of the service
111
137
  */
112
138
  readonly updateConfig?: pulumi.Input<inputs.ServiceUpdateConfig>;
113
139
  }
@@ -116,39 +142,39 @@ export interface ServiceState {
116
142
  */
117
143
  export interface ServiceArgs {
118
144
  /**
119
- * See Auth below for details.
145
+ * Configuration for the authentication for pulling the images of the service
120
146
  */
121
147
  readonly auth?: pulumi.Input<inputs.ServiceAuth>;
122
148
  /**
123
- * See Converge Config below for details.
149
+ * A configuration to ensure that a service converges aka reaches the desired that of all task up and running
124
150
  */
125
151
  readonly convergeConfig?: pulumi.Input<inputs.ServiceConvergeConfig>;
126
152
  /**
127
- * See EndpointSpec below for details.
153
+ * Properties that can be configured to access and load balance a service
128
154
  */
129
155
  readonly endpointSpec?: pulumi.Input<inputs.ServiceEndpointSpec>;
130
156
  /**
131
- * See Labels below for details.
157
+ * User-defined key/value metadata
132
158
  */
133
159
  readonly labels?: pulumi.Input<pulumi.Input<inputs.ServiceLabel>[]>;
134
160
  /**
135
- * See Mode below for details.
161
+ * Scheduling mode for the service
136
162
  */
137
163
  readonly mode?: pulumi.Input<inputs.ServiceMode>;
138
164
  /**
139
- * The name of the Docker service.
165
+ * Name of the service
140
166
  */
141
167
  readonly name?: pulumi.Input<string>;
142
168
  /**
143
- * See RollbackConfig below for details.
169
+ * Specification for the rollback strategy of the service
144
170
  */
145
171
  readonly rollbackConfig?: pulumi.Input<inputs.ServiceRollbackConfig>;
146
172
  /**
147
- * See TaskSpec below for details.
173
+ * User modifiable task configuration
148
174
  */
149
175
  readonly taskSpec: pulumi.Input<inputs.ServiceTaskSpec>;
150
176
  /**
151
- * See UpdateConfig below for details.
177
+ * Specification for the update strategy of the service
152
178
  */
153
179
  readonly updateConfig?: pulumi.Input<inputs.ServiceUpdateConfig>;
154
180
  }