@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/plugin.js CHANGED
@@ -5,6 +5,7 @@ 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
  * Manages the lifecycle of a Docker plugin.
9
10
  *
10
11
  * ## Example Usage
@@ -13,13 +14,6 @@ const utilities = require("./utilities");
13
14
  * import * as pulumi from "@pulumi/pulumi";
14
15
  * import * as docker from "@pulumi/docker";
15
16
  *
16
- * const sample_volume_plugin = new docker.Plugin("sample-volume-plugin", {});
17
- * ```
18
- *
19
- * ```typescript
20
- * import * as pulumi from "@pulumi/pulumi";
21
- * import * as docker from "@pulumi/docker";
22
- *
23
17
  * const sample_volume_plugin = new docker.Plugin("sample-volume-plugin", {
24
18
  * alias: "sample-volume-plugin",
25
19
  * enableTimeout: 60,
@@ -31,12 +25,43 @@ const utilities = require("./utilities");
31
25
  * });
32
26
  * ```
33
27
  *
28
+ * <!-- schema generated by tfplugindocs -->
29
+ * ## Schema
30
+ *
31
+ * ### Required
32
+ *
33
+ * - **name** (String) Docker Plugin name
34
+ *
35
+ * ### Optional
36
+ *
37
+ * - **alias** (String) Docker Plugin alias
38
+ * - **enable_timeout** (Number) HTTP client timeout to enable the plugin
39
+ * - **enabled** (Boolean) If `true` the plugin is enabled. Defaults to `true`
40
+ * - **env** (Set of String) The environment variables in the form of `KEY=VALUE`, e.g. `DEBUG=0`
41
+ * - **force_destroy** (Boolean) If true, then the plugin is destroyed forcibly
42
+ * - **force_disable** (Boolean) If true, then the plugin is disabled forcibly
43
+ * - **grant_all_permissions** (Boolean) If true, grant all permissions necessary to run the plugin
44
+ * - **grant_permissions** (Block Set) Grant specific permissions only (see below for nested schema)
45
+ * - **id** (String) The ID of this resource.
46
+ *
47
+ * ### Read-Only
48
+ *
49
+ * - **plugin_reference** (String) Docker Plugin Reference
50
+ *
51
+ * <a id="nestedblock--grant_permissions"></a>
52
+ * ### Nested Schema for `grantPermissions`
53
+ *
54
+ * Required:
55
+ *
56
+ * - **name** (String) The name of the permission
57
+ * - **value** (Set of String) The value of the permission
58
+ *
34
59
  * ## Import
35
60
  *
36
- * Docker plugins can be imported using the long id, e.g. for a plugin `tiborvass/sample-volume-plugin:latest`
61
+ * Import is supported using the following syntax#!/bin/bash
37
62
  *
38
63
  * ```sh
39
- * $ pulumi import docker:index/plugin:Plugin sample-volume-plugin $(docker plugin inspect -f "{{.ID}}" tiborvass/sample-volume-plugin:latest)
64
+ * $ pulumi import docker:index/plugin:Plugin sample-volume-plugin "$(docker plugin inspect -f {{.ID}} tiborvass/sample-volume-plugin:latest)"
40
65
  * ```
41
66
  */
42
67
  class Plugin extends pulumi.CustomResource {
package/plugin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../plugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IA6E7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAA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
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * Provides an image/tag in a Docker registry.
4
+ * <!-- Bug: Type and Name are switched -->
5
+ * Manages the lifecycle of docker image/tag in a registry.
5
6
  *
6
7
  * ## Example Usage
7
8
  *
8
9
  * ```typescript
9
10
  * import * as pulumi from "@pulumi/pulumi";
10
11
  * import * as docker from "@pulumi/docker";
12
+ * import * as process from "process";
11
13
  *
12
14
  * const helloworld = new docker.RegistryImage("helloworld", {
13
15
  * build: {
14
- * context: "pathToContextFolder",
16
+ * context: `${process.cwd()}/absolutePathToContextFolder`,
15
17
  * },
16
18
  * });
