mirror of
https://github.com/containers/youki
synced 2024-11-22 17:02:00 +01:00
601df9ecd3
* Set cgroups path for tenant containers from main container Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * Ignore new_user_ns for creating cgroups path Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * Remove user_ns param completely Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * Add tests in podman rootless for exec Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * Fix add_task implementation for cgroups v2 and systemd Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * minor refactor in tenant builder Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * Add unit test for systemd add_task function Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * Fix task addition to properly add tasks via dbus api Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * Fix cross cotainers for tests running Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> --------- Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
36 lines
1.0 KiB
Docker
36 lines
1.0 KiB
Docker
ARG CROSS_BASE_IMAGE
|
|
FROM $CROSS_BASE_IMAGE
|
|
|
|
COPY --from=jorgeprendes420/apk-anywhere / /
|
|
ENV MARCH=${CROSS_CMAKE_SYSTEM_PROCESSOR}
|
|
RUN apk-init ${MARCH} ${CROSS_SYSROOT}
|
|
|
|
RUN apk-${MARCH} add \
|
|
# dependencies required to build libsecccomp-rs
|
|
libseccomp-static libseccomp-dev \
|
|
# dependencies required to build libbpf-sys
|
|
libelf-static elfutils-dev \
|
|
zlib-dev zlib-static \
|
|
# dependencies to build wasmedge-sys
|
|
g++ zstd-static
|
|
|
|
# configure libsecccomp-rs to use static linking
|
|
ENV LIBSECCOMP_LINK_TYPE="static"
|
|
ENV LIBSECCOMP_LIB_PATH="${CROSS_SYSROOT}/lib"
|
|
|
|
# configure wasmedge-sys to link stdc++ statically
|
|
ENV WASMEDGE_DEP_STDCXX_LINK_TYPE="static"
|
|
ENV WASMEDGE_DEP_STDCXX_LIB_PATH="${CROSS_SYSROOT}/lib"
|
|
|
|
COPY hack/busctl.sh /bin/busctl
|
|
RUN chmod +x /bin/busctl
|
|
|
|
# wasmedge-sys (through llvm) needs some symbols defined in libgcc
|
|
RUN mkdir /.cargo && cat <<'EOF' > /.cargo/config.toml
|
|
[target.'cfg(target_env = "musl")']
|
|
rustflags = ["-Clink-arg=-lgcc"]
|
|
EOF
|
|
|
|
RUN apt-get -y update && \
|
|
apt-get install -y pkg-config
|