@pulumi/docker 4.6.0-alpha.1709362770 → 4.6.0-alpha.1710440180
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/container.d.ts +19 -19
- package/container.js +19 -19
- package/getNetwork.d.ts +4 -0
- package/getNetwork.js +4 -0
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +10 -0
- package/getPlugin.js +10 -0
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +4 -0
- package/getRegistryImage.js +4 -0
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +4 -0
- package/getRemoteImage.js +4 -0
- package/getRemoteImage.js.map +1 -1
- package/image.d.ts +1 -3
- package/image.js +1 -3
- package/image.js.map +1 -1
- package/network.d.ts +14 -12
- package/network.js +14 -12
- package/network.js.map +1 -1
- package/package.json +1 -1
- package/plugin.d.ts +2 -0
- package/plugin.js +2 -0
- package/plugin.js.map +1 -1
- package/registryImage.d.ts +2 -0
- package/registryImage.js +2 -0
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +34 -0
- package/remoteImage.js +34 -0
- package/remoteImage.js.map +1 -1
- package/secret.d.ts +1 -1
- package/secret.js +1 -1
- package/service.d.ts +23 -25
- package/service.js +23 -25
- package/service.js.map +1 -1
- package/serviceConfig.d.ts +13 -13
- package/serviceConfig.js +13 -13
- package/volume.d.ts +14 -12
- package/volume.js +14 -12
- package/volume.js.map +1 -1
package/container.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
13
|
* import * as docker from "@pulumi/docker";
|
|
@@ -16,46 +17,45 @@ import * as outputs from "./types/output";
|
|
|
16
17
|
* // Start a container
|
|
17
18
|
* const ubuntuContainer = new docker.Container("ubuntuContainer", {image: ubuntuRemoteImage.imageId});
|
|
18
19
|
* ```
|
|
20
|
+
* <!--End PulumiCodeChooser -->
|
|
19
21
|
*
|
|
20
22
|
* ## Import
|
|
21
23
|
*
|
|
22
24
|
* ### Example
|
|
23
25
|
*
|
|
24
|
-
*
|
|
26
|
+
* Assuming you created a `container` as follows
|
|
25
27
|
*
|
|
26
|
-
*
|
|
28
|
+
* #!/bin/bash
|
|
27
29
|
*
|
|
28
|
-
*
|
|
30
|
+
* docker run --name foo -p8080:80 -d nginx
|
|
29
31
|
*
|
|
30
|
-
*
|
|
32
|
+
* prints the container ID
|
|
31
33
|
*
|
|
32
|
-
*
|
|
34
|
+
* 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd
|
|
33
35
|
*
|
|
34
|
-
*
|
|
36
|
+
* you provide the definition for the resource as follows
|
|
35
37
|
*
|
|
36
|
-
*
|
|
38
|
+
* terraform
|
|
37
39
|
*
|
|
38
|
-
*
|
|
40
|
+
* resource "docker_container" "foo" {
|
|
39
41
|
*
|
|
40
|
-
*
|
|
42
|
+
* name = "foo"
|
|
41
43
|
*
|
|
42
|
-
* = "
|
|
44
|
+
* image = "nginx"
|
|
43
45
|
*
|
|
44
|
-
*
|
|
46
|
+
* ports {
|
|
45
47
|
*
|
|
46
|
-
*
|
|
48
|
+
* internal = "80"
|
|
47
49
|
*
|
|
48
|
-
*
|
|
50
|
+
* external = "8080"
|
|
49
51
|
*
|
|
50
|
-
*
|
|
52
|
+
* }
|
|
51
53
|
*
|
|
52
|
-
*
|
|
54
|
+
* }
|
|
53
55
|
*
|
|
54
|
-
*
|
|
56
|
+
* then the import command is as follows
|
|
55
57
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* #!/bin/bash
|
|
58
|
+
* #!/bin/bash
|
|
59
59
|
*
|
|
60
60
|
* ```sh
|
|
61
61
|
* $ pulumi import docker:index/container:Container foo 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd
|
package/container.js
CHANGED
|
@@ -11,6 +11,7 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
14
15
|
* ```typescript
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as docker from "@pulumi/docker";
|
|
@@ -20,46 +21,45 @@ const utilities = require("./utilities");
|
|
|
20
21
|
* // Start a container
|
|
21
22
|
* const ubuntuContainer = new docker.Container("ubuntuContainer", {image: ubuntuRemoteImage.imageId});
|
|
22
23
|
* ```
|
|
24
|
+
* <!--End PulumiCodeChooser -->
|
|
23
25
|
*
|
|
24
26
|
* ## Import
|
|
25
27
|
*
|
|
26
28
|
* ### Example
|
|
27
29
|
*
|
|
28
|
-
*
|
|
30
|
+
* Assuming you created a `container` as follows
|
|
29
31
|
*
|
|
30
|
-
*
|
|
32
|
+
* #!/bin/bash
|
|
31
33
|
*
|
|
32
|
-
*
|
|
34
|
+
* docker run --name foo -p8080:80 -d nginx
|
|
33
35
|
*
|
|
34
|
-
*
|
|
36
|
+
* prints the container ID
|
|
35
37
|
*
|
|
36
|
-
*
|
|
38
|
+
* 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd
|
|
37
39
|
*
|
|
38
|
-
*
|
|
40
|
+
* you provide the definition for the resource as follows
|
|
39
41
|
*
|
|
40
|
-
*
|
|
42
|
+
* terraform
|
|
41
43
|
*
|
|
42
|
-
*
|
|
44
|
+
* resource "docker_container" "foo" {
|
|
43
45
|
*
|
|
44
|
-
*
|
|
46
|
+
* name = "foo"
|
|
45
47
|
*
|
|
46
|
-
* = "
|
|
48
|
+
* image = "nginx"
|
|
47
49
|
*
|
|
48
|
-
*
|
|
50
|
+
* ports {
|
|
49
51
|
*
|
|
50
|
-
*
|
|
52
|
+
* internal = "80"
|
|
51
53
|
*
|
|
52
|
-
*
|
|
54
|
+
* external = "8080"
|
|
53
55
|
*
|
|
54
|
-
*
|
|
56
|
+
* }
|
|
55
57
|
*
|
|
56
|
-
*
|
|
58
|
+
* }
|
|
57
59
|
*
|
|
58
|
-
*
|
|
60
|
+
* then the import command is as follows
|
|
59
61
|
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* #!/bin/bash
|
|
62
|
+
* #!/bin/bash
|
|
63
63
|
*
|
|
64
64
|
* ```sh
|
|
65
65
|
* $ pulumi import docker:index/container:Container foo 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd
|
package/getNetwork.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
*
|
|
6
6
|
* ## Example Usage
|
|
7
7
|
*
|
|
8
|
+
* <!--Start PulumiCodeChooser -->
|
|
8
9
|
* ```typescript
|
|
9
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
11
|
* import * as docker from "@pulumi/docker";
|
|
@@ -13,6 +14,7 @@ import * as outputs from "./types/output";
|
|
|
13
14
|
* name: "main",
|
|
14
15
|
* });
|
|
15
16
|
* ```
|
|
17
|
+
* <!--End PulumiCodeChooser -->
|
|
16
18
|
*/
|
|
17
19
|
export declare function getNetwork(args: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkResult>;
|
|
18
20
|
/**
|
|
@@ -64,6 +66,7 @@ export interface GetNetworkResult {
|
|
|
64
66
|
*
|
|
65
67
|
* ## Example Usage
|
|
66
68
|
*
|
|
69
|
+
* <!--Start PulumiCodeChooser -->
|
|
67
70
|
* ```typescript
|
|
68
71
|
* import * as pulumi from "@pulumi/pulumi";
|
|
69
72
|
* import * as docker from "@pulumi/docker";
|
|
@@ -72,6 +75,7 @@ export interface GetNetworkResult {
|
|
|
72
75
|
* name: "main",
|
|
73
76
|
* });
|
|
74
77
|
* ```
|
|
78
|
+
* <!--End PulumiCodeChooser -->
|
|
75
79
|
*/
|
|
76
80
|
export declare function getNetworkOutput(args: GetNetworkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNetworkResult>;
|
|
77
81
|
/**
|
package/getNetwork.js
CHANGED
|
@@ -10,6 +10,7 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
14
|
* ```typescript
|
|
14
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
16
|
* import * as docker from "@pulumi/docker";
|
|
@@ -18,6 +19,7 @@ const utilities = require("./utilities");
|
|
|
18
19
|
* name: "main",
|
|
19
20
|
* });
|
|
20
21
|
* ```
|
|
22
|
+
* <!--End PulumiCodeChooser -->
|
|
21
23
|
*/
|
|
22
24
|
function getNetwork(args, opts) {
|
|
23
25
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -31,6 +33,7 @@ exports.getNetwork = getNetwork;
|
|
|
31
33
|
*
|
|
32
34
|
* ## Example Usage
|
|
33
35
|
*
|
|
36
|
+
* <!--Start PulumiCodeChooser -->
|
|
34
37
|
* ```typescript
|
|
35
38
|
* import * as pulumi from "@pulumi/pulumi";
|
|
36
39
|
* import * as docker from "@pulumi/docker";
|
|
@@ -39,6 +42,7 @@ exports.getNetwork = getNetwork;
|
|
|
39
42
|
* name: "main",
|
|
40
43
|
* });
|
|
41
44
|
* ```
|
|
45
|
+
* <!--End PulumiCodeChooser -->
|
|
42
46
|
*/
|
|
43
47
|
function getNetworkOutput(args, opts) {
|
|
44
48
|
return pulumi.output(args).apply((a) => getNetwork(a, opts));
|
package/getNetwork.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNetwork.js","sourceRoot":"","sources":["../getNetwork.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getNetwork.js","sourceRoot":"","sources":["../getNetwork.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AA6CD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|
package/getPlugin.d.ts
CHANGED
|
@@ -8,6 +8,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* data "docker.Plugin" "byAlias" {
|
|
9
9
|
* alias = "sample-volume-plugin:latest"
|
|
10
10
|
* }
|
|
11
|
+
*
|
|
12
|
+
* ### With ID
|
|
13
|
+
* data "docker.Plugin" "byId" {
|
|
14
|
+
* id = "e9a9db917b3bfd6706b5d3a66d4bceb9f"
|
|
15
|
+
* }
|
|
11
16
|
*/
|
|
12
17
|
export declare function getPlugin(args?: GetPluginArgs, opts?: pulumi.InvokeOptions): Promise<GetPluginResult>;
|
|
13
18
|
/**
|
|
@@ -65,6 +70,11 @@ export interface GetPluginResult {
|
|
|
65
70
|
* data "docker.Plugin" "byAlias" {
|
|
66
71
|
* alias = "sample-volume-plugin:latest"
|
|
67
72
|
* }
|
|
73
|
+
*
|
|
74
|
+
* ### With ID
|
|
75
|
+
* data "docker.Plugin" "byId" {
|
|
76
|
+
* id = "e9a9db917b3bfd6706b5d3a66d4bceb9f"
|
|
77
|
+
* }
|
|
68
78
|
*/
|
|
69
79
|
export declare function getPluginOutput(args?: GetPluginOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPluginResult>;
|
|
70
80
|
/**
|
package/getPlugin.js
CHANGED
|
@@ -14,6 +14,11 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* data "docker.Plugin" "byAlias" {
|
|
15
15
|
* alias = "sample-volume-plugin:latest"
|
|
16
16
|
* }
|
|
17
|
+
*
|
|
18
|
+
* ### With ID
|
|
19
|
+
* data "docker.Plugin" "byId" {
|
|
20
|
+
* id = "e9a9db917b3bfd6706b5d3a66d4bceb9f"
|
|
21
|
+
* }
|
|
17
22
|
*/
|
|
18
23
|
function getPlugin(args, opts) {
|
|
19
24
|
args = args || {};
|
|
@@ -33,6 +38,11 @@ exports.getPlugin = getPlugin;
|
|
|
33
38
|
* data "docker.Plugin" "byAlias" {
|
|
34
39
|
* alias = "sample-volume-plugin:latest"
|
|
35
40
|
* }
|
|
41
|
+
*
|
|
42
|
+
* ### With ID
|
|
43
|
+
* data "docker.Plugin" "byId" {
|
|
44
|
+
* id = "e9a9db917b3bfd6706b5d3a66d4bceb9f"
|
|
45
|
+
* }
|
|
36
46
|
*/
|
|
37
47
|
function getPluginOutput(args, opts) {
|
|
38
48
|
return pulumi.output(args).apply((a) => getPlugin(a, opts));
|
package/getPlugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPlugin.js","sourceRoot":"","sources":["../getPlugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getPlugin.js","sourceRoot":"","sources":["../getPlugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8BAQC;AAiDD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/getRegistryImage.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
7
|
+
* <!--Start PulumiCodeChooser -->
|
|
7
8
|
* ```typescript
|
|
8
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
10
|
* import * as docker from "@pulumi/docker";
|
|
@@ -16,6 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
17
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
17
18
|
* });
|
|
18
19
|
* ```
|
|
20
|
+
* <!--End PulumiCodeChooser -->
|
|
19
21
|
*/
|
|
20
22
|
export declare function getRegistryImage(args: GetRegistryImageArgs, opts?: pulumi.InvokeOptions): Promise<GetRegistryImageResult>;
|
|
21
23
|
/**
|
|
@@ -57,6 +59,7 @@ export interface GetRegistryImageResult {
|
|
|
57
59
|
*
|
|
58
60
|
* ## Example Usage
|
|
59
61
|
*
|
|
62
|
+
* <!--Start PulumiCodeChooser -->
|
|
60
63
|
* ```typescript
|
|
61
64
|
* import * as pulumi from "@pulumi/pulumi";
|
|
62
65
|
* import * as docker from "@pulumi/docker";
|
|
@@ -69,6 +72,7 @@ export interface GetRegistryImageResult {
|
|
|
69
72
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
70
73
|
* });
|
|
71
74
|
* ```
|
|
75
|
+
* <!--End PulumiCodeChooser -->
|
|
72
76
|
*/
|
|
73
77
|
export declare function getRegistryImageOutput(args: GetRegistryImageOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRegistryImageResult>;
|
|
74
78
|
/**
|
package/getRegistryImage.js
CHANGED
|
@@ -10,6 +10,7 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
14
|
* ```typescript
|
|
14
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
16
|
* import * as docker from "@pulumi/docker";
|
|
@@ -22,6 +23,7 @@ const utilities = require("./utilities");
|
|
|
22
23
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
23
24
|
* });
|
|
24
25
|
* ```
|
|
26
|
+
* <!--End PulumiCodeChooser -->
|
|
25
27
|
*/
|
|
26
28
|
function getRegistryImage(args, opts) {
|
|
27
29
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -36,6 +38,7 @@ exports.getRegistryImage = getRegistryImage;
|
|
|
36
38
|
*
|
|
37
39
|
* ## Example Usage
|
|
38
40
|
*
|
|
41
|
+
* <!--Start PulumiCodeChooser -->
|
|
39
42
|
* ```typescript
|
|
40
43
|
* import * as pulumi from "@pulumi/pulumi";
|
|
41
44
|
* import * as docker from "@pulumi/docker";
|
|
@@ -48,6 +51,7 @@ exports.getRegistryImage = getRegistryImage;
|
|
|
48
51
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
49
52
|
* });
|
|
50
53
|
* ```
|
|
54
|
+
* <!--End PulumiCodeChooser -->
|
|
51
55
|
*/
|
|
52
56
|
function getRegistryImageOutput(args, opts) {
|
|
53
57
|
return pulumi.output(args).apply((a) => getRegistryImage(a, opts));
|
package/getRegistryImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRegistryImage.js","sourceRoot":"","sources":["../getRegistryImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getRegistryImage.js","sourceRoot":"","sources":["../getRegistryImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IAEpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4CAOC;AAqCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
|
package/getRemoteImage.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
7
|
+
* <!--Start PulumiCodeChooser -->
|
|
7
8
|
* ```typescript
|
|
8
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
10
|
* import * as docker from "@pulumi/docker";
|
|
@@ -21,6 +22,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
21
22
|
* name: "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
|
|
22
23
|
* });
|
|
23
24
|
* ```
|
|
25
|
+
* <!--End PulumiCodeChooser -->
|
|
24
26
|
*/
|
|
25
27
|
export declare function getRemoteImage(args: GetRemoteImageArgs, opts?: pulumi.InvokeOptions): Promise<GetRemoteImageResult>;
|
|
26
28
|
/**
|
|
@@ -54,6 +56,7 @@ export interface GetRemoteImageResult {
|
|
|
54
56
|
*
|
|
55
57
|
* ## Example Usage
|
|
56
58
|
*
|
|
59
|
+
* <!--Start PulumiCodeChooser -->
|
|
57
60
|
* ```typescript
|
|
58
61
|
* import * as pulumi from "@pulumi/pulumi";
|
|
59
62
|
* import * as docker from "@pulumi/docker";
|
|
@@ -71,6 +74,7 @@ export interface GetRemoteImageResult {
|
|
|
71
74
|
* name: "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
|
|
72
75
|
* });
|
|
73
76
|
* ```
|
|
77
|
+
* <!--End PulumiCodeChooser -->
|
|
74
78
|
*/
|
|
75
79
|
export declare function getRemoteImageOutput(args: GetRemoteImageOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRemoteImageResult>;
|
|
76
80
|
/**
|
package/getRemoteImage.js
CHANGED
|
@@ -10,6 +10,7 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
13
14
|
* ```typescript
|
|
14
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
16
|
* import * as docker from "@pulumi/docker";
|
|
@@ -27,6 +28,7 @@ const utilities = require("./utilities");
|
|
|
27
28
|
* name: "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
|
|
28
29
|
* });
|
|
29
30
|
* ```
|
|
31
|
+
* <!--End PulumiCodeChooser -->
|
|
30
32
|
*/
|
|
31
33
|
function getRemoteImage(args, opts) {
|
|
32
34
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -40,6 +42,7 @@ exports.getRemoteImage = getRemoteImage;
|
|
|
40
42
|
*
|
|
41
43
|
* ## Example Usage
|
|
42
44
|
*
|
|
45
|
+
* <!--Start PulumiCodeChooser -->
|
|
43
46
|
* ```typescript
|
|
44
47
|
* import * as pulumi from "@pulumi/pulumi";
|
|
45
48
|
* import * as docker from "@pulumi/docker";
|
|
@@ -57,6 +60,7 @@ exports.getRemoteImage = getRemoteImage;
|
|
|
57
60
|
* name: "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
|
|
58
61
|
* });
|
|
59
62
|
* ```
|
|
63
|
+
* <!--End PulumiCodeChooser -->
|
|
60
64
|
*/
|
|
61
65
|
function getRemoteImageOutput(args, opts) {
|
|
62
66
|
return pulumi.output(args).apply((a) => getRemoteImage(a, opts));
|
package/getRemoteImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRemoteImage.js","sourceRoot":"","sources":["../getRemoteImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getRemoteImage.js","sourceRoot":"","sources":["../getRemoteImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAEhF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wCAMC;AA6BD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}
|
package/image.d.ts
CHANGED
|
@@ -36,11 +36,9 @@ import * as inputs from "./types/input";
|
|
|
36
36
|
*
|
|
37
37
|
* const demoImage = new docker.Image("demo-image", {
|
|
38
38
|
* build: {
|
|
39
|
-
* args: {
|
|
40
|
-
* platform: "linux/amd64",
|
|
41
|
-
* },
|
|
42
39
|
* context: ".",
|
|
43
40
|
* dockerfile: "Dockerfile",
|
|
41
|
+
* platform: "linux/amd64",
|
|
44
42
|
* },
|
|
45
43
|
* imageName: "username/image:tag1",
|
|
46
44
|
* skipPush: true,
|
package/image.js
CHANGED
|
@@ -41,11 +41,9 @@ const utilities = require("./utilities");
|
|
|
41
41
|
*
|
|
42
42
|
* const demoImage = new docker.Image("demo-image", {
|
|
43
43
|
* build: {
|
|
44
|
-
* args: {
|
|
45
|
-
* platform: "linux/amd64",
|
|
46
|
-
* },
|
|
47
44
|
* context: ".",
|
|
48
45
|
* dockerfile: "Dockerfile",
|
|
46
|
+
* platform: "linux/amd64",
|
|
49
47
|
* },
|
|
50
48
|
* imageName: "username/image:tag1",
|
|
51
49
|
* skipPush: true,
|
package/image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../image.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../image.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,SAAgB,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IAqCD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAe,EAAE,IAAmC;;QAC1E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACv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;YACH,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AApGL,sBAqGC;AAxFG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/network.d.ts
CHANGED
|
@@ -7,40 +7,42 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
13
|
* import * as docker from "@pulumi/docker";
|
|
13
14
|
*
|
|
14
15
|
* const privateNetwork = new docker.Network("privateNetwork", {});
|
|
15
16
|
* ```
|
|
17
|
+
* <!--End PulumiCodeChooser -->
|
|
16
18
|
*
|
|
17
19
|
* ## Import
|
|
18
20
|
*
|
|
19
21
|
* ### Example
|
|
20
22
|
*
|
|
21
|
-
*
|
|
23
|
+
* Assuming you created a `network` as follows
|
|
22
24
|
*
|
|
23
|
-
*
|
|
25
|
+
* #!/bin/bash
|
|
24
26
|
*
|
|
25
|
-
*
|
|
27
|
+
* docker network create foo
|
|
26
28
|
*
|
|
27
|
-
*
|
|
29
|
+
* prints the long ID
|
|
28
30
|
*
|
|
29
|
-
*
|
|
31
|
+
* 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73
|
|
30
32
|
*
|
|
31
|
-
*
|
|
33
|
+
* you provide the definition for the resource as follows
|
|
32
34
|
*
|
|
33
|
-
*
|
|
35
|
+
* terraform
|
|
34
36
|
*
|
|
35
|
-
*
|
|
37
|
+
* resource "docker_network" "foo" {
|
|
36
38
|
*
|
|
37
|
-
*
|
|
39
|
+
* name = "foo"
|
|
38
40
|
*
|
|
39
|
-
*
|
|
41
|
+
* }
|
|
40
42
|
*
|
|
41
|
-
*
|
|
43
|
+
* then the import command is as follows
|
|
42
44
|
*
|
|
43
|
-
*
|
|
45
|
+
* #!/bin/bash
|
|
44
46
|
*
|
|
45
47
|
* ```sh
|
|
46
48
|
* $ pulumi import docker:index/network:Network foo 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73
|
package/network.js
CHANGED
|
@@ -11,40 +11,42 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
14
15
|
* ```typescript
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as docker from "@pulumi/docker";
|
|
17
18
|
*
|
|
18
19
|
* const privateNetwork = new docker.Network("privateNetwork", {});
|
|
19
20
|
* ```
|
|
21
|
+
* <!--End PulumiCodeChooser -->
|
|
20
22
|
*
|
|
21
23
|
* ## Import
|
|
22
24
|
*
|
|
23
25
|
* ### Example
|
|
24
26
|
*
|
|
25
|
-
*
|
|
27
|
+
* Assuming you created a `network` as follows
|
|
26
28
|
*
|
|
27
|
-
*
|
|
29
|
+
* #!/bin/bash
|
|
28
30
|
*
|
|
29
|
-
*
|
|
31
|
+
* docker network create foo
|
|
30
32
|
*
|
|
31
|
-
*
|
|
33
|
+
* prints the long ID
|
|
32
34
|
*
|
|
33
|
-
*
|
|
35
|
+
* 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73
|
|
34
36
|
*
|
|
35
|
-
*
|
|
37
|
+
* you provide the definition for the resource as follows
|
|
36
38
|
*
|
|
37
|
-
*
|
|
39
|
+
* terraform
|
|
38
40
|
*
|
|
39
|
-
*
|
|
41
|
+
* resource "docker_network" "foo" {
|
|
40
42
|
*
|
|
41
|
-
*
|
|
43
|
+
* name = "foo"
|
|
42
44
|
*
|
|
43
|
-
*
|
|
45
|
+
* }
|
|
44
46
|
*
|
|
45
|
-
*
|
|
47
|
+
* then the import command is as follows
|
|
46
48
|
*
|
|
47
|
-
*
|
|
49
|
+
* #!/bin/bash
|
|
48
50
|
*
|
|
49
51
|
* ```sh
|
|
50
52
|
* $ pulumi import docker:index/network:Network foo 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73
|
package/network.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../network.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"network.js","sourceRoot":"","sources":["../network.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,OAAQ,SAAQ,MA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hHG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
package/package.json
CHANGED
package/plugin.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
13
|
* import * as docker from "@pulumi/docker";
|
|
@@ -21,6 +22,7 @@ import * as outputs from "./types/output";
|
|
|
21
22
|
* grantAllPermissions: true,
|
|
22
23
|
* });
|
|
23
24
|
* ```
|
|
25
|
+
* <!--End PulumiCodeChooser -->
|
|
24
26
|
*
|
|
25
27
|
* ## Import
|
|
26
28
|
*
|
package/plugin.js
CHANGED
|
@@ -11,6 +11,7 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
14
15
|
* ```typescript
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as docker from "@pulumi/docker";
|
|
@@ -25,6 +26,7 @@ const utilities = require("./utilities");
|
|
|
25
26
|
* grantAllPermissions: true,
|
|
26
27
|
* });
|
|
27
28
|
* ```
|
|
29
|
+
* <!--End PulumiCodeChooser -->
|
|
28
30
|
*
|
|
29
31
|
* ## Import
|
|
30
32
|
*
|
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;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../plugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAE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I,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA3GL,wBA4GC;AA9FG,gBAAgB;AACO,mBAAY,GAAG,4BAA4B,CAAC"}
|
package/registryImage.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
7
7
|
*
|
|
8
8
|
* Build an image with the `docker.RemoteImage` resource and then push it to a registry:
|
|
9
9
|
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
13
|
* import * as docker from "@pulumi/docker";
|
|
@@ -19,6 +20,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
20
|
* },
|
|
20
21
|
* });
|
|
21
22
|
* ```
|
|
23
|
+
* <!--End PulumiCodeChooser -->
|
|
22
24
|
*/
|
|
23
25
|
export declare class RegistryImage extends pulumi.CustomResource {
|
|
24
26
|
/**
|
package/registryImage.js
CHANGED
|
@@ -13,6 +13,7 @@ const utilities = require("./utilities");
|
|
|
13
13
|
*
|
|
14
14
|
* Build an image with the `docker.RemoteImage` resource and then push it to a registry:
|
|
15
15
|
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
16
17
|
* ```typescript
|
|
17
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
19
|
* import * as docker from "@pulumi/docker";
|
|
@@ -25,6 +26,7 @@ const utilities = require("./utilities");
|
|
|
25
26
|
* },
|
|
26
27
|
* });
|
|
27
28
|
* ```
|
|
29
|
+
* <!--End PulumiCodeChooser -->
|
|
28
30
|
*/
|
|
29
31
|
class RegistryImage extends pulumi.CustomResource {
|
|
30
32
|
/**
|
package/registryImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registryImage.js","sourceRoot":"","sources":["../registryImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"registryImage.js","sourceRoot":"","sources":["../registryImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D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AAS,CAAC;YAC9D,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA7EL,sCA8EC;AAhEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/remoteImage.d.ts
CHANGED
|
@@ -7,22 +7,27 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
* 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.
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
|
+
*
|
|
10
11
|
* ### Basic
|
|
11
12
|
*
|
|
12
13
|
* Finds and downloads the latest `ubuntu:precise` image but does not check
|
|
13
14
|
* for further updates of the image
|
|
14
15
|
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
17
|
* ```typescript
|
|
16
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
19
|
* import * as docker from "@pulumi/docker";
|
|
18
20
|
*
|
|
19
21
|
* const ubuntu = new docker.RemoteImage("ubuntu", {name: "ubuntu:precise"});
|
|
20
22
|
* ```
|
|
23
|
+
* <!--End PulumiCodeChooser -->
|
|
24
|
+
*
|
|
21
25
|
* ### Dynamic updates
|
|
22
26
|
*
|
|
23
27
|
* To be able to update an image dynamically when the `sha256` sum changes,
|
|
24
28
|
* you need to use it in combination with `docker.RegistryImage` as follows:
|
|
25
29
|
*
|
|
30
|
+
* <!--Start PulumiCodeChooser -->
|
|
26
31
|
* ```typescript
|
|
27
32
|
* import * as pulumi from "@pulumi/pulumi";
|
|
28
33
|
* import * as docker from "@pulumi/docker";
|
|
@@ -35,6 +40,35 @@ import * as outputs from "./types/output";
|
|
|
35
40
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
36
41
|
* });
|
|
37
42
|
* ```
|
|
43
|
+
* <!--End PulumiCodeChooser -->
|
|
44
|
+
*
|
|
45
|
+
* ### Build
|
|
46
|
+
*
|
|
47
|
+
* You can also use the resource to build an image.
|
|
48
|
+
* In this case the image "zoo" and "zoo:develop" are built.
|
|
49
|
+
*
|
|
50
|
+
* <!--Start PulumiCodeChooser -->
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as docker from "@pulumi/docker";
|
|
54
|
+
*
|
|
55
|
+
* const zoo = new docker.RemoteImage("zoo", {
|
|
56
|
+
* name: "zoo",
|
|
57
|
+
* build: {
|
|
58
|
+
* context: ".",
|
|
59
|
+
* tags: ["zoo:develop"],
|
|
60
|
+
* buildArg: {
|
|
61
|
+
* foo: "zoo",
|
|
62
|
+
* },
|
|
63
|
+
* label: {
|
|
64
|
+
* author: "zoo",
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
* <!--End PulumiCodeChooser -->
|
|
70
|
+
*
|
|
71
|
+
* You can use the `triggers` argument to specify when the image should be rebuild. This is for example helpful when you want to rebuild the docker image whenever the source code changes.
|
|
38
72
|
*/
|
|
39
73
|
export declare class RemoteImage extends pulumi.CustomResource {
|
|
40
74
|
/**
|
package/remoteImage.js
CHANGED
|
@@ -11,22 +11,27 @@ const utilities = require("./utilities");
|
|
|
11
11
|
* 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.
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
|
+
*
|
|
14
15
|
* ### Basic
|
|
15
16
|
*
|
|
16
17
|
* Finds and downloads the latest `ubuntu:precise` image but does not check
|
|
17
18
|
* for further updates of the image
|
|
18
19
|
*
|
|
20
|
+
* <!--Start PulumiCodeChooser -->
|
|
19
21
|
* ```typescript
|
|
20
22
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
23
|
* import * as docker from "@pulumi/docker";
|
|
22
24
|
*
|
|
23
25
|
* const ubuntu = new docker.RemoteImage("ubuntu", {name: "ubuntu:precise"});
|
|
24
26
|
* ```
|
|
27
|
+
* <!--End PulumiCodeChooser -->
|
|
28
|
+
*
|
|
25
29
|
* ### Dynamic updates
|
|
26
30
|
*
|
|
27
31
|
* To be able to update an image dynamically when the `sha256` sum changes,
|
|
28
32
|
* you need to use it in combination with `docker.RegistryImage` as follows:
|
|
29
33
|
*
|
|
34
|
+
* <!--Start PulumiCodeChooser -->
|
|
30
35
|
* ```typescript
|
|
31
36
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
37
|
* import * as docker from "@pulumi/docker";
|
|
@@ -39,6 +44,35 @@ const utilities = require("./utilities");
|
|
|
39
44
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
40
45
|
* });
|
|
41
46
|
* ```
|
|
47
|
+
* <!--End PulumiCodeChooser -->
|
|
48
|
+
*
|
|
49
|
+
* ### Build
|
|
50
|
+
*
|
|
51
|
+
* You can also use the resource to build an image.
|
|
52
|
+
* In this case the image "zoo" and "zoo:develop" are built.
|
|
53
|
+
*
|
|
54
|
+
* <!--Start PulumiCodeChooser -->
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
57
|
+
* import * as docker from "@pulumi/docker";
|
|
58
|
+
*
|
|
59
|
+
* const zoo = new docker.RemoteImage("zoo", {
|
|
60
|
+
* name: "zoo",
|
|
61
|
+
* build: {
|
|
62
|
+
* context: ".",
|
|
63
|
+
* tags: ["zoo:develop"],
|
|
64
|
+
* buildArg: {
|
|
65
|
+
* foo: "zoo",
|
|
66
|
+
* },
|
|
67
|
+
* label: {
|
|
68
|
+
* author: "zoo",
|
|
69
|
+
* },
|
|
70
|
+
* },
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
* <!--End PulumiCodeChooser -->
|
|
74
|
+
*
|
|
75
|
+
* You can use the `triggers` argument to specify when the image should be rebuild. This is for example helpful when you want to rebuild the docker image whenever the source code changes.
|
|
42
76
|
*/
|
|
43
77
|
class RemoteImage extends pulumi.CustomResource {
|
|
44
78
|
/**
|
package/remoteImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remoteImage.js","sourceRoot":"","sources":["../remoteImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"remoteImage.js","sourceRoot":"","sources":["../remoteImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;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;IA+CD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IA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7 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* #!/bin/bash
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* Docker secret cannot be imported as the secret data, once set, is never exposed again.
|
|
10
10
|
*/
|
|
11
11
|
export declare class Secret extends pulumi.CustomResource {
|
|
12
12
|
/**
|
package/secret.js
CHANGED
|
@@ -10,7 +10,7 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* #!/bin/bash
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* Docker secret cannot be imported as the secret data, once set, is never exposed again.
|
|
14
14
|
*/
|
|
15
15
|
class Secret extends pulumi.CustomResource {
|
|
16
16
|
/**
|
package/service.d.ts
CHANGED
|
@@ -11,53 +11,51 @@ import * as outputs from "./types/output";
|
|
|
11
11
|
*
|
|
12
12
|
* ### Example
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Assuming you created a `service` as follows
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* #!/bin/bash
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* docker service create --name foo -p 8080:80 nginx
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* prints th ID
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* 4pcphbxkfn2rffhbhe6czytgi
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* you provide the definition for the resource as follows
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* terraform
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* resource "docker_service" "foo" {
|
|
29
29
|
*
|
|
30
|
-
*
|
|
30
|
+
* name = "foo"
|
|
31
31
|
*
|
|
32
|
-
*
|
|
32
|
+
* task_spec {
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* container_spec {
|
|
35
35
|
*
|
|
36
|
-
*
|
|
36
|
+
* image = "nginx"
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* }
|
|
39
39
|
*
|
|
40
|
-
*
|
|
40
|
+
* }
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* endpoint_spec {
|
|
43
43
|
*
|
|
44
|
-
*
|
|
44
|
+
* ports {
|
|
45
45
|
*
|
|
46
|
-
*
|
|
46
|
+
* target_port = "80"
|
|
47
47
|
*
|
|
48
|
-
* = "
|
|
48
|
+
* published_port = "8080"
|
|
49
49
|
*
|
|
50
|
-
*
|
|
50
|
+
* }
|
|
51
51
|
*
|
|
52
|
-
*
|
|
52
|
+
* }
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* }
|
|
55
55
|
*
|
|
56
|
-
*
|
|
56
|
+
* then the import command is as follows
|
|
57
57
|
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* #!/bin/bash
|
|
58
|
+
* #!/bin/bash
|
|
61
59
|
*
|
|
62
60
|
* ```sh
|
|
63
61
|
* $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
|
package/service.js
CHANGED
|
@@ -15,53 +15,51 @@ const utilities = require("./utilities");
|
|
|
15
15
|
*
|
|
16
16
|
* ### Example
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* Assuming you created a `service` as follows
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* #!/bin/bash
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* docker service create --name foo -p 8080:80 nginx
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* prints th ID
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* 4pcphbxkfn2rffhbhe6czytgi
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* you provide the definition for the resource as follows
|
|
29
29
|
*
|
|
30
|
-
*
|
|
30
|
+
* terraform
|
|
31
31
|
*
|
|
32
|
-
*
|
|
32
|
+
* resource "docker_service" "foo" {
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* name = "foo"
|
|
35
35
|
*
|
|
36
|
-
*
|
|
36
|
+
* task_spec {
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* container_spec {
|
|
39
39
|
*
|
|
40
|
-
*
|
|
40
|
+
* image = "nginx"
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* }
|
|
43
43
|
*
|
|
44
|
-
*
|
|
44
|
+
* }
|
|
45
45
|
*
|
|
46
|
-
*
|
|
46
|
+
* endpoint_spec {
|
|
47
47
|
*
|
|
48
|
-
*
|
|
48
|
+
* ports {
|
|
49
49
|
*
|
|
50
|
-
*
|
|
50
|
+
* target_port = "80"
|
|
51
51
|
*
|
|
52
|
-
* = "
|
|
52
|
+
* published_port = "8080"
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* }
|
|
55
55
|
*
|
|
56
|
-
*
|
|
56
|
+
* }
|
|
57
57
|
*
|
|
58
|
-
*
|
|
58
|
+
* }
|
|
59
59
|
*
|
|
60
|
-
*
|
|
60
|
+
* then the import command is as follows
|
|
61
61
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* #!/bin/bash
|
|
62
|
+
* #!/bin/bash
|
|
65
63
|
*
|
|
66
64
|
* ```sh
|
|
67
65
|
* $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
|
package/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAa,O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IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAxGL,0BAyGC;AA3FG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
package/serviceConfig.d.ts
CHANGED
|
@@ -4,31 +4,31 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ### Example
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Assuming you created a `config` as follows
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* #!/bin/bash
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* printf '{"a":"b"}' | docker config create foo -
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* prints the id
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* you provide the definition for the resource as follows
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* terraform
|
|
20
20
|
*
|
|
21
|
-
*
|
|
21
|
+
* resource "docker_config" "foo" {
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* name = "foo"
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* data = base64encode("{\"a\": \"b\"}")
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* }
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* then the import command is as follows
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* #!/bin/bash
|
|
32
32
|
*
|
|
33
33
|
* ```sh
|
|
34
34
|
* $ pulumi import docker:index/serviceConfig:ServiceConfig foo 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
|
package/serviceConfig.js
CHANGED
|
@@ -10,31 +10,31 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ### Example
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* Assuming you created a `config` as follows
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* #!/bin/bash
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* printf '{"a":"b"}' | docker config create foo -
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* prints the id
|
|
20
20
|
*
|
|
21
|
-
*
|
|
21
|
+
* 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* you provide the definition for the resource as follows
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* terraform
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* resource "docker_config" "foo" {
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* name = "foo"
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* data = base64encode("{\"a\": \"b\"}")
|
|
32
32
|
*
|
|
33
|
-
*
|
|
33
|
+
* }
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* then the import command is as follows
|
|
36
36
|
*
|
|
37
|
-
*
|
|
37
|
+
* #!/bin/bash
|
|
38
38
|
*
|
|
39
39
|
* ```sh
|
|
40
40
|
* $ pulumi import docker:index/serviceConfig:ServiceConfig foo 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
|
package/volume.d.ts
CHANGED
|
@@ -7,40 +7,42 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
13
|
* import * as docker from "@pulumi/docker";
|
|
13
14
|
*
|
|
14
15
|
* const sharedVolume = new docker.Volume("sharedVolume", {});
|
|
15
16
|
* ```
|
|
17
|
+
* <!--End PulumiCodeChooser -->
|
|
16
18
|
*
|
|
17
19
|
* ## Import
|
|
18
20
|
*
|
|
19
21
|
* ### Example
|
|
20
22
|
*
|
|
21
|
-
*
|
|
23
|
+
* Assuming you created a `volume` as follows
|
|
22
24
|
*
|
|
23
|
-
*
|
|
25
|
+
* #!/bin/bash
|
|
24
26
|
*
|
|
25
|
-
*
|
|
27
|
+
* docker volume create
|
|
26
28
|
*
|
|
27
|
-
*
|
|
29
|
+
* prints the long ID
|
|
28
30
|
*
|
|
29
|
-
*
|
|
31
|
+
* 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
30
32
|
*
|
|
31
|
-
*
|
|
33
|
+
* you provide the definition for the resource as follows
|
|
32
34
|
*
|
|
33
|
-
*
|
|
35
|
+
* terraform
|
|
34
36
|
*
|
|
35
|
-
*
|
|
37
|
+
* resource "docker_volume" "foo" {
|
|
36
38
|
*
|
|
37
|
-
*
|
|
39
|
+
* name = "524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d"
|
|
38
40
|
*
|
|
39
|
-
*
|
|
41
|
+
* }
|
|
40
42
|
*
|
|
41
|
-
*
|
|
43
|
+
* then the import command is as follows
|
|
42
44
|
*
|
|
43
|
-
*
|
|
45
|
+
* #!/bin/bash
|
|
44
46
|
*
|
|
45
47
|
* ```sh
|
|
46
48
|
* $ pulumi import docker:index/volume:Volume foo 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
package/volume.js
CHANGED
|
@@ -11,40 +11,42 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
+
* <!--Start PulumiCodeChooser -->
|
|
14
15
|
* ```typescript
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as docker from "@pulumi/docker";
|
|
17
18
|
*
|
|
18
19
|
* const sharedVolume = new docker.Volume("sharedVolume", {});
|
|
19
20
|
* ```
|
|
21
|
+
* <!--End PulumiCodeChooser -->
|
|
20
22
|
*
|
|
21
23
|
* ## Import
|
|
22
24
|
*
|
|
23
25
|
* ### Example
|
|
24
26
|
*
|
|
25
|
-
*
|
|
27
|
+
* Assuming you created a `volume` as follows
|
|
26
28
|
*
|
|
27
|
-
*
|
|
29
|
+
* #!/bin/bash
|
|
28
30
|
*
|
|
29
|
-
*
|
|
31
|
+
* docker volume create
|
|
30
32
|
*
|
|
31
|
-
*
|
|
33
|
+
* prints the long ID
|
|
32
34
|
*
|
|
33
|
-
*
|
|
35
|
+
* 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
34
36
|
*
|
|
35
|
-
*
|
|
37
|
+
* you provide the definition for the resource as follows
|
|
36
38
|
*
|
|
37
|
-
*
|
|
39
|
+
* terraform
|
|
38
40
|
*
|
|
39
|
-
*
|
|
41
|
+
* resource "docker_volume" "foo" {
|
|
40
42
|
*
|
|
41
|
-
*
|
|
43
|
+
* name = "524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d"
|
|
42
44
|
*
|
|
43
|
-
*
|
|
45
|
+
* }
|
|
44
46
|
*
|
|
45
|
-
*
|
|
47
|
+
* then the import command is as follows
|
|
46
48
|
*
|
|
47
|
-
*
|
|
49
|
+
* #!/bin/bash
|
|
48
50
|
*
|
|
49
51
|
* ```sh
|
|
50
52
|
* $ pulumi import docker:index/volume:Volume foo 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
package/volume.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volume.js","sourceRoot":"","sources":["../volume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"volume.js","sourceRoot":"","sources":["../volume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EA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