#Docker file used in this image.
FROM ubuntu
RUN apt update && apt install wget -y && apt install unzip -y
RUN wget https://releases.hashicorp.com/terraform/1.1.2/terraform_1.1.2_linux_amd64.zip
RUN unzip terraform*.zip && rm terraform*zip && mv terraform /usr/bin/terraform
RUN mkdir /data
WORKDIR /data
ENTRYPOINT terraform version
. . . .
command usage:-
docker run -it --rm --name terraform_host --entrypoint "terraform" devopsmail26/ubuntu_terraform version
docker run -it --rm --name terraform_host -v local_machine_location:/data --entrypoint "terraform" devopsmail26/ubuntu_terraform init
docker run -it --rm --name terraform_host -v local_machine_location:/data --entrypoint "terraform" devopsmail26/ubuntu_terraform plan
docker run -it --rm --name terraform_host -v local_machine_location:/data --entrypoint "terraform" devopsmail26/ubuntu_terraform apply --auto-approve.
Content type
Image
Digest
Size
88.2 MB
Last updated
almost 5 years ago
docker pull devopsmail26/ubuntu_terraform