-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathxfstests.Dockerfile
More file actions
23 lines (13 loc) · 877 Bytes
/
xfstests.Dockerfile
File metadata and controls
23 lines (13 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y git build-essential autoconf curl cmake libfuse-dev pkg-config fuse bc libtool \
uuid-dev xfslibs-dev libattr1-dev libacl1-dev libaio-dev attr acl quota bsdmainutils dbench psmisc
RUN adduser --disabled-password --gecos '' fsgqa
RUN echo 'user_allow_other' >> /etc/fuse.conf
ADD rust-toolchain /code/fuser/rust-toolchain
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=$(cat /code/fuser/rust-toolchain)
ENV PATH=/root/.cargo/bin:$PATH
RUN mkdir -p /code && cd /code && git clone https://github.com/fleetfs/fuse-xfstests && cd fuse-xfstests \
&& git checkout c123d014fcca48cf340be78d6712eff80ee4e8d6 && make
ADD . /code/fuser/
RUN cd /code/fuser && cargo build --release --examples && cp target/release/examples/simple /bin/fuser