mirror of
https://github.com/containers/youki
synced 2024-11-23 01:11:58 +01:00
d88b681ffe
* Add some useful tools into our devcontainer Signed-off-by: utam0k <k0ma@utam0k.jp> * Update Quick Start in README Signed-off-by: utam0k <k0ma@utam0k.jp> * Simplify installing just Signed-off-by: utam0k <k0ma@utam0k.jp> --------- Signed-off-by: utam0k <k0ma@utam0k.jp>
40 lines
733 B
Docker
40 lines
733 B
Docker
ARG VARIANT="bullseye"
|
|
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT}
|
|
|
|
RUN apt-get update
|
|
|
|
# For building
|
|
RUN apt-get install -y \
|
|
git \
|
|
pkg-config \
|
|
libsystemd-dev \
|
|
build-essential \
|
|
libelf-dev \
|
|
libseccomp-dev \
|
|
libclang-dev \
|
|
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
|
|
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
RUN rustup component add rustfmt
|
|
RUN rustup component add clippy
|
|
|