Skip to content

Commit

Permalink
/go/performance/continuous_integration/SysbenchDockerfile: trying to …
Browse files Browse the repository at this point in the history
…fix sysbench installation
  • Loading branch information
coffeegoddd committed Feb 15, 2024
1 parent f65dc0a commit 33c0818
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions go/performance/continuous_integration/SysbenchDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ FROM --platform=linux/amd64 golang:1.21.2-bullseye

ENV DEBIAN_FRONTEND=noninteractive

# Get sysbench installed
RUN apt update
RUN apt install -y curl
RUN apt install -y curl wget git

# Install sysbench deps
RUN apt update -y && apt install -y \
Expand All @@ -15,14 +14,6 @@ RUN apt update -y && apt install -y \
default-libmysqlclient-dev \
libssl-dev

# Build sysbench from source
RUN git clone https://github.com/akopytov/sysbench.git && \
cd sysbench && \
./autogen.sh && \
./configure && \
make -j && \
make install

# Install sqlite3 from source
RUN \
apt-get install -y \
Expand All @@ -40,7 +31,6 @@ RUN \
# Smoke test
&& sqlite3 --version


WORKDIR /
COPY ./sysbench-runner-tests-entrypoint.sh /entrypoint.sh
RUN git clone https://github.com/dolthub/sysbench-lua-scripts.git
Expand All @@ -66,6 +56,11 @@ RUN sed -i.bak \
RUN apt-get update && apt-get install -y --allow-unauthenticated mysql-server
RUN mysql --version

# Install sysbench
RUN apt update
RUN curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | bash
RUN apt -y install sysbench

# Install Postgres 15
WORKDIR /postgres
RUN sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
Expand Down

0 comments on commit 33c0818

Please sign in to comment.