-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile for benchmark dragonfly in container selfhosted runner
Signed-off-by: adi_holden <[email protected]> fix benckmark dockerfile for arm64 chore: wrap install docker in the shell script
- Loading branch information
Showing
3 changed files
with
65 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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 apt-get install -y nodejs npm && \ | ||
npm install -g npm | ||
|
||
# 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 | ||
|
||
# Build memtier_benchmark | ||
RUN cd memtier_benchmark && autoreconf -ivf && ./configure && make && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
if [[ $(uname -m) == "aarch64" ]]; then | ||
ARCH='arm64' | ||
else | ||
ARCH='amd64' | ||
fi | ||
|
||
apt update && apt install -y apt-transport-https ca-certificates curl software-properties-common | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | ||
add-apt-repository "deb [arch=$ARCH] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
apt-get update && apt-get install -y docker-ce |