Skip to content

Commit b8673c7

Browse files
committed
Remove creation of test Docker container
1 parent 09d90ee commit b8673c7

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

main.tf

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,4 @@ resource "null_resource" "wait_for_init" {
4848
provisioner "local-exec" {
4949
command = "sleep 80" # wait more than 1 minute for the instance to be rebooted
5050
}
51-
}
52-
53-
resource "null_resource" "docker_test" {
54-
count = var.feature_docker && var.feature_docker_test ? var.node_count : 0
55-
56-
provisioner "remote-exec" {
57-
connection {
58-
host = element(scaleway_instance_server.node.*.public_ip, count.index)
59-
user = var.username
60-
private_key = file(var.ssh_key_file)
61-
}
62-
63-
inline = [
64-
"mkdir -p ~/www",
65-
"echo 'It works' > ~/www/index.html",
66-
"docker run --name http-nginx --restart=always -v ~/www:/usr/share/nginx/html:ro -p 80:80 -d nginx",
67-
]
68-
}
69-
}
51+
}

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ variable "feature_docker" {
4848
default = false
4949
}
5050

51-
variable "feature_docker_test" {
52-
type = bool
53-
description = "Whether to deploy a Docker test container when Docker feature is enabled (otherwise it will be ignored)"
54-
default = true
55-
}
56-
5751
variable "feature_nvm" {
5852
type = bool
5953
description = "Whether to install NVM or not"

0 commit comments

Comments
 (0)