Skip to content

Commit fb1a9a1

Browse files
committed
Updating from docker to docker-build, fixes #1791
1 parent e9cc28c commit fb1a9a1

File tree

27 files changed

+86
-108
lines changed

27 files changed

+86
-108
lines changed

aws-js-langserve/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"dependencies": {
55
"@pulumi/pulumi": "3.145.0",
66
"@pulumi/aws": "6.66.3",
7-
"@pulumi/docker": "4.6.0"
7+
"@pulumi/docker-build": "^0.0.8"
88
}
99
}

aws-ts-hello-fargate/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"@pulumi/aws": "6.66.3",
99
"@pulumi/awsx": "2.20.0",
10-
"@pulumi/docker": "4.6.0",
11-
"@pulumi/pulumi": "3.145.0"
10+
"@pulumi/pulumi": "3.145.0",
11+
"@pulumi/docker-build": "^0.0.8"
1212
}
1313
}

aws-ts-langserve/index.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import * as aws from "@pulumi/aws";
16-
import * as docker from "@pulumi/docker";
16+
import * as dockerbuild from "@pulumi/docker-build";
1717
import * as pulumi from "@pulumi/pulumi";
1818

1919
const config = new pulumi.Config();
@@ -58,12 +58,9 @@ const langserveEcrLifeCyclePolicy = new aws.ecr.LifecyclePolicy("langserve-ecr-l
5858
}],
5959
}),
6060
});
61-
const langserveEcrImage = new docker.Image("langserve-ecr-image", {
62-
build: {
63-
platform: "linux/amd64",
64-
context: containerContext,
65-
dockerfile: containerFile,
66-
},
61+
const langserveEcrImage = new dockerbuild.Image("langserve-ecr-image", {
62+
context: { location: "." },
63+
platforms: ["linux/amd64"],
6764
imageName: langserveEcrRepository.repositoryUrl,
6865
registry: {
6966
server: langserveEcrRepository.repositoryUrl,

aws-ts-langserve/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"typescript": "^4.0.0",
88
"@pulumi/pulumi": "3.145.0",
99
"@pulumi/aws": "6.66.3",
10-
"@pulumi/docker": "4.6.0"
10+
"@pulumi/docker-build": "^0.0.8"
1111
}
1212
}

aws-ts-localai-flowise/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"@pulumi/pulumi": "3.145.0",
99
"@pulumi/eks": "3.7.0",
1010
"@pulumi/aws": "6.66.3",
11-
"@pulumi/docker": "4.6.0",
1211
"@pulumi/kubernetes": "4.19.0",
13-
"@pinecone-database/pulumi": "^0.4.0"
12+
"@pinecone-database/pulumi": "^0.4.0",
13+
"@pulumi/docker-build": "^0.0.8"
1414
}
1515
}

azure-ts-appservice-docker/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2016-2020, Pulumi Corporation. All rights reserved.
22

3-
import * as docker from "@pulumi/docker";
3+
import * as dockerbuild from "@pulumi/docker-build";
44
import * as pulumi from "@pulumi/pulumi";
55

66
import * as containerregistry from "@pulumi/azure-native/containerregistry";
@@ -62,14 +62,14 @@ const credentials = containerregistry.listRegistryCredentialsOutput({
6262
const adminUsername = credentials.apply(credentials => credentials.username!);
6363
const adminPassword = credentials.apply(credentials => credentials.passwords![0].value!);
6464

65-
const myImage = new docker.Image(customImage, {
65+
const myImage = new dockerbuild.Image(customImage, {
6666
imageName: pulumi.interpolate`${registry.loginServer}/${customImage}:v1.0.0`,
67-
build: { context: `./${customImage}` },
68-
registry: {
69-
server: registry.loginServer,
70-
username: adminUsername,
71-
password: adminPassword,
72-
},
67+
context: { location: "." }` },
68+
registries: [{
69+
address: "",
70+
username: "",
71+
password: adminPassword
72+
}],
7373
});
7474
7575
const getStartedApp = new web.WebApp("getStartedApp", {

azure-ts-appservice-docker/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"dependencies": {
88
"@pulumi/azure-native": "2.82.0",
9-
"@pulumi/docker": "4.6.0",
10-
"@pulumi/pulumi": "3.145.0"
9+
"@pulumi/pulumi": "3.145.0",
10+
"@pulumi/docker-build": "^0.0.8"
1111
}
1212
}

azure-ts-containerapps/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
22

3-
import * as docker from "@pulumi/docker";
3+
import * as dockerbuild from "@pulumi/docker-build";
44
import * as pulumi from "@pulumi/pulumi";
55

66
import * as app from "@pulumi/azure-native/app";
@@ -50,14 +50,14 @@ const adminUsername = credentials.apply((c: containerregistry.ListRegistryCreden
5050
const adminPassword = credentials.apply((c: containerregistry.ListRegistryCredentialsResult) => c.passwords![0].value!);
5151

5252
const customImage = "node-app";
53-
const myImage = new docker.Image(customImage, {
53+
const myImage = new dockerbuild.Image(customImage, {
5454
imageName: pulumi.interpolate`${registry.loginServer}/${customImage}:v1.0.0`,
55-
build: { context: `./${customImage}` },
56-
registry: {
57-
server: registry.loginServer,
58-
username: adminUsername,
59-
password: adminPassword,
60-
},
55+
context: { location: "." }` },
56+
registries: [{
57+
address: "",
58+
username: "",
59+
password: adminPassword
60+
}],
6161
});
6262
6363
const containerApp = new app.ContainerApp("app", {

azure-ts-containerapps/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"dependencies": {
88
"@pulumi/azure-native": "2.82.0",
9-
"@pulumi/docker": "4.6.0",
10-
"@pulumi/pulumi": "3.145.0"
9+
"@pulumi/pulumi": "3.145.0",
10+
"@pulumi/docker-build": "^0.0.8"
1111
}
1212
}

classic-azure-ts-aks-keda/keda.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
22

33
import * as azure from "@pulumi/azure";
4-
import * as docker from "@pulumi/docker";
4+
import * as dockerbuild from "@pulumi/docker-build";
55
import * as k8s from "@pulumi/kubernetes";
66
import * as pulumi from "@pulumi/pulumi";
77

@@ -87,16 +87,14 @@ export class KedaStorageQueueHandler extends pulumi.ComponentResource {
8787
const registry = args.service.registry;
8888

8989
// Deploy the docker image of the Function App
90-
const dockerImage = new docker.Image("image", {
90+
const dockerImage = new dockerbuild.Image("image", {
9191
imageName: pulumi.interpolate`${registry.loginServer}/${args.queue.name}:v1.0.0`,
92-
build: {
93-
context: args.path,
94-
},
95-
registry: {
96-
server: registry.loginServer,
97-
username: registry.adminUsername,
98-
password: registry.adminPassword,
99-
},
92+
context: { location: "." },
93+
registries: [{
94+
address: "",
95+
username: "",
96+
password: registry.adminPassword
97+
}],
10098
}, { parent: this });
10199

102100
// Put the storage account connection string into a secret

0 commit comments

Comments
 (0)