Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plural
platform
terraform-azurerm-aks
Commits
7cc449c3
Commit
7cc449c3
authored
6 years ago
by
Damien Caro
Browse files
Options
Download
Email Patches
Plain Diff
Added test container
parent
1cf61964
master
development
plural
refactor
revert-24-master
wyp-terramodtest-0.8.0
4.9.0
4.8.0
4.7.0
4.6.0
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.0
v3.0
v2.0
v1.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+18
-0
Dockerfile
azure-pipelines.yaml
+14
-0
azure-pipelines.yaml
with
32 additions
and
0 deletions
+32
-0
Dockerfile
0 → 100644
+
18
-
0
View file @
7cc449c3
# Pull the base image with given version.
ARG
BUILD_TERRAFORM_VERSION=0.11.7
FROM
hashicorp/terraform:${BUILD_TERRAFORM_VERSION}
ARG
MODULE_NAME="terraform-azurerm-aks"
# Set work directory
RUN
mkdir
-p
/go/src/
${
MODULE_NAME
}
RUN
mkdir
-p
/go/bin
WORKDIR
/go/src/${MODULE_NAME}
# Install required go packages using dep ensure
ENV
GOPATH /go
ENV
PATH $GOPATH/bin:$PATH
RUN
/bin/bash
-c
"curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh"
COPY
. /go/src/${MODULE_NAME}
RUN
chmod
744 terraform-azure-module-test.sh
\ No newline at end of file
This diff is collapsed.
Click to expand it.
azure-pipelines.yaml
0 → 100644
+
14
-
0
View file @
7cc449c3
# Azure pipeline for Terraform AKS module
pool
:
vmImage
:
'
Ubuntu
16.04'
variables
:
imagename
:
terraform-azurerm-aks:$(build.buildId)
steps
:
-
script
:
docker build -f Dockerfile -t $(imageName) .
displayName
:
'
docker
build'
-
script
:
docker run -e "ARM_SUBSCRIPTION_ID=$AZURE_SUBSCRIPTION_ID" -e "ARM_CLIENT_ID=$AZURE_CLIENT_ID" -e "ARM_CLIENT_SECRET=$AZURE_CLIENT_SECRET" -e "ARM_TENANT_ID=$AZURE_TENANT_ID" -e "ARM_TEST_LOCATION=WestUS2" -e "ARM_TEST_LOCATION_ALT=EastUS" --rm $(imageName) bash -c "./test.sh validate"
displayName
:
'
docker
run'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help