start with compose.yml

This commit is contained in:
Alexander Mahr 2024-09-13 08:44:02 +02:00
commit 9ce5ca42ce
2 changed files with 16 additions and 0 deletions

2
README.md Normal file
View file

@ -0,0 +1,2 @@
# compose spec based containerized setup for tf/opentofu

14
compose.yml Normal file
View file

@ -0,0 +1,14 @@
services:
terraform:
volumes:
- ./terraformdata:/terraformdata
build:
dockerfile_inline: |
FROM alpine:latest
RUN apk update
RUN apk add aws-cli-bash-completion aws-cli bash bash-completion
RUN apk add opentofu
RUN echo "complete -C '$(which aws_completer)' aws" >> /etc/bash/bashrc
ENTRYPOINT ["/bin/bash"]
WORKDIR /terraformdata