bedrock/test/docker/base-images
..
Dockerfile
README.md

README.md

Bedrock Test Base Image

This is the base image used for running terratest based unit and integration GO tests. This image comes pre-packaged with the following dependencies:

  • Go programming language: Terraform test cases are written in Go.
  • dep: dep is a dependency management tool for Go.
  • Azure CLI: The Azure CLI is a command-line tool you can use to manage Azure resources. (Terraform supports authenticating to Azure through a service principal or via the Azure CLI.)
  • mage: We use the mage go module to show you how to simplify running Terratest cases.

Getting Started

You can build this image locally using a different golang version following the example below.

Prerequisities

In order to run this container you'll need docker installed.

Usage

Image Build Parameters

gover

Golang version specification. This argument drives the version of the golang stretch base image.

tfver

Terraform version specification. This argument drives which terraform version release this image will use.

docker build -f "test\docker\base-images\Dockerfile" -t msftcse/bedrock-test-base:1.11 . --build-arg gover=1.11 tfver=0.11.13

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE file for details.