mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +00:00
osbuilder: Add support for debian rootfs
Fixes: #160 Signed-off-by: Marco Vedovati <mvedovati@suse.com>
This commit is contained in:
parent
c3230c2561
commit
dd687223e3
13
rootfs-builder/debian/Dockerfile.in
Normal file
13
rootfs-builder/debian/Dockerfile.in
Normal 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@
|
||||
|
12
rootfs-builder/debian/config.sh
Normal file
12
rootfs-builder/debian/config.sh
Normal 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
|
7
rootfs-builder/debian/rootfs_lib.sh
Normal file
7
rootfs-builder/debian/rootfs_lib.sh
Normal 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
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user