@pulumi/docker-build 0.0.1-alpha.3
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/LICENSE +202 -0
- package/README.md +106 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +6 -0
- package/config/vars.js +21 -0
- package/config/vars.js.map +1 -0
- package/image.d.ts +916 -0
- package/image.js +558 -0
- package/image.js.map +1 -0
- package/index.d.ts +13 -0
- package/index.js +58 -0
- package/index.js.map +1 -0
- package/index_.d.ts +140 -0
- package/index_.js +130 -0
- package/index_.js.map +1 -0
- package/package.json +28 -0
- package/package.json.dev +27 -0
- package/provider.d.ts +31 -0
- package/provider.js +41 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/types/enums/index.d.ts +72 -0
- package/types/enums/index.js +74 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +13 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +765 -0
- package/types/input.js +118 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +764 -0
- package/types/output.js +117 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
package/index_.d.ts
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* An index (or manifest list) referencing one or more existing images.
|
|
6
|
+
*
|
|
7
|
+
* Useful for crafting a multi-platform image from several
|
|
8
|
+
* platform-specific images.
|
|
9
|
+
*
|
|
10
|
+
* This creates an OCI image index or a Docker manifest list depending on
|
|
11
|
+
* the media types of the source images.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
* ### Multi-platform registry caching
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as docker_build from "@pulumi/docker-build";
|
|
19
|
+
*
|
|
20
|
+
* const amd64 = new docker_build.Image("amd64", {
|
|
21
|
+
* cacheFrom: [{
|
|
22
|
+
* registry: {
|
|
23
|
+
* ref: "docker.io/pulumi/pulumi:cache-amd64",
|
|
24
|
+
* },
|
|
25
|
+
* }],
|
|
26
|
+
* cacheTo: [{
|
|
27
|
+
* registry: {
|
|
28
|
+
* mode: docker_build.CacheMode.Max,
|
|
29
|
+
* ref: "docker.io/pulumi/pulumi:cache-amd64",
|
|
30
|
+
* },
|
|
31
|
+
* }],
|
|
32
|
+
* context: {
|
|
33
|
+
* location: "app",
|
|
34
|
+
* },
|
|
35
|
+
* platforms: [docker_build.Platform.Linux_amd64],
|
|
36
|
+
* tags: ["docker.io/pulumi/pulumi:3.107.0-amd64"],
|
|
37
|
+
* });
|
|
38
|
+
* const arm64 = new docker_build.Image("arm64", {
|
|
39
|
+
* cacheFrom: [{
|
|
40
|
+
* registry: {
|
|
41
|
+
* ref: "docker.io/pulumi/pulumi:cache-arm64",
|
|
42
|
+
* },
|
|
43
|
+
* }],
|
|
44
|
+
* cacheTo: [{
|
|
45
|
+
* registry: {
|
|
46
|
+
* mode: docker_build.CacheMode.Max,
|
|
47
|
+
* ref: "docker.io/pulumi/pulumi:cache-arm64",
|
|
48
|
+
* },
|
|
49
|
+
* }],
|
|
50
|
+
* context: {
|
|
51
|
+
* location: "app",
|
|
52
|
+
* },
|
|
53
|
+
* platforms: [docker_build.Platform.Linux_arm64],
|
|
54
|
+
* tags: ["docker.io/pulumi/pulumi:3.107.0-arm64"],
|
|
55
|
+
* });
|
|
56
|
+
* const index = new docker_build.Index("index", {
|
|
57
|
+
* sources: [
|
|
58
|
+
* amd64.ref,
|
|
59
|
+
* arm64.ref,
|
|
60
|
+
* ],
|
|
61
|
+
* tag: "docker.io/pulumi/pulumi:3.107.0",
|
|
62
|
+
* });
|
|
63
|
+
* export const ref = index.ref;
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare class Index extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing Index resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
74
|
+
*/
|
|
75
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Index;
|
|
76
|
+
/**
|
|
77
|
+
* Returns true if the given object is an instance of Index. This is designed to work even
|
|
78
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
79
|
+
*/
|
|
80
|
+
static isInstance(obj: any): obj is Index;
|
|
81
|
+
/**
|
|
82
|
+
* If true, push the index to the target registry.
|
|
83
|
+
*
|
|
84
|
+
* Defaults to `true`.
|
|
85
|
+
*/
|
|
86
|
+
readonly push: pulumi.Output<boolean | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* The pushed tag with digest.
|
|
89
|
+
*
|
|
90
|
+
* Identical to the tag if the index was not pushed.
|
|
91
|
+
*/
|
|
92
|
+
readonly ref: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Authentication for the registry where the tagged index will be pushed.
|
|
95
|
+
*
|
|
96
|
+
* Credentials can also be included with the provider's configuration.
|
|
97
|
+
*/
|
|
98
|
+
readonly registry: pulumi.Output<outputs.Registry | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Existing images to include in the index.
|
|
101
|
+
*/
|
|
102
|
+
readonly sources: pulumi.Output<string[]>;
|
|
103
|
+
/**
|
|
104
|
+
* The tag to apply to the index.
|
|
105
|
+
*/
|
|
106
|
+
readonly tag: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Create a Index resource with the given unique name, arguments, and options.
|
|
109
|
+
*
|
|
110
|
+
* @param name The _unique_ name of the resource.
|
|
111
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
112
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
113
|
+
*/
|
|
114
|
+
constructor(name: string, args: IndexArgs, opts?: pulumi.CustomResourceOptions);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The set of arguments for constructing a Index resource.
|
|
118
|
+
*/
|
|
119
|
+
export interface IndexArgs {
|
|
120
|
+
/**
|
|
121
|
+
* If true, push the index to the target registry.
|
|
122
|
+
*
|
|
123
|
+
* Defaults to `true`.
|
|
124
|
+
*/
|
|
125
|
+
push?: pulumi.Input<boolean>;
|
|
126
|
+
/**
|
|
127
|
+
* Authentication for the registry where the tagged index will be pushed.
|
|
128
|
+
*
|
|
129
|
+
* Credentials can also be included with the provider's configuration.
|
|
130
|
+
*/
|
|
131
|
+
registry?: pulumi.Input<inputs.RegistryArgs>;
|
|
132
|
+
/**
|
|
133
|
+
* Existing images to include in the index.
|
|
134
|
+
*/
|
|
135
|
+
sources: pulumi.Input<pulumi.Input<string>[]>;
|
|
136
|
+
/**
|
|
137
|
+
* The tag to apply to the index.
|
|
138
|
+
*/
|
|
139
|
+
tag: pulumi.Input<string>;
|
|
140
|
+
}
|
package/index_.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Index = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* An index (or manifest list) referencing one or more existing images.
|
|
10
|
+
*
|
|
11
|
+
* Useful for crafting a multi-platform image from several
|
|
12
|
+
* platform-specific images.
|
|
13
|
+
*
|
|
14
|
+
* This creates an OCI image index or a Docker manifest list depending on
|
|
15
|
+
* the media types of the source images.
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
* ### Multi-platform registry caching
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as docker_build from "@pulumi/docker-build";
|
|
23
|
+
*
|
|
24
|
+
* const amd64 = new docker_build.Image("amd64", {
|
|
25
|
+
* cacheFrom: [{
|
|
26
|
+
* registry: {
|
|
27
|
+
* ref: "docker.io/pulumi/pulumi:cache-amd64",
|
|
28
|
+
* },
|
|
29
|
+
* }],
|
|
30
|
+
* cacheTo: [{
|
|
31
|
+
* registry: {
|
|
32
|
+
* mode: docker_build.CacheMode.Max,
|
|
33
|
+
* ref: "docker.io/pulumi/pulumi:cache-amd64",
|
|
34
|
+
* },
|
|
35
|
+
* }],
|
|
36
|
+
* context: {
|
|
37
|
+
* location: "app",
|
|
38
|
+
* },
|
|
39
|
+
* platforms: [docker_build.Platform.Linux_amd64],
|
|
40
|
+
* tags: ["docker.io/pulumi/pulumi:3.107.0-amd64"],
|
|
41
|
+
* });
|
|
42
|
+
* const arm64 = new docker_build.Image("arm64", {
|
|
43
|
+
* cacheFrom: [{
|
|
44
|
+
* registry: {
|
|
45
|
+
* ref: "docker.io/pulumi/pulumi:cache-arm64",
|
|
46
|
+
* },
|
|
47
|
+
* }],
|
|
48
|
+
* cacheTo: [{
|
|
49
|
+
* registry: {
|
|
50
|
+
* mode: docker_build.CacheMode.Max,
|
|
51
|
+
* ref: "docker.io/pulumi/pulumi:cache-arm64",
|
|
52
|
+
* },
|
|
53
|
+
* }],
|
|
54
|
+
* context: {
|
|
55
|
+
* location: "app",
|
|
56
|
+
* },
|
|
57
|
+
* platforms: [docker_build.Platform.Linux_arm64],
|
|
58
|
+
* tags: ["docker.io/pulumi/pulumi:3.107.0-arm64"],
|
|
59
|
+
* });
|
|
60
|
+
* const index = new docker_build.Index("index", {
|
|
61
|
+
* sources: [
|
|
62
|
+
* amd64.ref,
|
|
63
|
+
* arm64.ref,
|
|
64
|
+
* ],
|
|
65
|
+
* tag: "docker.io/pulumi/pulumi:3.107.0",
|
|
66
|
+
* });
|
|
67
|
+
* export const ref = index.ref;
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
class Index extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing Index resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
78
|
+
*/
|
|
79
|
+
static get(name, id, opts) {
|
|
80
|
+
return new Index(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns true if the given object is an instance of Index. This is designed to work even
|
|
84
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
85
|
+
*/
|
|
86
|
+
static isInstance(obj) {
|
|
87
|
+
if (obj === undefined || obj === null) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return obj['__pulumiType'] === Index.__pulumiType;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Create a Index resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name, args, opts) {
|
|
100
|
+
var _a;
|
|
101
|
+
let resourceInputs = {};
|
|
102
|
+
opts = opts || {};
|
|
103
|
+
if (!opts.id) {
|
|
104
|
+
if ((!args || args.sources === undefined) && !opts.urn) {
|
|
105
|
+
throw new Error("Missing required property 'sources'");
|
|
106
|
+
}
|
|
107
|
+
if ((!args || args.tag === undefined) && !opts.urn) {
|
|
108
|
+
throw new Error("Missing required property 'tag'");
|
|
109
|
+
}
|
|
110
|
+
resourceInputs["push"] = (_a = (args ? args.push : undefined)) !== null && _a !== void 0 ? _a : true;
|
|
111
|
+
resourceInputs["registry"] = args ? args.registry : undefined;
|
|
112
|
+
resourceInputs["sources"] = args ? args.sources : undefined;
|
|
113
|
+
resourceInputs["tag"] = args ? args.tag : undefined;
|
|
114
|
+
resourceInputs["ref"] = undefined /*out*/;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
resourceInputs["push"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["ref"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["registry"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["sources"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["tag"] = undefined /*out*/;
|
|
122
|
+
}
|
|
123
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
|
+
super(Index.__pulumiType, name, resourceInputs, opts);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.Index = Index;
|
|
128
|
+
/** @internal */
|
|
129
|
+
Index.__pulumiType = 'docker-build:index:Index';
|
|
130
|
+
//# sourceMappingURL=index_.js.map
|
package/index_.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index_.js","sourceRoot":"","sources":["../index_.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;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;IA6BD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAe,EAAE,IAAmC;;QAC1E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,IAAI,CAAC;YAChE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;aAAM;YACH,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AArFL,sBAsFC;AAzEG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/docker-build",
|
|
3
|
+
"version": "v0.0.1-alpha.3",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"docker",
|
|
6
|
+
"buildkit",
|
|
7
|
+
"buildx"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-docker-build",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource docker-build v0.0.1-alpha.3"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "^14",
|
|
21
|
+
"typescript": "^4.3.5"
|
|
22
|
+
},
|
|
23
|
+
"pulumi": {
|
|
24
|
+
"resource": true,
|
|
25
|
+
"name": "docker-build",
|
|
26
|
+
"server": "github.com/pulumi/pulumi-docker-build"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/package.json.dev
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/docker-build",
|
|
3
|
+
"version": "v0.0.1-alpha.3",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"docker",
|
|
6
|
+
"buildkit",
|
|
7
|
+
"buildx"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-docker-build",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^14",
|
|
20
|
+
"typescript": "^4.3.5"
|
|
21
|
+
},
|
|
22
|
+
"pulumi": {
|
|
23
|
+
"resource": true,
|
|
24
|
+
"name": "docker-build",
|
|
25
|
+
"server": "github.com/pulumi/pulumi-docker-build"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/provider.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
6
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
7
|
+
*/
|
|
8
|
+
static isInstance(obj: any): obj is Provider;
|
|
9
|
+
/**
|
|
10
|
+
* The build daemon's address.
|
|
11
|
+
*/
|
|
12
|
+
readonly host: pulumi.Output<string | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resource.
|
|
17
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
18
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
19
|
+
*/
|
|
20
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The set of arguments for constructing a Provider resource.
|
|
24
|
+
*/
|
|
25
|
+
export interface ProviderArgs {
|
|
26
|
+
/**
|
|
27
|
+
* The build daemon's address.
|
|
28
|
+
*/
|
|
29
|
+
host?: pulumi.Input<string>;
|
|
30
|
+
registries?: pulumi.Input<pulumi.Input<inputs.RegistryArgs>[]>;
|
|
31
|
+
}
|
package/provider.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj) {
|
|
14
|
+
if (obj === undefined || obj === null) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resource.
|
|
23
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
24
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
25
|
+
*/
|
|
26
|
+
constructor(name, args, opts) {
|
|
27
|
+
var _a;
|
|
28
|
+
let resourceInputs = {};
|
|
29
|
+
opts = opts || {};
|
|
30
|
+
{
|
|
31
|
+
resourceInputs["host"] = (_a = (args ? args.host : undefined)) !== null && _a !== void 0 ? _a : (utilities.getEnv("DOCKER_HOST") || "");
|
|
32
|
+
resourceInputs["registries"] = pulumi.output(args ? args.registries : undefined).apply(JSON.stringify);
|
|
33
|
+
}
|
|
34
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
35
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Provider = Provider;
|
|
39
|
+
/** @internal */
|
|
40
|
+
Provider.__pulumiType = 'docker-build';
|
|
41
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC,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;IAOD;;;;;;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,MAAM,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC;YACnG,cAAc,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1G;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AApCL,4BAqCC;AApCG,gBAAgB;AACO,qBAAY,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var childProcess = require("child_process");
|
|
3
|
+
|
|
4
|
+
var args = process.argv.slice(2);
|
|
5
|
+
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
+
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
+
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
+
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
+
"You may try manually installing the plugin by running " +
|
|
14
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
+
} else if (res.error || res.status !== 0) {
|
|
16
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
+
"You may try to manually installing the plugin by running " +
|
|
18
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
process.exit(0);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const CacheMode: {
|
|
2
|
+
/**
|
|
3
|
+
* Only layers that are exported into the resulting image are cached.
|
|
4
|
+
*/
|
|
5
|
+
readonly Min: "min";
|
|
6
|
+
/**
|
|
7
|
+
* All layers are cached, even those of intermediate steps.
|
|
8
|
+
*/
|
|
9
|
+
readonly Max: "max";
|
|
10
|
+
};
|
|
11
|
+
export type CacheMode = (typeof CacheMode)[keyof typeof CacheMode];
|
|
12
|
+
export declare const CompressionType: {
|
|
13
|
+
/**
|
|
14
|
+
* Use `gzip` for compression.
|
|
15
|
+
*/
|
|
16
|
+
readonly Gzip: "gzip";
|
|
17
|
+
/**
|
|
18
|
+
* Use `estargz` for compression.
|
|
19
|
+
*/
|
|
20
|
+
readonly Estargz: "estargz";
|
|
21
|
+
/**
|
|
22
|
+
* Use `zstd` for compression.
|
|
23
|
+
*/
|
|
24
|
+
readonly Zstd: "zstd";
|
|
25
|
+
};
|
|
26
|
+
export type CompressionType = (typeof CompressionType)[keyof typeof CompressionType];
|
|
27
|
+
export declare const NetworkMode: {
|
|
28
|
+
/**
|
|
29
|
+
* The default sandbox network mode.
|
|
30
|
+
*/
|
|
31
|
+
readonly Default: "default";
|
|
32
|
+
/**
|
|
33
|
+
* Host network mode.
|
|
34
|
+
*/
|
|
35
|
+
readonly Host: "host";
|
|
36
|
+
/**
|
|
37
|
+
* Disable network access.
|
|
38
|
+
*/
|
|
39
|
+
readonly None: "none";
|
|
40
|
+
};
|
|
41
|
+
export type NetworkMode = (typeof NetworkMode)[keyof typeof NetworkMode];
|
|
42
|
+
export declare const Platform: {
|
|
43
|
+
readonly Darwin_386: "darwin/386";
|
|
44
|
+
readonly Darwin_amd64: "darwin/amd64";
|
|
45
|
+
readonly Darwin_arm: "darwin/arm";
|
|
46
|
+
readonly Darwin_arm64: "darwin/arm64";
|
|
47
|
+
readonly Dragonfly_amd64: "dragonfly/amd64";
|
|
48
|
+
readonly Freebsd_386: "freebsd/386";
|
|
49
|
+
readonly Freebsd_amd64: "freebsd/amd64";
|
|
50
|
+
readonly Freebsd_arm: "freebsd/arm";
|
|
51
|
+
readonly Linux_386: "linux/386";
|
|
52
|
+
readonly Linux_amd64: "linux/amd64";
|
|
53
|
+
readonly Linux_arm: "linux/arm";
|
|
54
|
+
readonly Linux_arm64: "linux/arm64";
|
|
55
|
+
readonly Linux_mips64: "linux/mips64";
|
|
56
|
+
readonly Linux_mips64le: "linux/mips64le";
|
|
57
|
+
readonly Linux_ppc64le: "linux/ppc64le";
|
|
58
|
+
readonly Linux_riscv64: "linux/riscv64";
|
|
59
|
+
readonly Linux_s390x: "linux/s390x";
|
|
60
|
+
readonly Netbsd_386: "netbsd/386";
|
|
61
|
+
readonly Netbsd_amd64: "netbsd/amd64";
|
|
62
|
+
readonly Netbsd_arm: "netbsd/arm";
|
|
63
|
+
readonly Openbsd_386: "openbsd/386";
|
|
64
|
+
readonly Openbsd_amd64: "openbsd/amd64";
|
|
65
|
+
readonly Openbsd_arm: "openbsd/arm";
|
|
66
|
+
readonly Plan9_386: "plan9/386";
|
|
67
|
+
readonly Plan9_amd64: "plan9/amd64";
|
|
68
|
+
readonly Solaris_amd64: "solaris/amd64";
|
|
69
|
+
readonly Windows_386: "windows/386";
|
|
70
|
+
readonly Windows_amd64: "windows/amd64";
|
|
71
|
+
};
|
|
72
|
+
export type Platform = (typeof Platform)[keyof typeof Platform];
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Platform = exports.NetworkMode = exports.CompressionType = exports.CacheMode = void 0;
|
|
6
|
+
exports.CacheMode = {
|
|
7
|
+
/**
|
|
8
|
+
* Only layers that are exported into the resulting image are cached.
|
|
9
|
+
*/
|
|
10
|
+
Min: "min",
|
|
11
|
+
/**
|
|
12
|
+
* All layers are cached, even those of intermediate steps.
|
|
13
|
+
*/
|
|
14
|
+
Max: "max",
|
|
15
|
+
};
|
|
16
|
+
exports.CompressionType = {
|
|
17
|
+
/**
|
|
18
|
+
* Use `gzip` for compression.
|
|
19
|
+
*/
|
|
20
|
+
Gzip: "gzip",
|
|
21
|
+
/**
|
|
22
|
+
* Use `estargz` for compression.
|
|
23
|
+
*/
|
|
24
|
+
Estargz: "estargz",
|
|
25
|
+
/**
|
|
26
|
+
* Use `zstd` for compression.
|
|
27
|
+
*/
|
|
28
|
+
Zstd: "zstd",
|
|
29
|
+
};
|
|
30
|
+
exports.NetworkMode = {
|
|
31
|
+
/**
|
|
32
|
+
* The default sandbox network mode.
|
|
33
|
+
*/
|
|
34
|
+
Default: "default",
|
|
35
|
+
/**
|
|
36
|
+
* Host network mode.
|
|
37
|
+
*/
|
|
38
|
+
Host: "host",
|
|
39
|
+
/**
|
|
40
|
+
* Disable network access.
|
|
41
|
+
*/
|
|
42
|
+
None: "none",
|
|
43
|
+
};
|
|
44
|
+
exports.Platform = {
|
|
45
|
+
Darwin_386: "darwin/386",
|
|
46
|
+
Darwin_amd64: "darwin/amd64",
|
|
47
|
+
Darwin_arm: "darwin/arm",
|
|
48
|
+
Darwin_arm64: "darwin/arm64",
|
|
49
|
+
Dragonfly_amd64: "dragonfly/amd64",
|
|
50
|
+
Freebsd_386: "freebsd/386",
|
|
51
|
+
Freebsd_amd64: "freebsd/amd64",
|
|
52
|
+
Freebsd_arm: "freebsd/arm",
|
|
53
|
+
Linux_386: "linux/386",
|
|
54
|
+
Linux_amd64: "linux/amd64",
|
|
55
|
+
Linux_arm: "linux/arm",
|
|
56
|
+
Linux_arm64: "linux/arm64",
|
|
57
|
+
Linux_mips64: "linux/mips64",
|
|
58
|
+
Linux_mips64le: "linux/mips64le",
|
|
59
|
+
Linux_ppc64le: "linux/ppc64le",
|
|
60
|
+
Linux_riscv64: "linux/riscv64",
|
|
61
|
+
Linux_s390x: "linux/s390x",
|
|
62
|
+
Netbsd_386: "netbsd/386",
|
|
63
|
+
Netbsd_amd64: "netbsd/amd64",
|
|
64
|
+
Netbsd_arm: "netbsd/arm",
|
|
65
|
+
Openbsd_386: "openbsd/386",
|
|
66
|
+
Openbsd_amd64: "openbsd/amd64",
|
|
67
|
+
Openbsd_arm: "openbsd/arm",
|
|
68
|
+
Plan9_386: "plan9/386",
|
|
69
|
+
Plan9_amd64: "plan9/amd64",
|
|
70
|
+
Solaris_amd64: "solaris/amd64",
|
|
71
|
+
Windows_386: "windows/386",
|
|
72
|
+
Windows_amd64: "windows/amd64",
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,SAAS,GAAG;IACrB;;OAEG;IACH,GAAG,EAAE,KAAK;IACV;;OAEG;IACH,GAAG,EAAE,KAAK;CACJ,CAAC;AAIE,QAAA,eAAe,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC;AAIE,QAAA,WAAW,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC;AAIE,QAAA,QAAQ,GAAG;IACpB,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;CACxB,CAAC"}
|
package/types/index.d.ts
ADDED
package/types/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.output = exports.input = exports.enums = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const enums = require("./enums");
|
|
8
|
+
exports.enums = enums;
|
|
9
|
+
const input = require("./input");
|
|
10
|
+
exports.input = input;
|
|
11
|
+
const output = require("./output");
|
|
12
|
+
exports.output = output;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAK7B,sBAAK;AAJT,iCAAiC;AAK7B,sBAAK;AAJT,mCAAmC;AAK/B,wBAAM"}
|