From 3d252e119e39f8d4bddea3a981aab1f592bc0115 Mon Sep 17 00:00:00 2001 From: Zacharya Date: Thu, 25 Apr 2024 20:41:03 +0300 Subject: [PATCH] chor(benchmark): install AWScli and kubectl (#12) --- benchmark-dev.Dockerfile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/benchmark-dev.Dockerfile b/benchmark-dev.Dockerfile index d48c56a..6ab7069 100644 --- a/benchmark-dev.Dockerfile +++ b/benchmark-dev.Dockerfile @@ -1,20 +1,14 @@ +FROM bitnami/kubectl:1.29.4 as kubectl + # Use the base image FROM ghcr.io/romange/ubuntu-dev:20 as base -COPY ./install_docker.sh /tmp/ - -RUN /tmp/install_docker.sh - # Install Node.js RUN curl -fsSL https://deb.nodesource.com/setup_21.x | bash - && \ apt-get install -y nodejs -# Install dependencies (if needed) -RUN apt-get install -y build-essential autoconf automake libpcre3-dev libevent-dev pkg-config zlib1g-dev git &&\ - rm -rf /var/lib/apt/lists/* - -# Clone memtier_benchmark repository -RUN git clone https://github.com/RedisLabs/memtier_benchmark.git +# Install Kubectl +COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ -# Build memtier_benchmark -RUN cd memtier_benchmark && autoreconf -ivf && ./configure && make && make install +# Install AWS CLI +RUN pip install awscli