osbuilder: Add support for debian rootfs

Fixes: #160

Signed-off-by: Marco Vedovati <mvedovati@suse.com>
This commit is contained in:
Marco Vedovati 2018-09-11 13:28:27 +02:00
parent c3230c2561
commit dd687223e3
4 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#
# Copyright (c) 2018 SUSE
#
# SPDX-License-Identifier: Apache-2.0
# NOTE: OS_VERSION is set according to config.sh
from debian:@OS_VERSION@
# RUN commands
RUN apt-get update && apt-get install -y curl wget systemd debootstrap git build-essential
# This will install the proper golang to build Kata components
@INSTALL_GO@

View File

@ -0,0 +1,12 @@
#
# Copyright (c) 2018 SUSE
#
# SPDX-License-Identifier: Apache-2.0
OS_VERSION=${OS_VERSION:-9.5}
# Set OS_NAME to the desired debian "codename"
OS_NAME=${OS_NAME:-"stretch"}
# NOTE: Re-using ubuntu rootfs configuration, see 'ubuntu' folder for full content.
source $script_dir/ubuntu/$CONFIG_SH

View File

@ -0,0 +1,7 @@
#
# Copyright (c) 2018 SUSE
#
# SPDX-License-Identifier: Apache-2.0
# NOTE: Re-using ubuntu rootfs lib, see 'ubuntu' folder for details.
source ${script_dir}/ubuntu/$LIB_SH

View File

@ -440,6 +440,12 @@ test_distro_ubuntu()
run_test "${name}" "" "ubuntu" "service" "no"
}
test_distro_debian()
{
local -r name="Can create and run debian image"
run_test "${name}" "" "debian" "service" "no"
}
test_distro_fedora()
{
@ -526,6 +532,7 @@ test_all_distros()
test_distro_centos
test_distro_alpine
test_distro_ubuntu
test_distro_debian
if [ $MACHINE_TYPE != "ppc64le" ]; then
test_distro_clearlinux