1
0
mirror of https://github.com/containers/youki synced 2024-11-29 21:11:29 +01:00
youki/.devcontainer/Dockerfile
Toru Komatsu d88b681ffe
Make our codespaces more useful (#2753)
* 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>
2024-04-11 20:31:44 +05:30

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