mirror of
https://github.com/containers/youki
synced 2024-11-23 01:11:58 +01:00
68a5e8423d
Signed-off-by: keisku <keisuke.umegaki.630@gmail.com>
39 lines
798 B
Docker
39 lines
798 B
Docker
ARG VARIANT="bullseye"
|
|
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT}
|
|
|
|
# Install docker with youki
|
|
COPY <<EOF /etc/docker/daemon.json
|
|
{
|
|
"runtimes": {
|
|
"youki": {
|
|
"path": "/workspaces/youki/youki"
|
|
}
|
|
}
|
|
}
|
|
EOF
|
|
|
|
RUN <<EOF
|
|
apt-get update
|
|
apt-get install -y \
|
|
# For building
|
|
build-essential \
|
|
git \
|
|
libclang-dev \
|
|
libelf-dev \
|
|
libseccomp-dev \
|
|
libssl-dev \
|
|
libsystemd-dev \
|
|
pkg-config \
|
|
# For debugging
|
|
bpftrace \
|
|
podman
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin
|
|
|
|
# nightly build is required for `cargo fmt` as `rustfmt.toml` uses unstable features.
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
rustup install nightly
|
|
rustup component add rustfmt
|
|
rustup component add clippy
|
|
EOF
|