mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
ce32c06843
This has adapted for use with bazel from the original commit a26e93769ebefd82593a43e22fb13a09717cfa6d. In particular, the style has been made consistent with internal python style guidelines, and the packages (including the main entrypoint) have been refactored in order to allow bazel testing targets. PiperOrigin-RevId: 283484433
17 lines
429 B
Docker
17 lines
429 B
Docker
FROM ubuntu:18.04
|
|
|
|
RUN set -x \
|
|
&& apt-get update \
|
|
&& apt-get install -y \
|
|
sysbench \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Parameterize the tests.
|
|
ENV test cpu
|
|
ENV threads 1
|
|
ENV options ""
|
|
|
|
# run sysbench once as a warm-up and take the second result
|
|
CMD ["sh", "-c", "sysbench --threads=8 --memory-total-size=5G memory run > /dev/null && \
|
|
sysbench --threads=${threads} ${options} ${test} run"]
|