17 lines
774 B
Docker
17 lines
774 B
Docker
FROM amazonlinux
|
||
ENV container docker
|
||
RUN yum -q -y install unzip git screen jq wget python3-pip groff
|
||
RUN wget -q -O/tmp/awscli.zip "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"
|
||
RUN unzip -q /tmp/awscli.zip; ./aws/install
|
||
RUN wget -q -O/tmp/terraform125.zip https://releases.hashicorp.com/terraform/1.2.5/terraform_1.2.5_linux_amd64.zip
|
||
RUN unzip -qd /usr/local/bin /tmp/terraform125.zip
|
||
RUN pip3 install --user git-remote-codecommit
|
||
RUN mkdir -p /root/.terraform.d/plugin-cache
|
||
RUN echo 'plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"' > ~/.terraformrc
|
||
RUN mkdir /root/terraform-root
|
||
RUN cd /root/terraform-root
|
||
COPY provider.tf /root/terraform-root/provider.tf
|
||
RUN cd /root/terraform-root; terraform init
|
||
ENV PS1 "deployer❯ "
|
||
CMD ["/usr/bin/bash"]
|