test(kernel): runc check-config.sh (#82)

This commit is contained in:
Andrew Rynhard
2018-05-15 07:23:26 -07:00
committed by GitHub
parent d517737b8d
commit 7b3092b1e0
2 changed files with 10 additions and 2 deletions

View File

@ -2,6 +2,7 @@ metadata:
repository: dianemo/kernel
variables:
artifacts: /artifacts
runcCheckConfig: https://raw.githubusercontent.com/opencontainers/runc/v1.0.0-rc5/script/check-config.sh
srcLinux: https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.34.tar.xz
pipeline:
stages:
@ -16,10 +17,16 @@ tasks:
FROM dianemo/tools:{{ .Docker.Image.Tag}} AS {{ .Docker.CurrentStage }}
WORKDIR /tools/usr/local/src/{{ .Docker.CurrentStage }}
RUN curl -L {{ index .Variables "srcLinux" }} | tar --strip-components=1 -xJ
ADD {{ index .Variables "runcCheckConfig" }} /bin/check-config.sh
RUN chmod +x /bin/check-config.sh
RUN make mrproper
COPY src/linux/config .config
RUN mkdir -p /usr/bin \
&& ln -s /tools/bin/env /usr/bin/env \
&& ln -s /tools/bin/true /bin/true \
&& ln -s /tools/bin/pwd /bin/pwd
RUN check-config.sh .config
RUN mkdir /tmp
RUN ln /tools/bin/pwd /bin/pwd
RUN make -j $(($(nproc) / 2))
RUN make modules_install INSTALL_MOD_PATH=/tmp
RUN depmod -b /tmp 4.14.34-dianemo

View File

@ -1898,7 +1898,8 @@ CONFIG_DUMMY=y
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
CONFIG_MACVLAN=y
# CONFIG_MACVTAP is not set
# CONFIG_IPVLAN is not set
CONFIG_VXLAN=y
# CONFIG_GENEVE is not set