Why I need use an image to do it? Well my friend, because you use Docker ...you don't need to add trash your laptop with unnecessary packages. You only need to build the image and run terraform, ansible or what else do you need.
Using this "format of work", all can work in the same infrastructure and avoid, the damn problems with diferent package versions or other stupid problems that remove important time of worker. And then if someone find a problem or bug, and resolve it, all people can follow the same steps to resolv to.
Feel free to add your packages to this image. But REMEMBER to write changes and commit the changes WELL EXPLAINED!!! so that other people can work well
# Access to your work directory and run it:
docker run -it --name c2w -v $PWD:/data c2w
alpine: 3.9 ansible 2.7.0
bash 4.4
Terraform v0.12.6
eksctl version: version.Info{BuiltAt:"", GitCommit:"", GitTag:"0.2.1"}
git 2.20.1
vim
curl
wget
zip
FROM alpine:3.9
MAINTAINER jpradoar @ gmail dot com
# This option avoid show the question of ssh-known host
env ANSIBLE_HOST_KEY_CHECKING=False
WORKDIR /
RUN echo 'alias ll="ls -lha"' >> ~/.bashrc && \
apk update && \
apk add vim curl wget zip unzip git bash sshpass ansible && \
curl --silent --location "https://github.com/weaveworks/eksctl/releases/download/latest_release/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp && \
mv /tmp/eksctl /usr/local/bin && \
wget https://releases.hashicorp.com/terraform/0.12.6/terraform_0.12.6_linux_amd64.zip -P /tmp/ && \
unzip /tmp/terraform_0.12.6_linux_amd64.zip && \
mv terraform usr/local/bin/ && \
rm /tmp/terraform_0.12.6_linux_amd64.zip && \
terraform --version && \
ansible --version && \
eksctl version
ENTRYPOINT ["/bin/bash"]
Content type
Image
Digest
Size
86.1 MB
Last updated
about 7 years ago
docker pull jpradoar/c2w