1
0
mirror of https://github.com/containers/youki synced 2024-11-26 06:08:07 +01:00

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>
This commit is contained in:
Toru Komatsu 2024-04-12 00:01:44 +09:00 committed by GitHub
parent 9800ff83d2
commit d88b681ffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 36 additions and 6 deletions

@ -2,20 +2,37 @@ ARG VARIANT="bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT} FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT}
RUN apt-get update RUN apt-get update
# For building
RUN apt-get install -y \ RUN apt-get install -y \
git \ git \
make
RUN apt-get install -y \
pkg-config \ pkg-config \
libsystemd-dev \ libsystemd-dev \
libdbus-glib-1-dev \
build-essential \ build-essential \
libelf-dev \ libelf-dev \
libseccomp-dev \ libseccomp-dev \
libclang-dev \ libclang-dev \
libssl-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 curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN rustup component add rustfmt RUN rustup component add rustfmt
RUN rustup component add clippy RUN rustup component add clippy

@ -12,7 +12,17 @@
youki is an implementation of the [OCI runtime-spec](https://github.com/opencontainers/runtime-spec) in Rust, similar to [runc](https://github.com/opencontainers/runc). youki is an implementation of the [OCI runtime-spec](https://github.com/opencontainers/runtime-spec) in Rust, similar to [runc](https://github.com/opencontainers/runc).
Your ideas are welcome [here](https://github.com/containers/youki/issues/10). Your ideas are welcome [here](https://github.com/containers/youki/issues/10).
# Quick Install # Quick Start
> [!TIP]
> You can immediately your environment with youki on GitHub Codespaces and try it out.
>
> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/containers/youki?quickstart=1)
> ```console
> $ just build
> $ docker run --runtime youki hello-world
> $ sudo podman run --cgroup-manager=cgroupfs --runtime /workspaces/youki/youki hello-world
> ```
[User Documentation](https://containers.github.io/youki/user/basic_setup.html#quick-install) [User Documentation](https://containers.github.io/youki/user/basic_setup.html#quick-install)

@ -0,0 +1,3 @@
[toolchain]
profile="default"
channel="1.77.1"