mirror of
https://github.com/containers/youki
synced 2024-11-22 17:02:00 +01:00
follow building best practices (#2856)
Signed-off-by: keisku <keisuke.umegaki.630@gmail.com>
This commit is contained in:
parent
348772aa4c
commit
68a5e8423d
@ -1,27 +1,6 @@
|
|||||||
ARG VARIANT="bullseye"
|
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
|
|
||||||
|
|
||||||
# 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
|
# Install docker with youki
|
||||||
COPY <<EOF /etc/docker/daemon.json
|
COPY <<EOF /etc/docker/daemon.json
|
||||||
{
|
{
|
||||||
@ -33,9 +12,27 @@ COPY <<EOF /etc/docker/daemon.json
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
RUN <<EOF
|
||||||
# nightly build is required for `cargo fmt` as `rustfmt.toml` uses unstable features.
|
apt-get update
|
||||||
RUN rustup install nightly
|
apt-get install -y \
|
||||||
RUN rustup component add rustfmt
|
# For building
|
||||||
RUN rustup component add clippy
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user