FROM ubuntu RUN apt -y --fix-missing update RUN apt install -y curl vim unzip jq # Install and configure psql RUN DEBIAN_FRONTEND=noninteractive apt-get install --fix-missing -y postgresql #RUN apt-get install --no-install-recommends -y python3.8 python3-pip python3.8-dev #RUN python3 -m pip install pg8000 ADD psqlrc /root/.psqlrc #Install aws cli #RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" RUN unzip awscliv2.zip RUN ./aws/install RUN mkdir /root/.aws COPY config /root/.aws #Install kubectl for the simulator pod scaler RUN apt-get install -y apt-transport-https ca-certificates RUN curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg RUN echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list RUN apt-get update RUN apt-get install -y kubectl RUN kubectl version --client #RUN curl -f -s -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ # chmod +x /usr/local/bin/kubectl && \ #PGBENCH Install #RUN apt-get install -y postgresql-contrib #RUN apt-get install -y bc #RUN cp /usr/bin/jq /usr/local/bin/