17
19
  * ```
20
+ *
21
+ * <!-- schema generated by tfplugindocs -->
22
+ * ## Schema
23
+ *
24
+ * ### Required
25
+ *
26
+ * - **name** (String) The name of the Docker image.
27
+ *
28
+ * ### Optional
29
+ *
30
+ * - **build** (Block List, Max: 1) Definition for building the image (see below for nested schema)
31
+ * - **id** (String) The ID of this resource.
32
+ * - **insecure_skip_verify** (Boolean) If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
33
+ * - **keep_remotely** (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 registry on destroy operation. Defaults to `false`
34
+ *
35
+ * ### Read-Only
36
+ *
37
+ * - **sha256_digest** (String) The sha256 digest of the image.
38
+ *
39
+ * <a id="nestedblock--build"></a>
40
+ * ### Nested Schema for `build`
41
+ *
42
+ * Required:
43
+ *
44
+ * - **context** (String) The absolute path to the context folder. You can use the helper function '${path.cwd}/context-dir'.
45
+ *
46
+ * Optional:
47
+ *
48
+ * - **auth_config** (Block List) The configuration for the authentication (see below for nested schema)
49
+ * - **build_args** (Map of String) Pairs for build-time variables in the form TODO
50
+ * - **build_id** (String) BuildID is an optional identifier that can be passed together with the build request. The
51
+ * - **cache_from** (List of String) Images to consider as cache sources
52
+ * - **cgroup_parent** (String) Optional parent cgroup for the container
53
+ * - **cpu_period** (Number) The length of a CPU period in microseconds
54
+ * - **cpu_quota** (Number) Microseconds of CPU time that the container can get in a CPU period
55
+ * - **cpu_set_cpus** (String) CPUs in which to allow execution (e.g., `0-3`, `0`, `1`)
56
+ * - **cpu_set_mems** (String) MEMs in which to allow execution (`0-3`, `0`, `1`)
57
+ * - **cpu_shares** (Number) CPU shares (relative weight)
58
+ * - **dockerfile** (String) Dockerfile file. Defaults to `Dockerfile`
59
+ * - **extra_hosts** (List of String) A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"]
60
+ * - **force_remove** (Boolean) Always remove intermediate containers
61
+ * - **isolation** (String) Isolation represents the isolation technology of a container. The supported values are
62
+ * - **labels** (Map of String) User-defined key/value metadata
63
+ * - **memory** (Number) Set memory limit for build
64
+ * - **memory_swap** (Number) Total memory (memory + swap), -1 to enable unlimited swap
65
+ * - **network_mode** (String) Set the networking mode for the RUN instructions during build
66
+ * - **no_cache** (Boolean) Do not use the cache when building the image
67
+ * - **platform** (String) Set platform if server is multi-platform capable
68
+ * - **pull_parent** (Boolean) Attempt to pull the image even if an older image exists locally
69
+ * - **remote_context** (String) A Git repository URI or HTTP/HTTPS context URI
70
+ * - **remove** (Boolean) Remove intermediate containers after a successful build (default behavior)
71
+ * - **security_opt** (List of String) The security options
72
+ * - **session_id** (String) Set an ID for the build session
73
+ * - **shm_size** (Number) Size of /dev/shm in bytes. The size must be greater than 0
74
+ * - **squash** (Boolean) If true the new layers are squashed into a new image with a single new layer
75
+ * - **suppress_output** (Boolean) Suppress the build output and print image ID on success
76
+ * - **target** (String) Set the target build stage to build
77
+ * - **ulimit** (Block List) Configuration for ulimits (see below for nested schema)
78
+ * - **version** (String) Version of the unerlying builder to use
79
+ *
80
+ * <a id="nestedblock--build--auth_config"></a>
81
+ * ### Nested Schema for `build.auth_config`
82
+ *
83
+ * Required:
84
+ *
85
+ * - **host_name** (String) hostname of the registry
86
+ *
87
+ * Optional:
88
+ *
89
+ * - **auth** (String) the auth token
90
+ * - **email** (String) the user emal
91
+ * - **identity_token** (String) the identity token
92
+ * - **password** (String) the registry password
93
+ * - **registry_token** (String) the registry token
94
+ * - **server_address** (String) the server address
95
+ * - **user_name** (String) the registry user name
96
+ *
97
+ * <a id="nestedblock--build--ulimit"></a>
98
+ * ### Nested Schema for `build.ulimit`
99
+ *
100
+ * Required:
101
+ *
102
+ * - **hard** (Number) soft limit
103
+ * - **name** (String) type of ulimit, e.g. `nofile`
104
+ * - **soft** (Number) hard limit
18
105
  */
19
106
  export declare class RegistryImage extends pulumi.CustomResource {
20
107
  /**
@@ -33,19 +120,25 @@ export declare class RegistryImage extends pulumi.CustomResource {
33
120
  */
34
121
  static isInstance(obj: any): obj is RegistryImage;
35
122
  /**
36
- * See Build below for details.
123
+ * Definition for building the image
37
124
  */
38
125
  readonly build: pulumi.Output<outputs.RegistryImageBuild | undefined>;
39
126
  /**
40
- * If true, then the Docker image won't be
41
- * deleted on destroy operation. If this is false, it will delete the image from
42
- * the docker registry on destroy operation.
127
+ * If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
128
+ */
129
+ readonly insecureSkipVerify: pulumi.Output<boolean | undefined>;
130
+ /**
131
+ * If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
132
+ * the docker registry on destroy operation. Defaults to `false`
43
133
  */
44
134
  readonly keepRemotely: pulumi.Output<boolean | undefined>;
45
135
  /**
46
- * type of ulimit, e.g. nofile
136
+ * The name of the Docker image.
47
137
  */
48
138
  readonly name: pulumi.Output<string>;
139
+ /**
140
+ * The sha256 digest of the image.
141
+ */
49
142
  readonly sha256Digest: pulumi.Output<string>;
50
143
  /**
51
144
  * Create a RegistryImage resource with the given unique name, arguments, and options.
@@ -61,19 +154,25 @@ export declare class RegistryImage extends pulumi.CustomResource {
61
154
  */
62
155
  export interface RegistryImageState {
63
156
  /**
64
- * See Build below for details.
157
+ * Definition for building the image
65
158
  */
66
159
  readonly build?: pulumi.Input<inputs.RegistryImageBuild>;
67
160
  /**
68
- * If true, then the Docker image won't be
69
- * deleted on destroy operation. If this is false, it will delete the image from
70
- * the docker registry on destroy operation.
161
+ * If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
162
+ */
163
+ readonly insecureSkipVerify?: pulumi.Input<boolean>;
164
+ /**
165
+ * If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
166
+ * the docker registry on destroy operation. Defaults to `false`
71
167
  */
72
168
  readonly keepRemotely?: pulumi.Input<boolean>;
73
169
  /**
74
- * type of ulimit, e.g. nofile
170
+ * The name of the Docker image.
75
171
  */
76
172
  readonly name?: pulumi.Input<string>;
173
+ /**
174
+ * The sha256 digest of the image.
175
+ */
77
176
  readonly sha256Digest?: pulumi.Input<string>;
78
177
  }
79
178
  /**
@@ -81,17 +180,20 @@ export interface RegistryImageState {
81
180
  */
82
181
  export interface RegistryImageArgs {
83
182
  /**
84
- * See Build below for details.
183
+ * Definition for building the image
85
184
  */
86
185
  readonly build?: pulumi.Input<inputs.RegistryImageBuild>;
87
186
  /**
88
- * If true, then the Docker image won't be
89
- * deleted on destroy operation. If this is false, it will delete the image from
90
- * the docker registry on destroy operation.
187
+ * If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
188
+ */
189
+ readonly insecureSkipVerify?: pulumi.Input<boolean>;
190
+ /**
191
+ * If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
192
+ * the docker registry on destroy operation. Defaults to `false`
91
193
  */
92
194
  readonly keepRemotely?: pulumi.Input<boolean>;
93
195
  /**
94
- * type of ulimit, e.g. nofile
196
+ * The name of the Docker image.
95
197
  */
96
198
  readonly name?: pulumi.Input<string>;
97
199
  }
package/registryImage.js CHANGED
@@ -5,20 +5,107 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const pulumi = require("@pulumi/pulumi");
6
6
  const utilities = require("./utilities");
7
7
  /**
8
- * Provides an image/tag in a Docker registry.
8
+ * <!-- Bug: Type and Name are switched -->
9
+ * Manages the lifecycle of docker image/tag in a registry.
9
10
  *
10
11
  * ## Example Usage
11
12
  *
12
13
  * ```typescript
