Skip to content

Commit

Permalink
Upgrade terraform-provider-docker to v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aq17 authored Mar 23, 2023
2 parents e80961e + 929b618 commit 238e4f4
Show file tree
Hide file tree
Showing 91 changed files with 4,651 additions and 6,510 deletions.
1 change: 1 addition & 0 deletions examples/examples_dotnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TestNginxCs(t *testing.T) {
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "nginx-cs"),
ExpectRefreshChanges: true,
Quick: true,
})

integration.ProgramTest(t, &test)
Expand Down
1 change: 1 addition & 0 deletions examples/examples_go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestNginxGo(t *testing.T) {
},
Dir: path.Join(cwd, "nginx-go"),
ExpectRefreshChanges: true,
Quick: true,
})
integration.ProgramTest(t, &opts)
}
Expand Down
1 change: 1 addition & 0 deletions examples/examples_nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func TestNginxTs(t *testing.T) {
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "nginx"),
ExpectRefreshChanges: true,
Quick: true,
})

integration.ProgramTest(t, &test)
Expand Down
1 change: 1 addition & 0 deletions examples/examples_py_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func TestNginxPy(t *testing.T) {
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "nginx-py"),
ExpectRefreshChanges: true,
Quick: true,
})

integration.ProgramTest(t, &test)
Expand Down
2 changes: 1 addition & 1 deletion examples/nginx-cs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static Task<int> Main()
// Launch a container using the nginx image we just downloaded.
var container = new Container("nginx", new ContainerArgs
{
Image = remoteImage.Latest,
Image = remoteImage.RepoDigest,
Ports =
{
new ContainerPortArgs
Expand Down
2 changes: 1 addition & 1 deletion examples/nginx-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
Internal: pulumi.Int(80),
}
containerArgs := &docker.ContainerArgs{
Image: image.Latest,
Image: image.RepoDigest,
Ports: docker.ContainerPortArray([]docker.ContainerPortInput{portArgs}),
}
container, err := docker.NewContainer(ctx, "nginx", containerArgs)
Expand Down
2 changes: 1 addition & 1 deletion examples/nginx-py/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Get a reference to the remote image "nginx:1.15.6". Without specifying the repository, the Docker provider will
# try to download it from the public Docker Hub.
image = RemoteImage("nginx-image", name="nginx", keep_locally=True)
container = Container("nginx", image=image.latest, ports=[{
container = Container("nginx", image=image.repo_digest, ports=[{
"internal": 80
}])

2 changes: 1 addition & 1 deletion examples/nginx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const remoteImage = new docker.RemoteImage("nginx-image", {

// Launch a container using the nginx image we just downloaded.
const container = new docker.Container("nginx", {
image: remoteImage.latest,
image: remoteImage.repoDigest,
ports: [{
internal: 80,
// external: defaults to an open ephemeral port
Expand Down
Loading

0 comments on commit 238e4f4

Please sign in to comment.