Skip to content

Instantly share code, notes, and snippets.

@ajvengo
Last active November 15, 2017 11:46
Show Gist options
  • Save ajvengo/6916fed0f34d9ceb92fe1b1bffafe8c6 to your computer and use it in GitHub Desktop.
Save ajvengo/6916fed0f34d9ceb92fe1b1bffafe8c6 to your computer and use it in GitHub Desktop.
Debian stretch + python, curl, jq, datamash to run performance tests scripts
FROM debian:stretch-slim as zstd
MAINTAINER Vladimir Rapatskiy <[email protected]>
WORKDIR /tmp
RUN set -ex; \
apt-get -q update; \
apt-get install -yq --no-install-recommends ca-certificates curl gcc make libc6-dev zlib1g-dev; \
apt-get clean; \
curl -sSL https://github.com/facebook/zstd/archive/v1.3.2.tar.gz | tar xz; \
cd zstd-1.3.2; \
CFLAGS="-march=sandybridge -O3 -flto" make -j$(nproc); \
strip zstd
FROM debian:stretch-slim
WORKDIR /app
COPY --from=zstd /tmp/zstd-1.3.2/zstd /usr/local/bin
RUN apt-get -q update && \
apt-get install -yq --no-install-recommends \
curl \
datamash \
jq \
libssh2-1 \
libssl1.0.2 \
python-pika \
python-ujson && \
apt-get clean && \
cd /usr/lib/x86_64-linux-gnu && \
ln -s libcrypto.so.1.0.2 libcrypto.so.1.0.0 && ln -s libssl.so.1.0.2 libssl.so.1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment