kuryr-tempest-plugin/test_container/mkrootfs.sh
Antoni Segura Puimedon 20222a0200
demo container: Include ssl certificates
Without this patch, curl would complain that the path where it expects
the ca certificate bundle is empty.

Change-Id: Iadf0f37118ab1bee2265abfbfab2ab8ce462ac87
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2018-03-21 16:00:45 +01:00

16 lines
500 B
Bash
Executable File

#!/bin/sh
BUILDER_NAME=$(uuidgen)
docker build -t kuryr/demo_builder . -f Dockerfile.builder
docker run --name ${BUILDER_NAME} kuryr/demo_builder
rm -fr rootfs
rm -fr rootfs.tar.xz
docker cp ${BUILDER_NAME}:/usr/src/busybox/rootfs rootfs
docker rm ${BUILDER_NAME}
# In order for ping and traceroute to work, we need to give suid to busybox
chmod +s rootfs/bin/busybox
tar -J -f rootfs.tar.xz --numeric-owner --exclude='dev/*' -C rootfs -c .
rm -fr rootfs
docker build -t kuryr/demo . -f Dockerfile