# Use golang container for the builds
FROM golang:1.15

#Tools
RUN apt-get update
RUN apt-get install -y zip 

#Install Docker CLI Client 
RUN apt-get install -y software-properties-common
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu buster stable"
RUN apt-get install -y docker.io
RUN service docker start

#Install Terraform
RUN wget https://releases.hashicorp.com/terraform/0.11.14/terraform_0.11.14_linux_amd64.zip
RUN unzip terraform*.zip
RUN  mv terraform /usr/local/bin

#Install ECS Deploy
RUN apt-get install -y python-pip
RUN pip install ecs-deploy

#AWSCLI
RUN pip install awscli

##Filebeat Install
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.15.0-amd64.deb
RUN dpkg -i filebeat-7.15.0-amd64.deb