Skip to content

Commit

Permalink
kernelci.org: build new Docker images with kci_docker
Browse files Browse the repository at this point in the history
Replace the call to build-and-push.sh with the new kci_docker command.

Signed-off-by: Guillaume Tucker <[email protected]>
  • Loading branch information
gctucker committed Aug 22, 2022
1 parent a1b346a commit f043f71
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions kernelci.org
Original file line number Diff line number Diff line change
Expand Up @@ -191,18 +191,39 @@ cmd_website() {
}

cmd_docker() {
cd checkout/kernelci-core/config/docker
cd checkout/kernelci-core/config/docker-new
echo "Re-building Docker images"
./build-and-push.sh -n
echo "Pushing Docker images"
while true; do
if ./build-and-push.sh -p; then
break
else
echo "Retrying..."
sleep 3
fi

args="build --push --verbose"

# KernelCI tools
./kci_docker $args kernelci
./kci_docker $args k8s --fragment=kernelci

# Compiler toolchains
for clang in clang-11 clang-12 clang-13 clang-14 clang-15 clang-16; do
./kci_docker $args $clang --fragment=kselftest --fragment=kernelci
done
for arch in arc arm armv5 arm64 mips riscv64 x86; do
./kci_docker $args gcc-10 --arch $arch \
--fragment=kselftest --fragment=kernelci
done
# missing -dev packages for sparc64
./kci_docker $args gcc-10 --arch sparc --fragment=kernelci
# only x86 is useful for KUnit (for now)
./kci_docker $args gcc-10 --arch x86 --fragment=kunit --fragment=kernelci

# rootfs
./kci_docker $args buildroot --fragment=kernelci
./kci_docker $args debos --fragment=kernelci

# QEMU
./kci_docker $args qemu

# Other tools
./kci_docker $args cvehound --fragment=kernelci
./kci_docker $args dt-validation # --fragment=kernelci (PyYAML conflict)

cd -
}

Expand Down

0 comments on commit f043f71

Please sign in to comment.