| 1234567891011121314151617181920212223242526272829 |
- FROM buildpack-deps:bionic
- RUN apt-get update && apt-get install -yqq libluajit-5.1-dev libssl-dev luajit
- WORKDIR /wrk
- RUN curl -sL https://github.com/wg/wrk/archive/4.1.0.tar.gz | tar xz --strip-components=1
- ENV LDFLAGS="-O3 -march=native -mtune=native -flto"
- ENV CFLAGS="-I /usr/include/luajit-2.1 $LDFLAGS"
- RUN make WITH_LUAJIT=/usr WITH_OPENSSL=/usr -j "$(nproc)"
- RUN cp wrk /usr/local/bin
- WORKDIR /
- # Required scripts for benchmarking
- COPY pipeline.lua pipeline.lua
- COPY concurrency.sh concurrency.sh
- COPY pipeline.sh pipeline.sh
- COPY query.sh query.sh
- RUN chmod 777 pipeline.lua concurrency.sh pipeline.sh query.sh
- # Environment vars required by the wrk scripts with nonsense defaults
- ENV name name
- ENV server_host server_host
- ENV levels levels
- ENV duration duration
- ENV max_concurrency max_concurrency
- ENV max_threads max_threads
- ENV pipeline pipeline
- ENV accept accept
|