From d88b681ffee7e813bff1f1a3ff5af0b20642ca16 Mon Sep 17 00:00:00 2001 From: Toru Komatsu Date: Fri, 12 Apr 2024 00:01:44 +0900 Subject: [PATCH] Make our codespaces more useful (#2753) * Add some useful tools into our devcontainer Signed-off-by: utam0k * Update Quick Start in README Signed-off-by: utam0k * Simplify installing just Signed-off-by: utam0k --------- Signed-off-by: utam0k --- .devcontainer/Dockerfile | 27 +++++++++++++++++++++----- README.md | 12 +++++++++++- experiment/seccomp/rust-toolchain.toml | 3 +++ 3 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 experiment/seccomp/rust-toolchain.toml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a789118d..21b36f8c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,19 +2,36 @@ ARG VARIANT="bullseye" FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT} RUN apt-get update + +# For building RUN apt-get install -y \ git \ - make - -RUN apt-get install -y \ pkg-config \ libsystemd-dev \ - libdbus-glib-1-dev \ build-essential \ libelf-dev \ libseccomp-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 < [!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) diff --git a/experiment/seccomp/rust-toolchain.toml b/experiment/seccomp/rust-toolchain.toml new file mode 100644 index 00000000..0433f520 --- /dev/null +++ b/experiment/seccomp/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +profile="default" +channel="1.77.1"