2023-08-25 15:00:08 +02:00
|
|
|
ARG VARIANT="bullseye"
|
|
|
|
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT}
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
2024-04-11 17:01:44 +02:00
|
|
|
# For building
|
2023-08-25 15:00:08 +02:00
|
|
|
RUN apt-get install -y \
|
2024-04-11 17:01:44 +02:00
|
|
|
git \
|
2023-08-25 15:00:08 +02:00
|
|
|
pkg-config \
|
|
|
|
libsystemd-dev \
|
|
|
|
build-essential \
|
|
|
|
libelf-dev \
|
|
|
|
libseccomp-dev \
|
|
|
|
libclang-dev \
|
2024-04-11 17:01:44 +02:00
|
|
|
libssl-dev
|
|
|
|
|
|
|
|
# For debugging
|
|
|
|
RUN apt install -y \
|
|
|
|
podman \
|
|
|
|
bpftrace
|
|
|
|
|
|
|
|
# Install just
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin
|
|
|
|
|
|
|
|
# Install docker with youki
|
|
|
|
COPY <<EOF /etc/docker/daemon.json
|
|
|
|
{
|
|
|
|
"runtimes": {
|
|
|
|
"youki": {
|
|
|
|
"path": "/workspaces/youki/youki"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
2023-08-25 15:00:08 +02:00
|
|
|
|
|
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
|
|
RUN rustup component add rustfmt
|
|
|
|
RUN rustup component add clippy
|
|
|
|
|