13
14
  * import * as pulumi from "@pulumi/pulumi";
14
15
  * import * as docker from "@pulumi/docker";
16
+ * import * as process from "process";
15
17
  *
16
18
  * const helloworld = new docker.RegistryImage("helloworld", {
17
19
  * build: {
18
- * context: "pathToContextFolder",
20
+ * context: `${process.cwd()}/absolutePathToContextFolder`,
19
21
  * },
20
22
  * });
21
23
  * ```
24
+ *
25
+ * <!-- schema generated by tfplugindocs -->
26
+ * ## Schema
27
+ *
28
+ * ### Required
29
+ *
30
+ * - **name** (String) The name of the Docker image.
31
+ *
32
+ * ### Optional
33
+ *
34
+ * - **build** (Block List, Max: 1) Definition for building the image (see below for nested schema)
35
+ * - **id** (String) The ID of this resource.
36
+ * - **insecure_skip_verify** (Boolean) If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
37
+ * - **keep_remotely** (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 registry on destroy operation. Defaults to `false`
38
+ *
39
+ * ### Read-Only
40
+ *
41
+ * - **sha256_digest** (String) The sha256 digest of the image.
42
+ *
43
+ * <a id="nestedblock--build"></a>
44
+ * ### Nested Schema for `build`
45
+ *
46
+ * Required:
47
+ *
48
+ * - **context** (String) The absolute path to the context folder. You can use the helper function '${path.cwd}/context-dir'.
49
+ *
50
+ * Optional:
51
+ *
52
+ * - **auth_config** (Block List) The configuration for the authentication (see below for nested schema)
53
+ * - **build_args** (Map of String) Pairs for build-time variables in the form TODO
54
+ * - **build_id** (String) BuildID is an optional identifier that can be passed together with the build request. The
55
+ * - **cache_from** (List of String) Images to consider as cache sources
56
+ * - **cgroup_parent** (String) Optional parent cgroup for the container
57
+ * - **cpu_period** (Number) The length of a CPU period in microseconds
58
+ * - **cpu_quota** (Number) Microseconds of CPU time that the container can get in a CPU period
59
+ * - **cpu_set_cpus** (String) CPUs in which to allow execution (e.g., `0-3`, `0`, `1`)
60
+ * - **cpu_set_mems** (String) MEMs in which to allow execution (`0-3`, `0`, `1`)
61
+ * - **cpu_shares** (Number) CPU shares (relative weight)
62
+ * - **dockerfile** (String) Dockerfile file. Defaults to `Dockerfile`
63
+ * - **extra_hosts** (List of String) A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"]
64
+ * - **force_remove** (Boolean) Always remove intermediate containers
65
+ * - **isolation** (String) Isolation represents the isolation technology of a container. The supported values are
66
+ * - **labels** (Map of String) User-defined key/value metadata
67
+ * - **memory** (Number) Set memory limit for build
68
+ * - **memory_swap** (Number) Total memory (memory + swap), -1 to enable unlimited swap
69
+ * - **network_mode** (String) Set the networking mode for the RUN instructions during build
70
+ * - **no_cache** (Boolean) Do not use the cache when building the image
71
+ * - **platform** (String) Set platform if server is multi-platform capable
72
+ * - **pull_parent** (Boolean) Attempt to pull the image even if an older image exists locally
73
+ * - **remote_context** (String) A Git repository URI or HTTP/HTTPS context URI
74
+ * - **remove** (Boolean) Remove intermediate containers after a successful build (default behavior)
75
+ * - **security_opt** (List of String) The security options
76
+ * - **session_id** (String) Set an ID for the build session
77
+ * - **shm_size** (Number) Size of /dev/shm in bytes. The size must be greater than 0
78
+ * - **squash** (Boolean) If true the new layers are squashed into a new image with a single new layer
79
+ * - **suppress_output** (Boolean) Suppress the build output and print image ID on success
80
+ * - **target** (String) Set the target build stage to build
81
+ * - **ulimit** (Block List) Configuration for ulimits (see below for nested schema)
82
+ * - **version** (String) Version of the unerlying builder to use
83
+ *
84
+ * <a id="nestedblock--build--auth_config"></a>
85
+ * ### Nested Schema for `build.auth_config`
86
+ *
87
+ * Required:
88
+ *
89
+ * - **host_name** (String) hostname of the registry
90
+ *
91
+ * Optional:
92
+ *
93
+ * - **auth** (String) the auth token
94
+ * - **email** (String) the user emal
95
+ * - **identity_token** (String) the identity token
96
+ * - **password** (String) the registry password
97
+ * - **registry_token** (String) the registry token
98
+ * - **server_address** (String) the server address
99
+ * - **user_name** (String) the registry user name
100
+ *
101
+ * <a id="nestedblock--build--ulimit"></a>
102
+ * ### Nested Schema for `build.ulimit`
103
+ *
104
+ * Required:
105
+ *
106
+ * - **hard** (Number) soft limit
107
+ * - **name** (String) type of ulimit, e.g. `nofile`
108
+ * - **soft** (Number) hard limit
22
109
  */
23
110
  class RegistryImage extends pulumi.CustomResource {
24
111
  constructor(name, argsOrState, opts) {
@@ -27,6 +114,7 @@ class RegistryImage extends pulumi.CustomResource {
27
114
  if (opts.id) {
28
115
  const state = argsOrState;
29
116
  inputs["build"] = state ? state.build : undefined;
117
+ inputs["insecureSkipVerify"] = state ? state.insecureSkipVerify : undefined;
30
118
  inputs["keepRemotely"] = state ? state.keepRemotely : undefined;
31
119
  inputs["name"] = state ? state.name : undefined;
32
120
  inputs["sha256Digest"] = state ? state.sha256Digest : undefined;
@@ -34,6 +122,7 @@ class RegistryImage extends pulumi.CustomResource {
34
122
  else {
35
123
  const args = argsOrState;
36
124
  inputs["build"] = args ? args.build : undefined;
125
+ inputs["insecureSkipVerify"] = args ? args.insecureSkipVerify : undefined;
37
126
  inputs["keepRemotely"] = args ? args.keepRemotely : undefined;
38
127
  inputs["name"] = args ? args.name : undefined;
39
128
  inputs["sha256Digest"] = undefined /*out*/;
@@ -1 +1 @@
1
- {"version":3,"file":"registryImage.js","sourceRoot":"","sources":["../registryImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IAoDpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC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