Skip to content

Commit

Permalink
devcontainer: Upgrade the base image revision
Browse files Browse the repository at this point in the history
Update Intel SDE to 9.27.0 and explicitly version all included tools.
This will trigger an image rebuild when a new toolchain is released.
  • Loading branch information
barrbrain committed Dec 1, 2023
1 parent a26f1aa commit 95cd6a4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
FROM mcr.microsoft.com/devcontainers/rust:dev-1-bookworm
RUN dpkg --add-architecture arm64 \
&& apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y --no-install-recommends \
libaom-dev libdav1d-dev libaom-dev:arm64 libdav1d-dev:arm64 \
libclang-dev libgit2-dev libcurl4-openssl-dev libfuzzer-14-dev \
gcc-aarch64-linux-gnu libc6-dev-arm64-cross nasm dav1d qemu-user \
meson ninja-build \
&& rm -rf /var/lib/apt/lists/*
RUN rustup target add aarch64-unknown-linux-gnu
RUN export CARGO_PROFILE_RELEASE_STRIP=true \
&& cargo install -q cargo-c \
&& cargo install -q cargo-criterion \
&& cargo install -q cargo-fuzz \
&& cargo install -q cargo-c --version "0.9.27+cargo-0.74.0" \
&& cargo install -q cargo-criterion --version "1.1.0" \
&& cargo install -q cargo-fuzz --version "0.11.2" \
&& rm -rf /usr/local/cargo/registry
RUN SDE=sde-external-9.14.0-2022-10-25-lin \
&& curl -sSf https://downloadmirror.intel.com/751535/$SDE.tar.xz | tar Jx -C /opt \
RUN SDE=sde-external-9.27.0-2023-09-13-lin \
&& curl -sSf https://downloadmirror.intel.com/788820/$SDE.tar.xz | tar Jx -C /opt \
&& ln -sv /opt/$SDE/sde64 /usr/local/bin/sde64
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER=qemu-aarch64
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS=-Clinker=aarch64-linux-gnu-gcc
Expand Down

0 comments on commit 95cd6a4

Please sign in to comment.