mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
766 B
Docker
39 lines
766 B
Docker
FROM fedora:35
|
|
|
|
# Rust Nightly
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- \
|
|
--default-toolchain nightly \
|
|
--component rustfmt \
|
|
--component clippy \
|
|
--component rust-src \
|
|
--target x86_64-unknown-linux-musl \
|
|
-y
|
|
|
|
ENV PATH "/root/.cargo/bin:$PATH"
|
|
|
|
# Pre-requisites
|
|
RUN dnf install \
|
|
--setopt=install_weak_deps=False --best -qy \
|
|
golang \
|
|
qemu-system-x86 \
|
|
cloud-utils \
|
|
genisoimage \
|
|
libbpf-devel \
|
|
clang \
|
|
openssl-devel \
|
|
musl-libc \
|
|
git && dnf clean all \
|
|
&& rm -rf /var/cache/yum
|
|
|
|
RUN cargo install \
|
|
bpf-linker \
|
|
rust-script \
|
|
sccache
|
|
|
|
RUN go install github.com/linuxkit/rtf@latest
|
|
ENV PATH "/root/go/bin:$PATH"
|
|
ENV RUSTC_WRAPPER "sccache"
|
|
|
|
ENTRYPOINT ["rtf"]
|
|
CMD ["-vvv", "run"]
|