A container is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries, and settings
Check the installed software
docker --version
docker-compose --version
Create a docker compose file to run the software on the container environment
version: '3'
services:
# Terraform
terraform:
image: hashicorp/terraform:latest
volumes:
- .:/terraform
working_dir: /terraform
# AWS CLI'
aws:
image: anigeo/awscli
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_REGION: "${AWS_REGION}"
AWS_DEFAULT_REGION: ap-southeast-1
volumes:
- $PWD:/app
working_dir: /app