Skip to content

Commit 8be20d1

Browse files
yupwei68malantinUbunturoot
authored
Docker fix (#77)
* Update docker file to use the current terraform-test image * Remove deprecated -check-variables from test script * Add init step to validation test * update * update * update * update * updatwe * update * update * r1 * update README * update * update * identity * update * update Co-authored-by: Malte Lantin <[email protected]> Co-authored-by: Ubuntu <weiyuping@ubuntu-wyp.4smfdm3ngeyufpdz0muw5zebpc.bx.internal.cloudapp.net> Co-authored-by: root <root@ubuntu-wyp.4smfdm3ngeyufpdz0muw5zebpc.bx.internal.cloudapp.net>
1 parent 4f94226 commit 8be20d1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ ENV TF_VAR_client_id=${BUILD_ARM_CLIENT_ID}
2525
ENV TF_VAR_client_secret=${BUILD_ARM_CLIENT_SECRET}
2626

2727
# Set work directory.
28-
RUN mkdir /go
29-
RUN mkdir /go/bin
30-
RUN mkdir /go/src
28+
RUN test -d /go || mkdir /go
29+
RUN test -d /go/bin || mkdir /go/bin
30+
RUN test -d /go/src || mkdir /go/src
3131
RUN mkdir /go/src/${MODULE_NAME}
3232
COPY . /go/src/${MODULE_NAME}
3333
WORKDIR /go/src/${MODULE_NAME}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ resource "azurerm_log_analytics_solution" "main" {
123123
publisher = "Microsoft"
124124
product = "OMSGallery/ContainerInsights"
125125
}
126-
126+
127127
tags = var.tags
128128
}
129129

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
azurerm = {
55
source = "hashicorp/azurerm"
66
version = "~> 2.34.0"
7-
}
7+
}
88
}
99

1010
required_version = ">= 0.12"

0 commit comments

Comments
 (0)