@pulumi/docker 4.6.0-beta.4 → 4.6.1
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/config/vars.d.ts +6 -8
- package/config/vars.js.map +1 -1
- package/container.d.ts +46 -57
- package/container.js +22 -21
- package/container.js.map +1 -1
- package/getLogs.d.ts +1 -1
- package/getLogs.js +14 -1
- package/getLogs.js.map +1 -1
- package/getNetwork.d.ts +2 -2
- package/getNetwork.js +4 -1
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +27 -9
- package/getPlugin.js +32 -9
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +9 -9
- package/getRegistryImage.js +13 -9
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +9 -1
- package/getRemoteImage.js +12 -1
- package/getRemoteImage.js.map +1 -1
- package/image.d.ts +8 -6
- package/image.js +7 -4
- package/image.js.map +1 -1
- package/index.d.ts +1 -2
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/network.d.ts +19 -19
- package/network.js +13 -13
- package/package.json +4 -3
- package/plugin.d.ts +3 -20
- package/plugin.js +0 -17
- package/plugin.js.map +1 -1
- package/provider.d.ts +11 -14
- package/provider.js.map +1 -1
- package/registryImage.d.ts +3 -20
- package/registryImage.js +0 -17
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +44 -16
- package/remoteImage.js +32 -4
- package/remoteImage.js.map +1 -1
- package/secret.d.ts +1 -1
- package/secret.js +1 -1
- package/service.d.ts +23 -30
- package/service.js +23 -30
- package/service.js.map +1 -1
- package/serviceConfig.d.ts +13 -13
- package/serviceConfig.js +13 -13
- package/types/enums/index.d.ts +0 -2
- package/types/enums/index.js +1 -4
- package/types/enums/index.js.map +1 -1
- package/types/input.d.ts +3 -767
- package/types/input.js +0 -116
- package/types/input.js.map +1 -1
- package/types/output.d.ts +4 -769
- package/types/output.js +0 -115
- package/types/output.js.map +1 -1
- package/volume.d.ts +16 -16
- package/volume.js +13 -13
- package/buildx/image.d.ts +0 -916
- package/buildx/image.js +0 -558
- package/buildx/image.js.map +0 -1
- package/buildx/index.d.ts +0 -7
- package/buildx/index.js +0 -42
- package/buildx/index.js.map +0 -1
- package/buildx/index_.d.ts +0 -140
- package/buildx/index_.js +0 -130
- package/buildx/index_.js.map +0 -1
- package/package.json.bak +0 -28
- package/types/enums/buildx/index.d.ts +0 -72
- package/types/enums/buildx/index.js +0 -74
- package/types/enums/buildx/index.js.map +0 -1
package/plugin.js
CHANGED
|
@@ -9,23 +9,6 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* <!-- Bug: Type and Name are switched -->
|
|
10
10
|
* Manages the lifecycle of a Docker plugin.
|
|
11
11
|
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as docker from "@pulumi/docker";
|
|
17
|
-
*
|
|
18
|
-
* const sample_volume_plugin = new docker.Plugin("sample-volume-plugin", {
|
|
19
|
-
* alias: "sample-volume-plugin",
|
|
20
|
-
* enableTimeout: 60,
|
|
21
|
-
* enabled: false,
|
|
22
|
-
* envs: ["DEBUG=1"],
|
|
23
|
-
* forceDestroy: true,
|
|
24
|
-
* forceDisable: true,
|
|
25
|
-
* grantAllPermissions: true,
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
12
|
* ## Import
|
|
30
13
|
*
|
|
31
14
|
* #!/bin/bash
|
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,y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AAI,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/provider.d.ts
CHANGED
|
@@ -13,24 +13,23 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
13
13
|
*/
|
|
14
14
|
static isInstance(obj: any): obj is Provider;
|
|
15
15
|
/**
|
|
16
|
-
* PEM-encoded content of Docker host CA certificate
|
|
16
|
+
* PEM-encoded content of Docker host CA certificate
|
|
17
17
|
*/
|
|
18
18
|
readonly caMaterial: pulumi.Output<string | undefined>;
|
|
19
19
|
/**
|
|
20
|
-
* PEM-encoded content of Docker client certificate
|
|
20
|
+
* PEM-encoded content of Docker client certificate
|
|
21
21
|
*/
|
|
22
22
|
readonly certMaterial: pulumi.Output<string | undefined>;
|
|
23
23
|
/**
|
|
24
|
-
* Path to
|
|
25
|
-
* files.
|
|
24
|
+
* Path to directory with Docker TLS config
|
|
26
25
|
*/
|
|
27
26
|
readonly certPath: pulumi.Output<string | undefined>;
|
|
28
27
|
/**
|
|
29
|
-
* The Docker daemon
|
|
28
|
+
* The Docker daemon address
|
|
30
29
|
*/
|
|
31
30
|
readonly host: pulumi.Output<string | undefined>;
|
|
32
31
|
/**
|
|
33
|
-
* PEM-encoded content of Docker client private key
|
|
32
|
+
* PEM-encoded content of Docker client private key
|
|
34
33
|
*/
|
|
35
34
|
readonly keyMaterial: pulumi.Output<string | undefined>;
|
|
36
35
|
/**
|
|
@@ -47,30 +46,28 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
47
46
|
*/
|
|
48
47
|
export interface ProviderArgs {
|
|
49
48
|
/**
|
|
50
|
-
* PEM-encoded content of Docker host CA certificate
|
|
49
|
+
* PEM-encoded content of Docker host CA certificate
|
|
51
50
|
*/
|
|
52
51
|
caMaterial?: pulumi.Input<string>;
|
|
53
52
|
/**
|
|
54
|
-
* PEM-encoded content of Docker client certificate
|
|
53
|
+
* PEM-encoded content of Docker client certificate
|
|
55
54
|
*/
|
|
56
55
|
certMaterial?: pulumi.Input<string>;
|
|
57
56
|
/**
|
|
58
|
-
* Path to
|
|
59
|
-
* files.
|
|
57
|
+
* Path to directory with Docker TLS config
|
|
60
58
|
*/
|
|
61
59
|
certPath?: pulumi.Input<string>;
|
|
62
60
|
/**
|
|
63
|
-
* The Docker daemon
|
|
61
|
+
* The Docker daemon address
|
|
64
62
|
*/
|
|
65
63
|
host?: pulumi.Input<string>;
|
|
66
64
|
/**
|
|
67
|
-
* PEM-encoded content of Docker client private key
|
|
65
|
+
* PEM-encoded content of Docker client private key
|
|
68
66
|
*/
|
|
69
67
|
keyMaterial?: pulumi.Input<string>;
|
|
70
68
|
registryAuth?: pulumi.Input<pulumi.Input<inputs.ProviderRegistryAuth>[]>;
|
|
71
69
|
/**
|
|
72
|
-
* Additional SSH option flags to be appended when using `ssh://` protocol
|
|
73
|
-
* `buildx.Image` resources. Instead, use a [remote](https://docs.docker.com/build/drivers/remote/) driver.
|
|
70
|
+
* Additional SSH option flags to be appended when using `ssh://` protocol
|
|
74
71
|
*/
|
|
75
72
|
sshOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
76
73
|
}
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAuBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,U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
|
2
2
|
/**
|
|
3
3
|
* <!-- Bug: Type and Name are switched -->
|
|
4
4
|
* Manages the lifecycle of docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again
|
|
5
|
-
*
|
|
6
|
-
* ## Example Usage
|
|
7
|
-
*
|
|
8
|
-
* Build an image with the `docker.RemoteImage` resource and then push it to a registry:
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as docker from "@pulumi/docker";
|
|
13
|
-
*
|
|
14
|
-
* const helloworld = new docker.RegistryImage("helloworld", {keepRemotely: true});
|
|
15
|
-
* const image = new docker.RemoteImage("image", {
|
|
16
|
-
* name: "registry.com/somename:1.0",
|
|
17
|
-
* build: {
|
|
18
|
-
* context: `${path.cwd}/absolutePathToContextFolder`,
|
|
19
|
-
* },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
5
|
*/
|
|
23
6
|
export declare class RegistryImage extends pulumi.CustomResource {
|
|
24
7
|
/**
|
|
@@ -56,7 +39,7 @@ export declare class RegistryImage extends pulumi.CustomResource {
|
|
|
56
39
|
* A map of arbitrary strings that, when changed, will force the `docker.RegistryImage` resource to be replaced. This can be used to repush a local image
|
|
57
40
|
*/
|
|
58
41
|
readonly triggers: pulumi.Output<{
|
|
59
|
-
[key: string]:
|
|
42
|
+
[key: string]: string;
|
|
60
43
|
} | undefined>;
|
|
61
44
|
/**
|
|
62
45
|
* Create a RegistryImage resource with the given unique name, arguments, and options.
|
|
@@ -91,7 +74,7 @@ export interface RegistryImageState {
|
|
|
91
74
|
* A map of arbitrary strings that, when changed, will force the `docker.RegistryImage` resource to be replaced. This can be used to repush a local image
|
|
92
75
|
*/
|
|
93
76
|
triggers?: pulumi.Input<{
|
|
94
|
-
[key: string]:
|
|
77
|
+
[key: string]: pulumi.Input<string>;
|
|
95
78
|
}>;
|
|
96
79
|
}
|
|
97
80
|
/**
|
|
@@ -114,6 +97,6 @@ export interface RegistryImageArgs {
|
|
|
114
97
|
* A map of arbitrary strings that, when changed, will force the `docker.RegistryImage` resource to be replaced. This can be used to repush a local image
|
|
115
98
|
*/
|
|
116
99
|
triggers?: pulumi.Input<{
|
|
117
|
-
[key: string]:
|
|
100
|
+
[key: string]: pulumi.Input<string>;
|
|
118
101
|
}>;
|
|
119
102
|
}
|
package/registryImage.js
CHANGED
|
@@ -8,23 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* <!-- Bug: Type and Name are switched -->
|
|
10
10
|
* Manages the lifecycle of docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again
|
|
11
|
-
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* Build an image with the `docker.RemoteImage` resource and then push it to a registry:
|
|
15
|
-
*
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as docker from "@pulumi/docker";
|
|
19
|
-
*
|
|
20
|
-
* const helloworld = new docker.RegistryImage("helloworld", {keepRemotely: true});
|
|
21
|
-
* const image = new docker.RemoteImage("image", {
|
|
22
|
-
* name: "registry.com/somename:1.0",
|
|
23
|
-
* build: {
|
|
24
|
-
* context: `${path.cwd}/absolutePathToContextFolder`,
|
|
25
|
-
* },
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
11
|
*/
|
|
29
12
|
class RegistryImage extends pulumi.CustomResource {
|
|
30
13
|
/**
|
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;AAEz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AAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,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,6 +7,7 @@ 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
|
|
@@ -18,6 +19,7 @@ import * as outputs from "./types/output";
|
|
|
18
19
|
*
|
|
19
20
|
* const ubuntu = new docker.RemoteImage("ubuntu", {name: "ubuntu:precise"});
|
|
20
21
|
* ```
|
|
22
|
+
*
|
|
21
23
|
* ### Dynamic updates
|
|
22
24
|
*
|
|
23
25
|
* To be able to update an image dynamically when the `sha256` sum changes,
|
|
@@ -27,14 +29,40 @@ import * as outputs from "./types/output";
|
|
|
27
29
|
* import * as pulumi from "@pulumi/pulumi";
|
|
28
30
|
* import * as docker from "@pulumi/docker";
|
|
29
31
|
*
|
|
30
|
-
* const
|
|
32
|
+
* const ubuntu = docker.getRegistryImage({
|
|
31
33
|
* name: "ubuntu:precise",
|
|
32
34
|
* });
|
|
33
|
-
* const ubuntuRemoteImage = new docker.RemoteImage("
|
|
34
|
-
* name:
|
|
35
|
-
* pullTriggers: [
|
|
35
|
+
* const ubuntuRemoteImage = new docker.RemoteImage("ubuntu", {
|
|
36
|
+
* name: ubuntu.then(ubuntu => ubuntu.name),
|
|
37
|
+
* pullTriggers: [ubuntu.then(ubuntu => ubuntu.sha256Digest)],
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ### Build
|
|
42
|
+
*
|
|
43
|
+
* You can also use the resource to build an image.
|
|
44
|
+
* In this case the image "zoo" and "zoo:develop" are built.
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as docker from "@pulumi/docker";
|
|
49
|
+
*
|
|
50
|
+
* const zoo = new docker.RemoteImage("zoo", {
|
|
51
|
+
* name: "zoo",
|
|
52
|
+
* build: {
|
|
53
|
+
* context: ".",
|
|
54
|
+
* tags: ["zoo:develop"],
|
|
55
|
+
* buildArg: {
|
|
56
|
+
* foo: "zoo",
|
|
57
|
+
* },
|
|
58
|
+
* label: {
|
|
59
|
+
* author: "zoo",
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
36
62
|
* });
|
|
37
63
|
* ```
|
|
64
|
+
*
|
|
65
|
+
* 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
66
|
*/
|
|
39
67
|
export declare class RemoteImage extends pulumi.CustomResource {
|
|
40
68
|
/**
|
|
@@ -57,7 +85,7 @@ export declare class RemoteImage extends pulumi.CustomResource {
|
|
|
57
85
|
*/
|
|
58
86
|
readonly build: pulumi.Output<outputs.RemoteImageBuild | undefined>;
|
|
59
87
|
/**
|
|
60
|
-
*
|
|
88
|
+
* If true, then the image is removed forcibly when the resource is destroyed.
|
|
61
89
|
*/
|
|
62
90
|
readonly forceRemove: pulumi.Output<boolean | undefined>;
|
|
63
91
|
/**
|
|
@@ -69,11 +97,11 @@ export declare class RemoteImage extends pulumi.CustomResource {
|
|
|
69
97
|
*/
|
|
70
98
|
readonly keepLocally: pulumi.Output<boolean | undefined>;
|
|
71
99
|
/**
|
|
72
|
-
*
|
|
100
|
+
* The name of the Docker image, including any tags or SHA256 repo digests.
|
|
73
101
|
*/
|
|
74
102
|
readonly name: pulumi.Output<string>;
|
|
75
103
|
/**
|
|
76
|
-
*
|
|
104
|
+
* The platform to use when pulling the image. Defaults to the platform of the current machine.
|
|
77
105
|
*/
|
|
78
106
|
readonly platform: pulumi.Output<string | undefined>;
|
|
79
107
|
/**
|
|
@@ -88,7 +116,7 @@ export declare class RemoteImage extends pulumi.CustomResource {
|
|
|
88
116
|
* A map of arbitrary strings that, when changed, will force the `docker.RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
|
|
89
117
|
*/
|
|
90
118
|
readonly triggers: pulumi.Output<{
|
|
91
|
-
[key: string]:
|
|
119
|
+
[key: string]: string;
|
|
92
120
|
} | undefined>;
|
|
93
121
|
/**
|
|
94
122
|
* Create a RemoteImage resource with the given unique name, arguments, and options.
|
|
@@ -108,7 +136,7 @@ export interface RemoteImageState {
|
|
|
108
136
|
*/
|
|
109
137
|
build?: pulumi.Input<inputs.RemoteImageBuild>;
|
|
110
138
|
/**
|
|
111
|
-
*
|
|
139
|
+
* If true, then the image is removed forcibly when the resource is destroyed.
|
|
112
140
|
*/
|
|
113
141
|
forceRemove?: pulumi.Input<boolean>;
|
|
114
142
|
/**
|
|
@@ -120,11 +148,11 @@ export interface RemoteImageState {
|
|
|
120
148
|
*/
|
|
121
149
|
keepLocally?: pulumi.Input<boolean>;
|
|
122
150
|
/**
|
|
123
|
-
*
|
|
151
|
+
* The name of the Docker image, including any tags or SHA256 repo digests.
|
|
124
152
|
*/
|
|
125
153
|
name?: pulumi.Input<string>;
|
|
126
154
|
/**
|
|
127
|
-
*
|
|
155
|
+
* The platform to use when pulling the image. Defaults to the platform of the current machine.
|
|
128
156
|
*/
|
|
129
157
|
platform?: pulumi.Input<string>;
|
|
130
158
|
/**
|
|
@@ -139,7 +167,7 @@ export interface RemoteImageState {
|
|
|
139
167
|
* A map of arbitrary strings that, when changed, will force the `docker.RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
|
|
140
168
|
*/
|
|
141
169
|
triggers?: pulumi.Input<{
|
|
142
|
-
[key: string]:
|
|
170
|
+
[key: string]: pulumi.Input<string>;
|
|
143
171
|
}>;
|
|
144
172
|
}
|
|
145
173
|
/**
|
|
@@ -151,7 +179,7 @@ export interface RemoteImageArgs {
|
|
|
151
179
|
*/
|
|
152
180
|
build?: pulumi.Input<inputs.RemoteImageBuild>;
|
|
153
181
|
/**
|
|
154
|
-
*
|
|
182
|
+
* If true, then the image is removed forcibly when the resource is destroyed.
|
|
155
183
|
*/
|
|
156
184
|
forceRemove?: pulumi.Input<boolean>;
|
|
157
185
|
/**
|
|
@@ -159,11 +187,11 @@ export interface RemoteImageArgs {
|
|
|
159
187
|
*/
|
|
160
188
|
keepLocally?: pulumi.Input<boolean>;
|
|
161
189
|
/**
|
|
162
|
-
*
|
|
190
|
+
* The name of the Docker image, including any tags or SHA256 repo digests.
|
|
163
191
|
*/
|
|
164
192
|
name: pulumi.Input<string>;
|
|
165
193
|
/**
|
|
166
|
-
*
|
|
194
|
+
* The platform to use when pulling the image. Defaults to the platform of the current machine.
|
|
167
195
|
*/
|
|
168
196
|
platform?: pulumi.Input<string>;
|
|
169
197
|
/**
|
|
@@ -174,6 +202,6 @@ export interface RemoteImageArgs {
|
|
|
174
202
|
* A map of arbitrary strings that, when changed, will force the `docker.RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
|
|
175
203
|
*/
|
|
176
204
|
triggers?: pulumi.Input<{
|
|
177
|
-
[key: string]:
|
|
205
|
+
[key: string]: pulumi.Input<string>;
|
|
178
206
|
}>;
|
|
179
207
|
}
|
package/remoteImage.js
CHANGED
|
@@ -11,6 +11,7 @@ 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
|
|
@@ -22,6 +23,7 @@ const utilities = require("./utilities");
|
|
|
22
23
|
*
|
|
23
24
|
* const ubuntu = new docker.RemoteImage("ubuntu", {name: "ubuntu:precise"});
|
|
24
25
|
* ```
|
|
26
|
+
*
|
|
25
27
|
* ### Dynamic updates
|
|
26
28
|
*
|
|
27
29
|
* To be able to update an image dynamically when the `sha256` sum changes,
|
|
@@ -31,14 +33,40 @@ const utilities = require("./utilities");
|
|
|
31
33
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
34
|
* import * as docker from "@pulumi/docker";
|
|
33
35
|
*
|
|
34
|
-
* const
|
|
36
|
+
* const ubuntu = docker.getRegistryImage({
|
|
35
37
|
* name: "ubuntu:precise",
|
|
36
38
|
* });
|
|
37
|
-
* const ubuntuRemoteImage = new docker.RemoteImage("
|
|
38
|
-
* name:
|
|
39
|
-
* pullTriggers: [
|
|
39
|
+
* const ubuntuRemoteImage = new docker.RemoteImage("ubuntu", {
|
|
40
|
+
* name: ubuntu.then(ubuntu => ubuntu.name),
|
|
41
|
+
* pullTriggers: [ubuntu.then(ubuntu => ubuntu.sha256Digest)],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
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
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as docker from "@pulumi/docker";
|
|
53
|
+
*
|
|
54
|
+
* const zoo = new docker.RemoteImage("zoo", {
|
|
55
|
+
* name: "zoo",
|
|
56
|
+
* build: {
|
|
57
|
+
* context: ".",
|
|
58
|
+
* tags: ["zoo:develop"],
|
|
59
|
+
* buildArg: {
|
|
60
|
+
* foo: "zoo",
|
|
61
|
+
* },
|
|
62
|
+
* label: {
|
|
63
|
+
* author: "zoo",
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
40
66
|
* });
|
|
41
67
|
* ```
|
|
68
|
+
*
|
|
69
|
+
* 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
70
|
*/
|
|
43
71
|
class RemoteImage extends pulumi.CustomResource {
|
|
44
72
|
/**
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,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AC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,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,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAxGL,kCAyGC;AA3FG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/secret.d.ts
CHANGED
|
@@ -6,7 +6,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
|
@@ -2,62 +2,55 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* <!-- Bug: Type and Name are switched -->
|
|
6
|
-
* This resource manages the lifecycle of a Docker service. By default, the creation, update and delete of services are detached.
|
|
7
|
-
* With the Converge Config Name of the service
|
|
8
|
-
* - `taskSpec` (Block List, Min: 1, Max: 1) User modifiable task configuration (see below for nested schema)
|
|
9
|
-
*
|
|
10
5
|
* ## Import
|
|
11
6
|
*
|
|
12
7
|
* ### Example
|
|
13
8
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* #!/bin/bash
|
|
9
|
+
* Assuming you created a `service` as follows
|
|
17
10
|
*
|
|
18
|
-
*
|
|
11
|
+
* #!/bin/bash
|
|
19
12
|
*
|
|
20
|
-
*
|
|
13
|
+
* docker service create --name foo -p 8080:80 nginx
|
|
21
14
|
*
|
|
22
|
-
*
|
|
15
|
+
* prints th ID
|
|
23
16
|
*
|
|
24
|
-
*
|
|
17
|
+
* 4pcphbxkfn2rffhbhe6czytgi
|
|
25
18
|
*
|
|
26
|
-
*
|
|
19
|
+
* you provide the definition for the resource as follows
|
|
27
20
|
*
|
|
28
|
-
*
|
|
21
|
+
* terraform
|
|
29
22
|
*
|
|
30
|
-
*
|
|
23
|
+
* resource "docker_service" "foo" {
|
|
31
24
|
*
|
|
32
|
-
*
|
|
25
|
+
* name = "foo"
|
|
33
26
|
*
|
|
34
|
-
*
|
|
27
|
+
* task_spec {
|
|
35
28
|
*
|
|
36
|
-
*
|
|
29
|
+
* container_spec {
|
|
37
30
|
*
|
|
38
|
-
*
|
|
31
|
+
* image = "nginx"
|
|
39
32
|
*
|
|
40
|
-
*
|
|
33
|
+
* }
|
|
41
34
|
*
|
|
42
|
-
*
|
|
35
|
+
* }
|
|
43
36
|
*
|
|
44
|
-
*
|
|
37
|
+
* endpoint_spec {
|
|
45
38
|
*
|
|
46
|
-
*
|
|
39
|
+
* ports {
|
|
47
40
|
*
|
|
48
|
-
*
|
|
41
|
+
* target_port = "80"
|
|
49
42
|
*
|
|
50
|
-
*
|
|
43
|
+
* published_port = "8080"
|
|
51
44
|
*
|
|
52
|
-
*
|
|
45
|
+
* }
|
|
53
46
|
*
|
|
54
|
-
*
|
|
47
|
+
* }
|
|
55
48
|
*
|
|
56
|
-
*
|
|
49
|
+
* }
|
|
57
50
|
*
|
|
58
|
-
*
|
|
51
|
+
* then the import command is as follows
|
|
59
52
|
*
|
|
60
|
-
*
|
|
53
|
+
* #!/bin/bash
|
|
61
54
|
*
|
|
62
55
|
* ```sh
|
|
63
56
|
* $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
|
package/service.js
CHANGED
|
@@ -6,62 +6,55 @@ exports.Service = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* <!-- Bug: Type and Name are switched -->
|
|
10
|
-
* This resource manages the lifecycle of a Docker service. By default, the creation, update and delete of services are detached.
|
|
11
|
-
* With the Converge Config Name of the service
|
|
12
|
-
* - `taskSpec` (Block List, Min: 1, Max: 1) User modifiable task configuration (see below for nested schema)
|
|
13
|
-
*
|
|
14
9
|
* ## Import
|
|
15
10
|
*
|
|
16
11
|
* ### Example
|
|
17
12
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* #!/bin/bash
|
|
13
|
+
* Assuming you created a `service` as follows
|
|
21
14
|
*
|
|
22
|
-
*
|
|
15
|
+
* #!/bin/bash
|
|
23
16
|
*
|
|
24
|
-
*
|
|
17
|
+
* docker service create --name foo -p 8080:80 nginx
|
|
25
18
|
*
|
|
26
|
-
*
|
|
19
|
+
* prints th ID
|
|
27
20
|
*
|
|
28
|
-
*
|
|
21
|
+
* 4pcphbxkfn2rffhbhe6czytgi
|
|
29
22
|
*
|
|
30
|
-
*
|
|
23
|
+
* you provide the definition for the resource as follows
|
|
31
24
|
*
|
|
32
|
-
*
|
|
25
|
+
* terraform
|
|
33
26
|
*
|
|
34
|
-
*
|
|
27
|
+
* resource "docker_service" "foo" {
|
|
35
28
|
*
|
|
36
|
-
*
|
|
29
|
+
* name = "foo"
|
|
37
30
|
*
|
|
38
|
-
*
|
|
31
|
+
* task_spec {
|
|
39
32
|
*
|
|
40
|
-
*
|
|
33
|
+
* container_spec {
|
|
41
34
|
*
|
|
42
|
-
*
|
|
35
|
+
* image = "nginx"
|
|
43
36
|
*
|
|
44
|
-
*
|
|
37
|
+
* }
|
|
45
38
|
*
|
|
46
|
-
*
|
|
39
|
+
* }
|
|
47
40
|
*
|
|
48
|
-
*
|
|
41
|
+
* endpoint_spec {
|
|
49
42
|
*
|
|
50
|
-
*
|
|
43
|
+
* ports {
|
|
51
44
|
*
|
|
52
|
-
*
|
|
45
|
+
* target_port = "80"
|
|
53
46
|
*
|
|
54
|
-
*
|
|
47
|
+
* published_port = "8080"
|
|
55
48
|
*
|
|
56
|
-
*
|
|
49
|
+
* }
|
|
57
50
|
*
|
|
58
|
-
*
|
|
51
|
+
* }
|
|
59
52
|
*
|
|
60
|
-
*
|
|
53
|
+
* }
|
|
61
54
|
*
|
|
62
|
-
*
|
|
55
|
+
* then the import command is as follows
|
|
63
56
|
*
|
|
64
|
-
*
|
|
57
|
+
* #!/bin/bash
|
|
65
58
|
*
|
|
66
59
|
* ```sh
|
|
67
60
|
* $ 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAA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