This container expects to find your tests in a folder called test on the root of your project.
To execute the your tests use the following command on the root of your project:
docker run -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} -v ${PWD}:/go/src/app/ rqtx/terratest:latest
Inspired on igordcsouza/terratest.
FROM golang:latest
RUN apt-get update && apt-get install -y gnupg software-properties-common curl && \
curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add - && \
apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" && \
apt-get update && \
apt-get install terraform
WORKDIR $GOPATH/src/app/test/
ENTRYPOINT ["go", "test"]
CMD ["-v"]
Content type
Image
Digest
Size
392.5 MB
Last updated
over 5 years ago
docker pull rqtx/terratest