forked from cubefs/cubefs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (21 loc) · 986 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM golang:1.16.12
# intall rocksdb
RUN apt-get update && \
apt-get -y install libz-dev libbz2-dev libsnappy-dev && \
apt-get -y install librocksdb-dev
ENV LTP_VERSION=20210121
ENV LTP_SOURCE=https://github.com/linux-test-project/ltp/archive/${LTP_VERSION}.tar.gz
# install requirements for LTP (Linux Test Program) tests
RUN apt-get install -y xz-utils make gcc flex bison automake autoconf psmisc
RUN mkdir -p /tmp/ltp /opt/ltp && cd /tmp/ltp \
&& wget --no-check-certificate ${LTP_SOURCE} && tar xf ${LTP_VERSION}.tar.gz && cd ltp-${LTP_VERSION} \
&& make autotools && ./configure \
&& make -j "$(getconf _NPROCESSORS_ONLN)" all && make install \
&& rm -rf /tmp/ltp
# install requirements for s3-compatible tests
RUN apt-get install -y sudo python3 python3-pip
RUN pip3 install boto3 unittest2 requests
# cleanup environment
RUN apt-get install -y jq fuse \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean